Error: Could not find init script for 'puppet' - Puppet error

0 votes

I'm trying to install puppet agent in docker.

I've executed this

wget https://apt.puppetlabs.com/puppet5-release-xenial.deb
dpkg -i puppet5-release-xenial.deb
apt update
apt-get install puppet-agent
/opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true

I get the following error:

Error: Could not find init script for 'puppet'
Error: /Service[puppet]/ensure: change from 'stopped' to 'running' failed: Could not find init script for 'puppet'
service { 'puppet':
  ensure => 'stopped',
  enable => 'false',
}
Mar 12 in Puppet by Vismaya
61 views

1 answer to this question.

0 votes
You need to be running your processes via an entrypoint or command option. systemd and other init processes are not installed by design. Basically, you should be running these commands through the container.

You are running it through the Bootstrap applications or maybe wrapper if I'm not wrong.
answered Mar 12 by Haider

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

Ram requirements for puppet installation

4 GB would be less for proper ...READ MORE

answered Dec 19, 2018 in Puppet by Alan
17 views
0 votes
1 answer

Service already defines error in Puppet

Hey @Rohan, try this: class MyClass { ...READ MORE

answered Feb 9 in Puppet by Monish
25 views
0 votes
1 answer

Error while using newrelic class - Puppet

Hey @Harjot, The catalog compiler will look ...READ MORE

answered Feb 14 in Puppet by Ranjan
18 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,160 points
99 views
0 votes
1 answer
0 votes
1 answer