On Oct 6, 4:53 pm, John Warburton <jwarbur...@gmail.com> wrote:
> If you own the manifest already, you can set properties there
>
> Otherwise, you can do what we do and use an exec - not efficient, but it
> works
>

Hmm.

Interesting.

Disclaimer: I'm a puppet newbie. So two followup questions:
1. Where does the snippet below belong. Does that go straight into
site.pp?

2. Does it log something if a change was needed?

Does the "notify" bit handle that?

(i also dont understand the bit about owning the manifest. if you are
referring to "manifests/site.pp", then where ELSE do you put it? :-/ )


>     exec { 'syslog_remote':
>         command => "svccfg -s svc:/system/system-log setprop
> config/log_from_remote = $syslog_from_remote \
>             || { svccfg -s svc:/system/system-log addpg config application;
> svccfg -s svc:/system/system-log setprop config/log_from_remote = boolean:
> $syslog_from_remote; }",
>         unless  => "svccfg -s svc:/system/system-log listprop
> config/log_from_remote 2>&1 | grep \"^config/log_from_remote * boolean *
> $syslog_from_remote\"",
>         notify  => Service['syslogd'],
>         path    => '/usr/sbin:/bin:/usr/bin',
>     }
>

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