Puppet

Puppet on Windows: set Administrator password to never expires

When maintaining windows server with puppet, it could be interesting to set your Administrator password to never expires. Since you want to manage your passwords through puppet, and not manually by some hyper active sysadmin, this comes in handy. Note the fact that it is wise to change passwords now and then 😉 On Windows […]

Puppet on Windows: set Administrator password to never expires Read More »

Puppet: Add MySQL User

Want to add a user to MySQL that you can use for eg backups, monitoring,… or any other tasks this user needs to perform. (in this example a root user) Create a small definition define create_mysqlbckuser ( $mysqlrootpasswd = ”, ) { exec { “create_mysql_bck°user”: unless => “/usr/bin/mysqladmin -ubckuser -p’b4ckupP4ss’ status”, command => “/usr/bin/mysql -uroot

Puppet: Add MySQL User Read More »

Scroll to Top