关于不推荐使用的Puppet MySQL的错误持续出现

关于不推荐使用的Puppet MySQL的错误持续出现,puppet,puppetlabs-apache,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', o

这是我的舱单:

 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
  }
}
  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
  }
}
我在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
我在谷歌上搜索过,并在其他链接中遵循了这些建议,但我仍然得到同样的错误。不知道我哪里做错了

请告知。

两个错误:

1) 不包括mysql

2) 未正确说明vhosts名称

这是工作清单:

 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
  }
}
  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
  }
}

谢谢你的回答!由于使用了旧版本的模块,我的设置中还包含了“includemysql”,这与我更新后的问题造成的破坏是一样的。不幸的是,模块repo自述文件对此没有帮助。