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
169 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

Error: Could not find class git::config for xxxx on node xxxx

You should note that you cannot call include on git::config. git::config is a ...READ MORE

answered Jul 31 in Puppet by Sirajul
• 31,980 points
62 views
0 votes
1 answer
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,900 points
195 views
0 votes
1 answer