puppet-augeasproviders
puppet-augeasproviders copied to clipboard
puppet resource syslog fails matching path expression
Running ralsh against syslog fails:
$ puppet resource --libdir lib/ syslog --trace
Error: Could not run: unknown error - Matching path expression '/files/etc/rsyslog.conf/entry[selector/facility='' and selector/level='' and action/='']' failed
/home/dcleal/code/augeasproviders/domcleal-augeasproviders/lib/puppet/provider/syslog/augeas.rb:86:in `match'
/home/dcleal/code/augeasproviders/domcleal-augeasproviders/lib/puppet/provider/syslog/augeas.rb:86:in `exists?'
/home/dcleal/.rvm/gems/ruby-1.9.3-p392@ap/gems/puppet-3.1.1/lib/puppet/property/ensure.rb:81:in `retrieve'
It appears that all of the parameters and properties of the resource generated in instances
are nil when called in exists?
and the only param available is the name. Since other fields are used to determine whether it exists, this fails.
This issue also causes the resources meta-type to fail.
resources { 'syslog':
purge => true,
}
Result:
Error: /Syslog[mail.none /var/log/messages]: Could not evaluate: unknown error - Matching path expression '$resource' failed