Ich bin neu in Puppe. Es ist meine erste Erfahrung damit. Ich habe einen Master und einen Agenten auf 2 Ubuntu VMs installiert. Ich habe bereits Apache mit Puppe installiert. Es scheint gut zu funktionieren. Jetzt habe ich meine site.pp und meine init.pp geschrieben:Installieren Sie mysql-Server mit Puppe
[email protected]:/etc/puppet/manifests$ cat site.pp
node 'puppetclient.example.com' {
include apache2
include mysql-server
}
Baum:
[email protected]:/etc/puppet/modules$ tree
.
├── apache2
│ └── manifests
│ └── init.pp
└── mysql-server
└── manifests
└── init.pp
mein init.pp für meine mysql-server:
class mysql-server {
package { 'mysql-server':
ensure => installed,
}
service { 'mysql-server':
ensure => true,
enable => true,
require => Package['mysql-server'],
}
}
Wenn i Führen Sie puppet agent -t
auf meinem Agenten aus.
[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
Was mache ich falsch? Dank