Rookie needs help with dependencies

asked 2015-11-18 12:44:28 -0600

mewald gravatar image

Hi, we have created the following init.pp for a module: The problem is that /etc/mysql/debian.cnf is not changed while in the database itself the password for debian-sys-maint was set.

Running puppet agent, we get this output:

ubuntu@controller1:~$ papply
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for controller1.openstacklocal
Warning: /Apt_key[Add key: 0xcbcb082a1bb943db from Apt::Source galera_mariadb_repo]: The id should be a full fingerprint (40 characters), see README.
Info: Applying configuration version '1447871595'
Notice: /Stage[main]/Galera/Package[galera]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Galera/Exec[mysql_stop]/returns:  * Stopping MariaDB database server mysqld
Notice: /Stage[main]/Galera/Exec[mysql_stop]/returns:!
Error: /usr/sbin/service mysql stop returned 1 instead of one of [0]
Error: /Stage[main]/Galera/Exec[mysql_stop]/returns: change from notrun to 0 failed: /usr/sbin/service mysql stop returned 1 instead of one of [0]
Notice: /Stage[main]/Galera/Exec[mysql_start]: Dependency Exec[mysql_stop] has failures: true
Warning: /Stage[main]/Galera/Exec[mysql_start]: Skipping because of failed dependencies
Notice: Finished catalog run in 1.12 seconds

After setting the debian-sys-maint password manually in /etc/mysql/debian.cnf everything runs like a charm. Any ideas what's happening? Even --debug on the puppet agent does not reveal any clues of that the ini settings for /etc/mysql/debian.cnf where actually executed.

Any ideas?

edit retag flag offensive close merge delete


It's hard to tell exactly what you're trying to accomplish here. Are you simply trying to set the password and restart mysql? It's certainly not common to have execs that stop and start service like that.

lavaman gravatar imagelavaman ( 2015-11-18 16:43:23 -0600 )edit