On Fri, Sep 21, 2012 at 05:40:52PM -0700, Justin Ryan wrote:
> I would like to place a file with puppet only if a certain package is 
> installed on the system -- but assuming this package is not puppet-managed. 
> Checking for the presence of a non-puppet-managed file is also ok. Is this 
> possible? using require => Package['mypkg'] doesn't work if it's not 
> puppet-managed. thanks. 
> 

I haven't tried it but

    package { 'mypkg':
      audit => all,
    }

should work. This way you are declaring the resource so you should be
able to refer to it later as Package['mypkg'] while on the other hand
only auditing the state and not actually changing it through puppet.

-Stefan

-- 
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.
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.

Reply via email to