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