Guest User

Untitled

a guest
Jul 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class mysql-server::installation {
  2. ...
  3. notify => Exec["Reset the root password"],
  4. ...
  5. }
  6.  
  7. class mysql-server::service {
  8. ...
  9. exec {
  10. "Reset the root password":
  11. command => "/usr/bin/mysqladmin -u root password \"...\"",
  12. cwd => "/var/lib/mysql",
  13. onlyif => "/usr/bin/mysql -u root -e ''",
  14. refreshonly => true,
  15. require => Service["mysql-server"],
  16. user => "mysql",
  17. }
  18. }
Add Comment
Please, Sign In to add comment