Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppet resource syslog fails matching path expression #37

Open
domcleal opened this issue Apr 20, 2013 · 1 comment
Open

puppet resource syslog fails matching path expression #37

domcleal opened this issue Apr 20, 2013 · 1 comment
Labels
bug Something isn't working

Comments

@domcleal
Copy link
Contributor

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.

@cbarbour
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants