in 1st day of each month , change passwd of root.

# vi /etc/puppet/modules/user/manifests/init.pp

class user {
        exec { "rootpw":
                command => "/usr/sbin/usermod -p $rootpw root",
                onlyif => "/usr/bin/test `/bin/date -d now +%d` = '01'",
        }
}

# vi  /etc/puppet/manifests/templates.pp
import user
node basenode {
        $rootpw = "Vale.com-init"
        include user
}



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to