I have written a puppet manifest to install php , Here's the /etc/puppet/modules/php/manifests/init.pp
class php {
$phpname = $osfamily ? {
'Debian' => 'php5',
'RedHat' => 'php',
default => warning('This distribution is not supported by the PHP module'),
}
package { 'php':
name => $phpname,
ensure => present,
}
package { 'php-pear':
ensure => present,
}
service { 'php-service':
name => $phpname,
ensure => running,
enable => true,
}
}
I have added include php to the hosts in my sites.pp file.
The catalog is applied successfully on my agent except the fact that I am unable to start the php service. How do I ensure that the service is started successfully?