-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > and this: > > if ! defined(File["/data/syslog/${remote_host}/archive"]) { > file { > "/data/syslog/${remote_host}/archive": > ensure => directory; > } > }
this should work. > .... both of which resulted in errors. As I said, the documentation > really isn't clear if functions CAN be used inside a manifest. That > has always confused me and I wish someone would clear up the docs. what kind of errors? which version of puppet are you using? In general I try to avoid defined, as in my opinion this is some kind of codesmell. But there are valid situations for that function. regarding to functions: they go into manifests. Where else do you imagine they could go? I mean if not in manifests you might assume that they could go somewhere else. And maybe you could raise a ticket about that point where documentation is not clear. Thanks. cheers pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkuieS0ACgkQbwltcAfKi3+OIQCfXkphSoK7oBvEz+MHHFMsPSOz gSgAoKyPBL/OUXMyROItfk0J00HaN6SM =OM+/ -----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.