--- Puppet ---

To Install...
yum install puppet-agent.x86_64  puppetserver.noarch puppetlabs-stdlib.noarch
To REinstall...
yum remove  puppet-agent.x86_64  puppetserver.noarch puppetlabs-stdlib.noarch
rm -rf /var/log/puppetlabs
rm -rf /var/log/puppetlabs/puppetserver
rm -rf /var/log/puppetlabs/puppetserver/puppetserver-2019-07-12.0.log.gz
rm -rf /var/log/puppetlabs/puppetserver/OLD/puppetserver-access.log
rm -rf /var/log/puppetlabs/puppetserver/OLD/puppetserver.log
rm -rf /var/log/puppetlabs/puppetserver/OLD/puppetserver-status.log
rm -rf /var/log/puppetlabs/puppetserver/puppetserver-access.log
rm -rf /var/log/puppetlabs/puppetserver/puppetserver.log
rm -rf /var/log/puppetlabs/puppetserver/puppetserver-status.log
rm -rf /var/cache/yum/x86_64/7Server/puppet6
rm -rf /usr/lib/python2.7/site-packages/sos/plugins/puppet.pyc
rm -rf /usr/lib/python2.7/site-packages/sos/plugins/puppet.pyo
rm -rf /usr/lib/python2.7/site-packages/sos/plugins/puppet.py
rm -rf /usr/lib/python2.7/site-packages/ansible/modules/system/puppet.py
rm -rf /usr/lib/python2.7/site-packages/ansible/modules/system/puppet.pyc
rm -rf /usr/lib/python2.7/site-packages/ansible/modules/system/puppet.pyo
rm -rf /usr/lib/firewalld/services/puppetmaster.xml
rm -rf /usr/share/doc/puppet6-release-6.0.0
rm -rf /usr/share/augeas/lenses/dist/puppet.aug
rm -rf /usr/share/augeas/lenses/dist/puppet_auth.aug
rm -rf /usr/share/augeas/lenses/dist/puppetfileserver.aug
rm -rf /usr/share/augeas/lenses/dist/puppetfile.aug
rm -rf /usr/share/gtksourceview-3.0/language-specs/puppet.lang
rm -rf /usr/share/puppet
rm -rf /opt/puppetlabs
rm -rf /etc/puppetlabs
Paste the following configuration...
cd /etc/puppetlabs/puppet
vim puppet.conf
[main]
certname = <hosname>.binghamton.edu
server = <hosname>.binghamton.edu
environment = production
runinterval = 1h

systemctl enable puppetserver
systemctl start  puppetserver
systemctl status puppetserver
This might need to be scripted into a service
An issue
:puppet takes a long time to start so the service will need to have puppet as a dependency
/opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true
Then to do a complete replace of certs...
rm -rf /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem
rm -rf /etc/puppetlabs/puppet/ssl/ca/ca_crl.pem
rm -rf /etc/puppetlabs/puppet/ssl/ca/infra_crl.pem
rm -rf /etc/puppetlabs/puppet/ssl/certs/adnix.binghamton.edu.pem
rm -rf /etc/puppetlabs/puppet/ssl/certs/ca.pem
rm -rf /etc/puppetlabs/puppet/ssl/crl.pem
rm -rf /etc/puppetlabs/puppet/ssl/ca/ca_pub.pem
rm -rf /etc/puppetlabs/puppet/ssl/ca/inventory.txt
rm -rf /etc/puppetlabs/puppet/ssl/ca/infra_inventory.txt
rm -rf /etc/puppetlabs/puppet/ssl/ca/infra_serials
rm -rf /etc/puppetlabs/puppet/ssl/ca/serial
rm -rf /etc/puppetlabs/puppet/ssl/ca/signed/adnix.binghamton.edu.pem
rm -rf /etc/puppetlabs/puppet/ssl/ca/ca_key.pem

/opt/puppetlabs/bin/puppetserver ca setup

/opt/puppetlabs/bin/puppetserver ca list --all
For tomcat ...
puppet module install puppetlabs-stdlib
Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/production/modules
└── puppetlabs-stdlib (v6.0.0)
[root@adnix ~]# puppet module install puppetlabs-tomcat
Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/production/modules
└─┬ puppetlabs-tomcat (v1.2.0)
  ├── nanliu-staging (v1.0.3)
  ├─┬ puppetlabs-concat (v6.1.0)
  │ └── puppetlabs-translate (v2.0.0)
  └── puppetlabs-stdlib (v6.0.0)
To search for puppet and user defined modules...
https://forge.puppet.com/modules
Test the Agent
/opt/puppetlabs/bin/puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Notice: /File[/opt/puppetlabs/puppet/cache/lib/facter/apache_version.rb]/ensure: defined content as '{md5}7655e8407a86cd6883298c0b8cf5f0f2'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/functions/apache]/ensure: created
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/functions/apache/apache_pw_hash.rb]/ensure: defined content as '{md5}ccd20759f263cb09b582e41f27d6ff2a'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/functions/apache/bool2httpd.rb]/ensure: defined content as '{md5}f639809ec3401b8abc99b134b08ecbc2'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/functions/apache/validate_apache_log_level.rb]/ensure: defined content as '{md5}3f35a58c4bf386f3fed4c2734d11fc7f'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/parser/functions/apache_pw_hash.rb]/ensure: defined content as '{md5}91a8b7e6bf589ec590e9d553a199cf3d'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/parser/functions/bool2httpd.rb]/ensure: defined content as '{md5}f508449eab59560ed0af4a7c46750a2b'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/parser/functions/validate_apache_log_level.rb]/ensure: defined content as '{md5}41717ac13056e24ea2beb583cb05211b'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/a2mod]/ensure: created
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/a2mod.rb]/ensure: defined content as '{md5}f68f95d9444bce3746e4cbebb06dbc5b'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/a2mod/a2mod.rb]/ensure: defined content as '{md5}3e605e7ee91fdb24015ef551b6c5f6c0'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/a2mod/gentoo.rb]/ensure: defined content as '{md5}38bfa4ca531faf386be8b4f7c5fc306e'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/a2mod/modfix.rb]/ensure: defined content as '{md5}5f7be8bfdb72e5b52ed83a63ac861dcb'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/a2mod/redhat.rb]/ensure: defined content as '{md5}a853a87f36eda1597d4c5959f1e337a2'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/type/a2mod.rb]/ensure: defined content as '{md5}7163e1c80c3e8a164c855d18420d55b2'
Info: Retrieving locales
Notice: /File[/opt/puppetlabs/puppet/cache/locales/ja/puppetlabs-apache.po]/ensure: defined content as '{md5}709261183cc8d4fed57edee36ea843a5'
Info: Loading facts
Info: Caching catalog for adnix.binghamton.edu
Info: Applying configuration version '1564053757'
Notice: Applied catalog in 0.01 seconds
A Simple MANIFEST example
cat runyumupdate.pp
# execute 'apt-get update'
exec { 'runyumupdate':            # exec resource named 'runyumupdate'
  command => '/usr/bin/yum update -y' # command this resource will run
}
/opt/puppetlabs/bin/puppet apply  -l /var/log/runyumupdate.log /etc/puppetlabs/manifests/runyumupdate.pp

cat /tmp/runyumupdate.log
#############################
2019-07-25 08:28:30 -0400 Puppet (notice): Compiled catalog for adnix.binghamton.edu in environment production in 0.09 seconds
2019-07-25 08:28:32 -0400 /Stage[main]/Main/Exec[runyumupdate]/returns (notice): executed successfully
2019-07-25 08:28:32 -0400 Puppet (notice): Applied catalog in 2.14 seconds
If you add --debug to the apply option it returns (at least for this one) 10173 lines!!!
Only the last few have the info I wanted to see...
2019-07-25 08:33:07 -0400 Facter (debug): resolving Xen facts.
2019-07-25 08:33:07 -0400 Facter (debug): resolving fips facts.
2019-07-25 08:33:07 -0400 Facter (debug): fact "fips_enabled" has resolved to false.
2019-07-25 08:33:07 -0400 Puppet (debug): Reset text domain to :production
2019-07-25 08:33:07 -0400 Puppet (notice): Compiled catalog for adnix.binghamton.edu in environment production in 0.07 seconds
2019-07-25 08:33:07 -0400 Puppet (debug): Creating default schedules
2019-07-25 08:33:07 -0400 Puppet (debug): Loaded state in 0.00 seconds
2019-07-25 08:33:07 -0400 Puppet (debug): Loaded state in 0.00 seconds
2019-07-25 08:33:07 -0400 Puppet (info): Applying configuration version '1564057987'
2019-07-25 08:33:07 -0400 Exec[runyumupdate](provider=posix) (debug): Executing '/usr/bin/yum update -y'
2019-07-25 08:33:07 -0400 Puppet (debug): Executing: '/usr/bin/yum update -y'
2019-07-25 08:33:09 -0400 /Stage[main]/Main/Exec[runyumupdate]/returns (notice): executed successfully
2019-07-25 08:33:09 -0400 /Stage[main]/Main/Exec[runyumupdate] (debug): The container Class[Main] will propagate my refresh event
2019-07-25 08:33:09 -0400 Class[Main] (debug): The container Stage[main] will propagate my refresh event
2019-07-25 08:33:09 -0400 Puppet (debug): Finishing transaction 28466100
2019-07-25 08:33:09 -0400 Puppet (debug): Storing state
2019-07-25 08:33:09 -0400 Puppet (debug): Pruned old state cache entries in 0.00 seconds
2019-07-25 08:33:09 -0400 Puppet (debug): Stored state in 0.00 seconds
2019-07-25 08:33:09 -0400 Puppet (notice): Applied catalog in 1.96 seconds
2019-07-25 08:33:09 -0400 Puppet (debug): Applying settings catalog for sections reporting, metrics
2019-07-25 08:33:09 -0400 Puppet (debug): Finishing transaction 27563540
2019-07-25 08:33:09 -0400 Puppet (debug): Received report to process from adnix.binghamton.edu
2019-07-25 08:33:09 -0400 Puppet (debug): Processing report from adnix.binghamton.edu with processor Puppet::Reports::Store

Valid HTML 4.01!