Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define mysqldb( $user, $password, $hostName ) {
- exec { "create-${name}-db":
- unless => "/usr/bin/mysql -u${user} -p${password} ${name}",
- command => "/usr/bin/mysql -uroot -p$mysql_password -e \"create database ${name}; grant all on ${name}.* to '${user}'@$'{hostName}' identified by '$password';\"",
- require => Service["mysqld"],
- }
- }
- err:
- err: /Stage[main]//Node[pc0.quantifind.com]/Mysqldb[qf_prod]/Exec[create-qf_prod-db]/returns: change from notrun to 0 failed: /usr/bin/mysql -uroot -pBLEEEEEEP -e "create database qf_prod; grant all on qf_prod.* to qf@10.10.1.% identified by 'BLEEEP';" returned 1 instead of one of [0] at /etc/puppet/manifests/site.pp:33
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement