Ask Your Question
0

Puppet master service missing on Ubuntu

asked 2015-08-21 05:03:42 -0500

Puppet-user gravatar image

I installed Puppet master from Ubuntu repository on Ubuntu 14.04. The master seems to be working (Agents can get their catalogs from the master). But when I needed to restart (or stop) the Puppet master I run into trouble: I cant't find the Puppet master service.

root@puppet:~# ps -ef |grep puppet
puppet    1315     1  0 Aug20 ?        00:00:04 Passenger RackApp: /usr/share/puppet/rack/puppetmasterd
root@puppet:~# service puppet status
puppet: unrecognized service
root@puppet:~# service puppetmaster status
puppetmaster: unrecognized service

Only puppet related service I can find is puppetqd. But stopping/restarting this service has no effect on Puppet master. So how can restart or stop Puppet master?

Installed packages:

root@puppet:~# dpkg -l |grep puppet
ii  puppet-common                    3.4.3-1ubuntu1.1                 all          Centralized configuration management
ii  puppetmaster-common              3.4.3-1ubuntu1.1                 all          Puppet master common scripts
ii  puppetmaster-passenger           3.4.3-1ubuntu1.1                 all          Centralised configuration management-master setup to run under mod passenger

Version:

   root@puppet:~# puppet --version
    3.4.3
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-08-21 15:31:06 -0500

ramindk gravatar image

If Passenger/Rack is running your Puppet master, the server you would need to restart is Apache.

note you can also do tell the application to restart itself.

# I think this is the correct path, but you should verify
# you may need to create the tmp/ dir
sudo touch /usr/share/puppet/rack/puppetmasterd/tmp/restart.txt

The application will wait for the next request, stat the files, notice the restart.txt, restart the application, serve the request. Might take 30-60s.

edit flag offensive delete link more
0

answered 2015-08-21 09:40:18 -0500

you should also have a puppetmaster package ...e.g. on my test ubuntu puppet master:-

d

darkpool ~ # dpkg -l|grep puppet ii puppet-common 3.4.3-1ubuntu1.1 all Centralized configuration management ii puppet-lint 0.3.2-2 all check puppet manifests for style guide conformity rc puppetlabs-release 1.0-11 all "Package to install Puppet Labs gpg key and apt repo" ii puppetmaster 3.4.3-1ubuntu1.1 all Centralized configuration management - master startup and compatibility scripts ii puppetmaster-common 3.4.3-1ubuntu1.1 all Puppet master common scripts darkpool ~ #

I'm assuming you're either on the wrong server or dont have all the needed packages installed Cheers Stuart

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-08-21 05:02:32 -0500

Seen: 825 times

Last updated: Aug 21 '15