关于弃用的Puppet MySQL的错误不断出现

时间:2014-01-15 08:06:19

标签: puppet puppetlabs-apache

这是我的清单:

 class capstone() {
  include apache
  include mysql
  class {'apache::vhost':
    port    => 80,
    docroot => '/var/www/wordpress',
  }
  include 'apache::mod::php'
  class {'mysql::server' :
    root_password      => 'foo',
    override_options => {
        'mysqld'   => { 'max_connections' => '1024' },
    }
  }
  class {'mysql::bindings' :
    php_enable => true
  }
}

我在modules / capstone / manifests / init.pp

中写了这个

在模块内部,stdlibapacheconcatcapstonemysqlwordpress已全部下载,capstone除外Error: ERROR: This class has been deprecated and the functionality moved into mysql::server. If you run mysql::server without correctly calling mysql:: server with the new override_options hash syntax you will revert your MySQL to the stock settings. Do not proceed without removing this class and using mysql::server correctly. If you are brave you may set attempt_compatibility_mode in this class which attempts to automap the previous settings to appropriate calls to mysql::server at /root/radiant/modules/mysql/manifests/init.pp:89 on node kim.puppetlabs.vm Error: ERROR: This class has been deprecated and the functionality moved into mysql::server. If you run mysql::server without correctly calling mysql:: server with the new override_options hash syntax you will revert your MySQL to the stock settings. Do not proceed without removing this class and using mysql::server correctly. If you are brave you may set attempt_compatibility_mode in this class w 1}}。

我的错误是:

{{1}}

我已经google了,并已按照其他链接中的建议,但我仍然得到相同的错误。不知道我做错了什么。

请告知。

1 个答案:

答案 0 :(得分:2)

两个错误:

1)不包含mysql

2)没有正确说明vhosts名称

这是工作清单:

  class capstone() {
  include apache
  include apache::mod::php

  apache::vhost { 'wordpress.example.com':
    port    => 80,
    docroot => '/var/www/wordpress',
  }

  class {'mysql::server' :
    root_password      => 'foo',
    override_options => {
        'mysqld'   => { 'max_connections' => '1024' },
    }
  }
  class {'mysql::bindings' :
    php_enable => true
  }
}