Puppet: Cannot start php service that is defined in a puppet manifest.

0 votes

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?

Sep 18 in Puppet by Karan
• 6,670 points
47 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Puppet

0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12 in Puppet by Jason
207 views
0 votes
1 answer

Is there a provision of on failure ability in puppet?

Not a built-in one, no.  They do log failures, of ...READ MORE

answered Aug 6 in Puppet by Sirajul
• 41,000 points
31 views
0 votes
1 answer

Puppet+Docker:Creating a Docker service using a Puppet manifest

Docker services are used to create distributed ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 41,000 points
46 views
0 votes
1 answer
0 votes
1 answer

Puppet: Error in generating new certificates when a new puppet master is created.

A new certificate has to be generated ...READ MORE

answered Aug 29 in Puppet by Sirajul
• 41,000 points
244 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
261 views
0 votes
1 answer