[root@puppetmaster ~]# puppet resource service puppetserver ensure=running enable=true
service { 'puppetserver':
ensure => 'running',
enable => 'true',
}
[root@puppetmaster ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2469/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2694/master
tcp6 0 0 :::8140 :::* LISTEN 27805/java
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 2469/sshd
tcp6 0 0 ::1:25 :::* LISTEN 2694/master
[root@puppetmaster ~]# puppet cert list --all
Warning: `puppet cert` is deprecated and will be removed in a future release.
(location: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:370:in `run')
+ "puppetmaster.attlocal.net" (SHA256) 10:A5:A4:7D:9E:10:D1:14:C3:92:D2:CE:B4:7E:78:C5:C4:26:56:DA:0D:7B:4E:0B:D5:58:B4:1E:43:03:F4:9E (alt names: "DNS:puppet", "DNS:puppetmaster.attlocal.net")
On 22. Aug 2019, at 08:02, Zhang Zhao <zhang.a...@gmail.com> wrote:Hi,I am new to Puppet. Trying to set up a test environment. But the agent could not request a certificate as connection refused. I made sure that puppet server was running and service was enabled. Anyone can let me know where was wrong? Thanks.
ZhangOn PuppetMaster,[root@puppetmaster ~]# puppet resource service puppetserver ensure=running enable=trueservice { 'puppetserver':ensure => 'running',enable => 'true',}[root@puppetmaster ~]# netstat -ntlpActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemdtcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2469/sshdtcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2694/mastertcp6 0 0 :::8140 :::* LISTEN 27805/javatcp6 0 0 :::111 :::* LISTEN 1/systemdtcp6 0 0 :::22 :::* LISTEN 2469/sshdtcp6 0 0 ::1:25 :::* LISTEN 2694/master[root@puppetmaster ~]# puppet cert list --allWarning: `puppet cert` is deprecated and will be removed in a future release.(location: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:370:in `run')+ "puppetmaster.attlocal.net" (SHA256) 10:A5:A4:7D:9E:10:D1:14:C3:92:D2:CE:B4:7E:78:C5:C4:26:56:DA:0D:7B:4E:0B:D5:58:B4:1E:43:03:F4:9E (alt names: "DNS:puppet", "DNS:puppetmaster.attlocal.net")
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/688ccd6f-00a8-4f28-9683-d7a4424bacf3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5A7FEB43-1979-4A35-BF22-595752604F6D%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/01AABC8A-874A-4606-AE70-199C6BAB5550%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/DD22CE32-FBDF-404C-8820-17E01F3E5D89%40gmail.com.
Hi,I am new to Puppet. Trying to set up a test environment. But the agent could not request a certificate as connection refused. I made sure that puppet server was running and service was enabled. Anyone can let me know where was wrong? Thanks.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7B7B81F0-7369-4E82-BD64-2986426870DF%40gmail.com.