Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.68 KB | None | 0 0
  1. define mysqldb( $user, $password, $hostName ) {
  2.     exec { "create-${name}-db":
  3.       unless => "/usr/bin/mysql -u${user} -p${password} ${name}",
  4.       command => "/usr/bin/mysql -uroot -p$mysql_password -e \"create database ${name}; grant all on ${name}.* to '${user}'@$'{hostName}' identified by '$password';\"",
  5.       require => Service["mysqld"],
  6.     }
  7.   }
  8.  
  9.  
  10. err:
  11.  
  12. 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