2 Jan 2007 03:49
[Puppet-dev] #395: Files in non-existent directories cause execution to halt
puppet <trac <at> madstop.com>
2007-01-02 02:49:10 GMT
2007-01-02 02:49:10 GMT
#395: Files in non-existent directories cause execution to halt
---------------------+------------------------------------------------------
Reporter: mpalmer | Owner: luke
Type: defect | Status: new
Priority: normal | Milestone:
Component: types | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
(currently running svn2013)
If I try to copy a file into a directory which doesn't exist at the
beginning of the Puppet execution run, I get an error like this:
{{{
err: Could not apply complete configuration: Could not retrieve object
'/usr/share/ruby-snmpd/plugins/last_puppet_run.rb' of type
'Puppet::Type::File' at /etc/puppet/manifests/classes/snmp_enabled.pp:36
}}}
and the manifest stops running. The real problem is that the directory
that I want to copy the file into is part of a package, and that package
is depended on by this file, like so:
{{{
file { "/usr/share/ruby-snmpd/plugins/last_puppet_run.rb":
content =>
template("/etc/puppet/config/classes/snmp_enabled/last_puppet_run.rb",
require => package["ruby-snmpd"]
}
(Continue reading)
RSS Feed