Ah, but I don't want to ensure that the package is installed. In fact, sometimes it won't be - on purpose. And I want to change the recipes behavior based on that fact.

David Bishop


On Jan 25, 2010, at 8:11 PM, Peter Meier <peter.me...@immerda.ch> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


if Package["syslog"] => installed {
   file "/etc/syslog.conf" {
       blah blah
   }
}

How about:

package{'syslog': ensure => installed }
file{"/etc/syslog.conf":
 require => Package['syslog'],
 blah blah
}

cheers pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkteQSgACgkQbwltcAfKi380fgCgo8bYXQYGHh0JmJRSeypHUkTt
KeIAn1IfTi6MYVKeSnStR1mlcdb/4h6P
=d49v
-----END PGP SIGNATURE-----

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-us...@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 .


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@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