|
verify before deploy: msg#00196sysutils.puppet.user
so I have this sudo module that I've been working on: class auth::sudo { package { sudo: ensure => installed } file { sudo_config:
name => "/tmp/sudoers", owner => "root", group => "root", mode => 0440, notify => Exec["sudoers-syntax"],
source => [ "puppet:///auth/sudo/${fqdn}/sudoers", "puppet:///auth/sudo/sudoers" ] } exec { "sudoers-syntax": command => "/bin/cp /tmp/sudoers /etc/sudoers", onlyif => "/usr/sbin/visudo -c /tmp/sudoers",
refreshonly => true, } } it works very well but I'm wondering if there is another way (cleaner perhaps) to use an external command to verfiy a file prior to deployment. Is there way to access a potential file before it's deployed? Or get at the previous version if something doesn't pass a sniff test.
Puppet-users mailing list Puppet-users@xxxxxxxxxxx https://mail.madstop.com/mailman/listinfo/puppet-users |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: option to trigger the change immidietiely: 00196, James Turnbull |
|---|---|
| Next by Date: | Re: verify before deploy: 00196, Derek.Whayman |
| Previous by Thread: | option to trigger the change immidietielyi: 00196, Rajeshwaran G |
| Next by Thread: | Re: verify before deploy: 00196, Derek.Whayman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |