> > the reason why I say that it doesn't scale is that for example if the ntp >> file changes you'd like to to restart the ntp service if the ntp config >> changes and so on. Anyway the idea is to organize things that belongs >> together, for example for ntp, the package, the service and the config file >> in one module, which encapsulates the resource ntp you'd like to manage. >> Further if you remove something in the source folder it won't be removed >> on the server, you have to do that anyway manually. >> >> Anyway the following receipe should do what you want: >> >> node default { include solaris } >> class solaris { >> file { "/etc": >> source => "puppet:///files-solaris/etc/", >> ensure => directory, >> recurse => true, >> } >> } >> >> however again, I really don't like the idea of managing /etc in one big >> piece. But to start and try things out you could do that. >> >> If you still encounter the error, please post the output with --trace and >> let us know about server and client versions. > > Node and class:
node default { include solaris } class solaris { file { "/etc": source => "puppet:///files-solaris/etc", recurse => true, ensure => directory, } } Solaris 10 puppet master trace: notice: Starting Puppet server version 0.25.2 info: mount[files-solaris]: allowing * access info: Inserting default '~ ^/catalog/([^/]+)$'(auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/file'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate_revocation_list/ca'(auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/report'(auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate/ca'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate/'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate_request'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Expiring the node cache of 1km-admin.reinternal.com info: Not using expired node for 1km-admin.reinternal.com from cache; expired at Wed Jan 27 10:35:47 -0600 2010 info: Caching node for 1km-admin.reinternal.com notice: Compiled catalog for 1km-admin.reinternal.com in 0.08 seconds info: mount[files-solaris]: allowing * access Solaris 10 puppet client trace: notice: Starting Puppet client version 0.25.2 info: Caching catalog for 1km-admin.reinternal.com info: Applying configuration version '1264610148' /usr/local/lib/ruby/site_ruby/1.8/puppet/file_serving/metadata.rb:68:in `collect' /usr/local/lib/ruby/site_ruby/1.8/puppet/file_serving/terminus_helper.rb:20:in `path2instances' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/autoload.rb:85:in `collect' /usr/local/lib/ruby/site_ruby/1.8/puppet/file_serving/terminus_helper.rb:17:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/file_serving/terminus_helper.rb:17:in `collect' /usr/local/lib/ruby/site_ruby/1.8/puppet/file_serving/terminus_helper.rb:17:in `path2instances' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/direct_file_server.rb:21:in `search' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/file_metadata/file.rb:20:in `search' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:240:in `search' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector.rb:59:in `search' /usr/local/lib/ruby/site_ruby/1.8/puppet/type/file.rb:595:in `perform_recursion' /usr/local/lib/ruby/site_ruby/1.8/puppet/type/file.rb:547:in `recurse_local' /usr/local/lib/ruby/site_ruby/1.8/puppet/type/file.rb:477:in `recurse' /usr/local/lib/ruby/site_ruby/1.8/puppet/type/file.rb:385:in `eval_generate' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:349:in `send' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:349:in `generate_additional_resources' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:193:in `eval_generate' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:240:in `eval_children_and_apply_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:207:in `eval_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:296:in `evaluate' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:403:in `thinmark' /usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:402:in `thinmark' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:295:in `evaluate' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `collect' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `evaluate' /usr/local/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:142:in `apply' /usr/local/lib/ruby/site_ruby/1.8/puppet/configurer.rb:153:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:178:in `benchmark' /usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:177:in `benchmark' /usr/local/lib/ruby/site_ruby/1.8/puppet/configurer.rb:152:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:130:in `with_client' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:51:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:104:in `start' /usr/local/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `call' /usr/local/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `__signal__' /usr/local/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `__signal__' (eval):2:in `signal' /usr/local/lib/ruby/site_ruby/1.8/puppet/external/event-loop/event-loop.rb:321:in `sound_alarm' /usr/local/lib/ruby/site_ruby/1.8/puppet/agent.rb:108:in `start' /usr/local/lib/ruby/site_ruby/1.8/puppet/daemon.rb:127:in `start' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:116:in `main' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run' /usr/local/sbin/puppetd:159 err: //solaris/File[/etc]: Failed to generate additional resources using 'eval_generate': Cannot manage files of type unknown notice: Finished catalog run in 3.00 seconds -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.