I have just started to learn puppet. I installed the latest package of puppetserver and have not been able to get it to start properly. I tried it on an Ubuntu 12 box, a CentOS box from puppetlabs and also fresh CentOS 7 copy.
I am running virtualbox and using vagrant to create the VM. I have allocated 6GB of RAM to the puppet and this is the vm config
config.vm.define :puppet do |puppet_config|
puppet_config.vm.box = "centos/7"
puppet_config.vm.hostname = "puppet.localdomain"
puppet_config.vm.network :private_network, ip: "10.0.15.210"
puppet_config.vm.synced_folder ".", "/vagrant", disabled: true
puppet_config.vm.provider "virtualbox" do |vb|
vb.memory = "6048"
end
end
After executing the command systemctl start puppetserver, I get a failure message and ps -ef shows a puppet process. Unable to figure out what is going wrong.
> Job for puppetserver.service failed> because the control process exited> with error code. See "systemctl status> puppetserver.service" and "journalctl> -xe" for details.
I don't see any useful message in the log files even after I set the log mode to trace. This is the message I have in puppetserver.log
> 2017-06-01 15:38:46,370 DEBUG [main] [p.t.bootstrap] Loading bootstrap configs:
/etc/puppetlabs/puppetserver/services.d/ca.cfg
/opt/puppetlabs/server/apps/puppetserver/config/services.d/bootstrap.cfg
This is from journalctl -xe
> -- Unit puppetserver.service has begun starting up.
Jun 01 15:45:02 puppet.localdomain puppetserver[7032]: OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8Jun 01 15
:50:01 puppet.localdomain systemd[1]: puppetserver.service start operation timed out. Terminating.
Jun 01 15:50:02 puppet.localdomain puppetserver[7032]: Startup script was terminated before completion
Jun 01 15:50:03 puppet.localdomain systemd[1]: puppetserver.service: control process exited, code=exited status=1
Jun 01 15:50:03 puppet.localdomain systemd[1]: Failed to start puppetserver Service.>-- Subject: Unit puppetserver.service has failed>-- Defined-By: systemd>-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel>-->-- Unit puppetserver.service has failed.>-->-- The result is failed.>Jun 01 15:50:03 puppet.localdomain systemd[1]: Unit puppetserver.service entered failed state.>Jun 01 15:50:03 puppet.localdomain systemd[1]: puppetserver.service failed.>Jun 01 15:50:03 puppet.localdomain polkitd[545]: Unregistered Authentication Agent for unix-process:7026:244832 (system bus name :1.69, object pathJun 01 15:50:03 puppet.localdomain systemd[1]: puppetserver.service holdoff time over, scheduling restart.>Jun 01 15:50:03 puppet.localdomain systemd[1]: Starting puppetserver Service...>-- Subject: Unit puppetserver.service has begun start-up>-- Defined-By: systemd>-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel>-->-- Unit puppetserver.service has begun starting up.>Jun 01 15:50:03 puppet.localdomain puppetserver[7615]: OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8lines 254
I don't have a DNS server but have configured hosts file to have fqdn of the system.
Hosts file:
127.0.0.1 puppet.localdomain puppet localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.15.210 puppet.localdomain
From /etc/sysconfig/network
# Created by anaconda
HOSTNAME="puppet.localdomain"
.
What should I do to get it to work?
↧