1

这是我的清单:

 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 中写了这个

在模块内部,我有stdlib, apache, concat, capstone, mysql,wordpress除了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

我已经用谷歌搜索并遵循了其他链接中的建议,但我仍然遇到同样的错误。不知道我在哪里做错了。

请指教。

4

1 回答 1

2

两个错误:

1)不包括mysql

2) 没有正确说明虚拟主机名称

这是工作清单:

  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
  }
}
于 2014-01-15T08:33:41.387 回答