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, 2019 in Puppet by Karan
• 19,610 points
1,021 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, 2019 in Puppet by Jason
1,531 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, 2019 in Puppet by Sirajul
• 59,230 points
644 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, 2019 in Puppet by Sirajul
• 59,230 points
946 views
0 votes
1 answer

Puppet+Kubernetes: Is there a way to create resources in Kubernetes using Puppet?

Yes, it is quite possible to create ...READ MORE

answered Aug 23, 2019 in Puppet by Sirajul
• 59,230 points
993 views
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, 2019 in Puppet by Sirajul
• 59,230 points
7,487 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,065 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP