*Master daemon in Puppet "puppet master"*
Puppet master is the central puppet server. Firing this command "puppet master" starts an instance of puppet master and runs as a daemon by default.
[root@puppet ~]# /etc/init.d/puppetmaster status
puppetmasterd is stopped
[root@puppet ~]# puppet master
[root@puppet ~]# /etc/init.d/puppetmaster status
puppetmasterd (pid 31281) is running...
[root@puppet ~]#
If you want to enable full debugging mode while executing puppet master you can use the option --debug while firing it.
[root@puppet ~]# puppet master --debug --no-daemonize
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Failed to load library 'rubygems' for feature 'rubygems'
debug: /File[/var/lib/puppet/reports]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/server_data]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/yaml]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: /File[/etc/puppet/fileserver.conf]: Autorequiring File[/etc/puppet]
debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs]
..........
..........
..........
debug: Using cached certificate for ca
debug: Using cached certificate for puppet.sunny.com
notice: Starting Puppet master version 2.7.25
debug: Finishing transaction 70212603728220
Using --no-daemonize option will get all your information on the foreground as stated above.
If you want to keep this information in a log kind of a thing at a custom location you can use the option --logdest while using it.
[root@puppet ~]# puppet master --debug --logdest /tmp/puppet_master_log
[root@puppet ~]#
Now if you will cat this file /tmp/puppet_master_log you can see all information regarding puppet master startup.
To see the version of puppet master you can use --version option.
[root@puppet ~]# puppet master --version
2.7.25
[root@puppet ~]#
To see the configuration parameters of the puppet master you can fire this command.
[root@puppet ~]# puppet master --genconfig > /tmp/puppet_conf
This command will create a sample configuration file in /tmp directory as puppet_conf.
To see what is the path of ssldir:
[root@puppet ~]# puppet master --genconfig | grep ssldir
# The default value is '$ssldir/crl.pem'.
ssldir = /var/lib/puppet/ssl
# The default value is '$ssldir/private_keys'.
thank you for this marvellous post. Puppet master can also be managed by other application servers; when this is the case, this executable is not used.
ReplyDeleteThe information you provided in this Blog is very useful and The information is worth and very useful for the beginners. UiPath automation platform enables global enterprises to design, deploy and manage a full fledged robotic workforce that mimics employees in administering rules-based tasks and frees them from the daily routine of rote work. Know more Details About Uipath Click here.
ReplyDelete