【发布时间】:2015-03-26 20:41:54
【问题描述】:
我正在尝试从 forge 为 puppet 安装 mysqltuner,已经正确安装了 mysql 模块,但我不太了解类的行为。
示例如下:
class drupal::db {
class { '::mysql::server':
# how would i access to ::mysql::server::mysqltuner???
# how do i should nest to make it work???
# how can i access the subclass of server "mysqltuner"??? what connector should i use???, I know it like some kind of path to the subclass.
# Which is the magic connector????
# Class Tested It works
# ::mysql::server::mysqltuner No
# ::mysqltuner No
# mysqltuner No
class { '::mysql::server::mysqltuner':
ensure => present
}
}
class { '::mysql::client':
...
}
}
我尝试了几种方法,但都没有奏效。 我必须使用我自己的 cfg 文件,并且我需要加载 mysqltuner 以便它与我的文件一起使用。 我非常感谢该主题的任何答案。
亲切的问候。
拉米罗
【问题讨论】:
标签: mysql class automation puppet mysqltuner