Ao executar a instalação do mysql através do puppet estou recebendo o seguinte erro:
notice: /Stage[main]//Service[mysql]: Dependency Package[mysql-server] has failures: true
warning: /Stage[main]//Service[mysql]: Skipping because of failed dependencies
notice: /Stage[main]//Package[openjdk-7-jre]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Exec[musicjungle]: Dependency Package[mysql-server] has failures: true
warning: /Stage[main]//Exec[musicjungle]: Skipping because of failed dependencies
notice: /Stage[main]//Package[tomcat7]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Exec[criacaoUsuario]: Dependency Package[mysql-server] has failures: true
warning: /Stage[main]//Exec[criacaoUsuario]: Skipping because of failed dependencies
notice: /Stage[main]//File[/var/lib/tomcat7/webapps/vraptor-musicjungle.war]/ensure: defined content as '{md5}0ec91ca0714f19d02f2219e08ad8a531'
notice: /Stage[main]//Service[tomcat7]: Triggered 'refresh' from 1 events
notice: Finished catalog run in 140.64 seconds
Meu arquivo web.app possui as seguintes configurações:
exec { "apt-update":
command => "/usr/bin/apt-get update"
}
package { ["openjdk-7-jre", "tomcat7", "mysql-server"]:
ensure => installed,
require => Exec["apt-update"]
}
service { "tomcat7":
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Package["tomcat7"]
}
file { "/var/lib/tomcat7/webapps/vraptor-musicjungle.war":
source => "/vagrant/manifests/vraptor-musicjungle.war",
owner => "tomcat7",
group => "tomcat7",
mode => 0644,
require => Package["tomcat7"],
notify => Service["tomcat7"]
}
service { "mysql":
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Package["mysql-server"]
}
exec { "musicjungle":
command => "mysqladmin -uroot create musicjungle",
unless => "mysql -u root musicjungle",
path => "/usr/bin",
require => Service["mysql"]
}
exec { "criacaoUsuario":
command => "mysql -uroot -e \"GRANT ALL PRIVILEGES ON * TO 'musicjungle'@'%' IDENTIFIED BY 'musicjungle';\" musicjungle",
unless => "mysql -u musicjungle musicjungle",
path => "/usr/bin",
require => Exec["musicjungle"]
}
Alguma sugestão?