$ yum install ntp ntpdate wget git
$ ntpdate -u 0.centos.pool.ntp.org
$ timedatectl list-timezones
$ timedatectl set-timezone America/Vancouver
$ wget https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
$ yum install puppetlabs-release-pc1-el-7.noarch.rpm
$ yum -y update
$ yum install -y puppetserver
$ vi /etc/sysconfig/puppetserver
JAVA_ARGS="-Xms2g -Xmx2g
JAVA_ARGS="-Xms1g -Xmx1g"
$ cp files/puppet/* /etc/puppetlabs/puppet/
$ systemctl start puppetserver
$ systemctl enable puppetserver
$ yum install -y puppet-agent
$ /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true
$ sudo /opt/puppetlabs/bin/puppet cert list
"client.domain.local" (SHA256) 40:7C:E2:2E:09:4B:86:1A:B8:D5:4A:C0:CE:FF:4F:3F:BB:F9:C5:2F:99:13:51:FE:C7:22:F3:FE:6A:65:48:85
$ sudo /opt/puppetlabs/bin/puppet cert sign client.domain.local
$ sudo /opt/puppetlabs/bin/puppet cert sign --all
$ sudo /opt/puppetlabs/bin/puppet cert clean hostname
$ sudo /opt/puppetlabs/bin/puppet cert list --all
Once the Puppet master is signed your client certificate, run the following command on the client machine to test it.
$ sudo /opt/puppetlabs/bin/puppet agent --test
$ ssh-keygen -t rsa -C root@puppet
$ cat .ssh/id_rsa.pub (and paste into new key for gitlab/gihub)
$ mkdir git;cd git;git clone git@github.com/gameforce/puppet-site puppet
$ mkdir /etc/puppetlabs/r10k
$ cp files/puppet/r10k.yaml /etc/puppetlabs/r10k
$ /opt/puppetlabs/puppet/bin/gem install r10k
$ /opt/puppetlabs/puppet/bin/r10k deploy environment -pv
$ /opt/puppetlabs/puppet/bin/puppet agent --test