I haven''t tried this yet, but I find puppet''s file resource to be *way* too slow for what I need to do, causing runs in excess of 5 minutes. There''s a base directory structure (which is very small) which I then put content into (and I think it''s the checksumming of this content, which is pointless because I have replace => no in the file resource, that''s taking all of the time). There are some files in that directory which are explicitly manged (a symlink and a templated file). The question is that if I use an exec resource to rsync out the skeleton directory structure, and have a ''creates'' in the exec resource, can I then require that exec resource in the explicitly managed files (i.e. if the exec resource doesn''t do anything because of the creates directive, is it considered successful by puppet?) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.
James Turnbull
2009-Nov-17 23:38 UTC
Re: [Puppet Users] Quick question on the exec resource
2009/11/18 Jon Stanley <jonstanley@gmail.com>:> I haven''t tried this yet, but I find puppet''s file resource to be > *way* too slow for what I need to do, causing runs in excess of 5 > minutes. There''s a base directory structure (which is very small) > which I then put content into (and I think it''s the checksumming of > this content, which is pointless because I have replace => no in the > file resource, that''s taking all of the time). There are some files > in that directory which are explicitly manged (a symlink and a > templated file).What version are you using? Have you tried 0.25.1? I think you''ll find it''s considerably faster.> The question is that if I use an exec resource to rsync out the > skeleton directory structure, and have a ''creates'' in the exec > resource, can I then require that exec resource in the explicitly > managed files (i.e. if the exec resource doesn''t do anything because > of the creates directive, is it considered successful by puppet?)Following the logic through I''d say yes. The exec would only run if the file created doesn''t exist but should be skipped (and not "fail") if the file does exist. Regards James Turnbul l -- Author of: * Pro Linux System Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.