私は人形の新しいです。それは私の最初の経験です。私は2つのubuntu VMにマスターとエージェントをインストールしました。私はすでにパペット付きのApacheをインストールしました。 正常に動作するようです。今、私は私のsite.ppと私のinit.ppを書いた:人形でmysql-serverをインストールする
[email protected]:/etc/puppet/manifests$ cat site.pp
node 'puppetclient.example.com' {
include apache2
include mysql-server
}
ツリー:
[email protected]:/etc/puppet/modules$ tree
.
├── apache2
│ └── manifests
│ └── init.pp
└── mysql-server
└── manifests
└── init.pp
私のMySQLサーバのための私のinit.pp:
class mysql-server {
package { 'mysql-server':
ensure => installed,
}
service { 'mysql-server':
ensure => true,
enable => true,
require => Package['mysql-server'],
}
}
Iエージェントでpuppet agent -t
を実行してください。
[email protected]:~$ sudo puppet agent -t
[sudo] password for ubuntu:
Info: Retrieving plugin
Info: Caching catalog for puppetclient.example.com
Info: Applying configuration version '1462308091'
Error: /Stage[main]/Mysql-server/Service[mysql-server]: Could not evaluate: Could not find init script or upstart conf file for 'mysql-server'
Notice: Finished catalog run in 0.10 seconds
私は間違っていますか?おかげ
は