On a second run of puppet after adding the mysql::db is not possible to 
create the db getting the error below

class { 'mysql::server':
         config_hash => {root_password => 'changeme',}
}
mysql::db { 'mydatabase':
         user     => 'myapp1',
         password => 'supersecret',
         host     => 'webapp1.puppetlabs.com',
}

Error: Execution of '/usr/bin/mysql -NBe create database `mydatabase` 
character set utf8' returned 1: ERROR 1045 (28000): Access denied for user 
'root'@'localhost' (using password: NO)

Executing the command from shell (after replacing the quotes ` with '  ) 
and including all the command in double quote the db gets created.
It seems that the puppet process cannot find the password that is present 
in the /root/.my.conf

For sure there is some problem in my installation any help?
Thanks
Luca

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/acyvqiM8R_YJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to