Puppet master(ubuntu VM-1) Puppet agent (ubuntu VM-2).
I've installed apache with puppet which works fine
ubuntu@puppet:/etc/puppet/manifests$ cat site.pp
node 'puppetclient.example.com' {
include apache2
include mysql-server
}
my init.pp for my mysql-server:
class mysql-server {
package { 'mysql-server':
ensure => installed,
}
service { 'mysql-server':
ensure => true,
enable => true,
require => Package['mysql-server'],
}
}
When i perform puppet agent -t on my agent.
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
Why am i getting the error? kindly help.