我正在尝试mysqltuner
从 forge 安装 puppet,已经正确安装了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 以便它与我的文件一起使用。我非常感谢该主题的任何答案。
亲切的问候。
拉米罗