[Puppet Users] Re: Roles and profiles dissent

2019-08-23 Thread Chris Southall
> > > Good points and a nice example. In the case of my basic module I'm > currently using a separate create_resources line for each class parameter. > Is there a way to iterate over all class parameters using each() so I can > use a single nested loop to create everything? > > You can - add

[Puppet Users] Re: Could not request certificate: Connection refused - request https://centos:8140//puppet-ca/v1/certificate/ca failed: Failed to open TCP connection to centos:8140 (Connection refused

2019-08-23 Thread jcbollinger
On Thursday, August 22, 2019 at 1:13:59 AM UTC-5, Zhang Zhao 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

Re: [Puppet Users] Could not request certificate: Connection refused - request https://centos:8140//puppet-ca/v1/certificate/ca failed: Failed to open TCP connection to centos:8140 (Connection refused

2019-08-23 Thread Martin Alfke
What is the hostname of the master? puppet or puppetmaster? You must configure the agent if the hostname of the master is not “puppet”. You can do so by running the following command on the agent: puppet config set —section agent master > On 23. Aug 2019, at 09:49, Zhang Zhao wrote: > > Hi M

Re: [Puppet Users] Could not request certificate: Connection refused - request https://centos:8140//puppet-ca/v1/certificate/ca failed: Failed to open TCP connection to centos:8140 (Connection refused

2019-08-23 Thread Zhang Zhao
Hi Martin, This is the Vagrantfile below.. I didn’t DNS and NTP..It’s just a very simple testing environment. And puppet master and agent are able to ping each other. Zhangs-MBP:VBox alex$ cat Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The

Re: [Puppet Users] Could not request certificate: Connection refused - request https://centos:8140//puppet-ca/v1/certificate/ca failed: Failed to open TCP connection to centos:8140 (Connection refused

2019-08-23 Thread Martin Alfke
Hi Zhang, > On 23. Aug 2019, at 09:36, Zhang Zhao wrote: > > Hi Martin, > Thank you for your reply.. The firewall was disabled before I started puppet… > I was using VirtualBox to create the environment. One server acts as puppet > master and the other acts as agent. Still getting same error….

Re: [Puppet Users] Could not request certificate: Connection refused - request https://centos:8140//puppet-ca/v1/certificate/ca failed: Failed to open TCP connection to centos:8140 (Connection refused

2019-08-23 Thread Zhang Zhao
Hi Martin, Thank you for your reply.. The firewall was disabled before I started puppet… I was using VirtualBox to create the environment. One server acts as puppet master and the other acts as agent. Still getting same error…. Any idea what else steps I was missing for configuration? [root@pu