Попытка развернуть марионетку MySQL. Используя модуль "Puppetlabs-MySQL".
Мои puppetmaster'd стр имеют
node 'jira.oracle' { class {'mysql::server':} }
class mysql::server {
package { "mysql-server": ensure => installed }
package { "mysql": ensure => installed }
service { "mysqld":
enable => true,
ensure => running,
require => Package["mysql-server"],
}
file { "/var/lib/mysql/my.cnf":
owner => "mysql", group => "mysql",
source => "puppet:///fs/my.cnf",
notify => Service["mysqld"],
require => Package["mysql-server"],
}
file { "/etc/my.cnf":
require => File["/var/lib/mysql/my.cnf"],
ensure => "/var/lib/mysql/my.cnf",
}
exec { "set-mysql-password":
unless => "mysqladmin -uroot -p$mysql_password status",
path => ["/bin", "/usr/bin"],
command => "mysqladmin -uroot password $mysql_password",
require => Service["mysqld"],
}
}
и fileserver.conf имеет
# MOUNT POINTS
[fs]
path /etc/puppet/environments/production/modules
allow *
Но агент все еще не вытягивает "my.cnf" от марионеточного ведущего устройства с ошибками:
"Error: /Stage[main]/Mysql::Server/File[/var/lib/mysql/my.cnf]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///fs/my.cnf
Notice: /Stage[main]/Mysql::Server/File[/etc/my.cnf]: Dependency File[/var/lib/mysql/my.cnf] has failures: true
Warning: /Stage[main]/Mysql::Server/File[/etc/my.cnf]: Skipping because of failed dependencies
Notice: /Stage[main]/Mysql::Server/Service[mysqld]: Dependency File[/var/lib/mysql/my.cnf] has failures: true
Warning: /Stage[main]/Mysql::Server/Service[mysqld]: Skipping because of failed dependencies
Notice: /Stage[main]/Mysql::Server/Exec[set-mysql-password]: Dependency File[/var/lib/mysql/my.cnf] has failures: true
Warning: /Stage[main]/Mysql::Server/Exec[set-mysql-password]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.51 seconds"
Вы определяете точку монтирования, скажем /etc/storage, для того, что вы собираетесь использовать на стр. Положите три /// перед определенной вами точкой монтирования.
(fileserver.conf)
[fs]
path /etc/storage/
allow *
(nodes.pp)
source => "puppet:///fs/my.cnf",