Марионетка - mysql модуль, не вытягивающий “my.cnf” от файлового сервера

Попытка развернуть марионетку 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"
0
задан 23 May 2015 в 20:02
1 ответ

Вы определяете точку монтирования, скажем /etc/storage, для того, что вы собираетесь использовать на стр. Положите три /// перед определенной вами точкой монтирования.

(fileserver.conf)

[fs]
    path /etc/storage/  
    allow *

(nodes.pp)

source => "puppet:///fs/my.cnf",
0
ответ дан 5 December 2019 в 12:45

Теги

Похожие вопросы