Ubuntu 16.04 build Puppet service:
Puppet is a configuration management tool that enables system administrators to automate the configuration and management of server infrastructure.
First, install the software
Master
Curl-o Https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.debdpkg-i Puppetlabs-release-pc1-xenial.debapt-get updateapt-get Install puppetserverln-s/opt/puppetlabs/bin/puppet/usr/bin /systemctl start Puppetserversystemctl Enable Puppetserver
Agent
Curl-o Https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.debdpkg-i Puppetlabs-release-pc1-xenial.debapt-get updateapt-get Install puppet-agentln-s/opt/puppetlabs/bin/puppet/usr/bin /systemctl Start Puppetsystemctl Enable puppet
Second, the certificate signature
Agent
Vi/etc/hosts
10.0.0.2 Puppet (Puppet master server)
: Wq
Puppet Agent-t
Master
Puppet cert Listpuppet cert sign puppeta.ming.com (based on 1 steps)
1-time deployment of all requests:
Puppet cert sign--all
Third, push verification
Master
Vi/etc/puppetlabs/code/environments/production/manifests/site.pp
file {'/tmp/it_works.txt ':
ensure = present,
mode = ' 0644 ',
Content = "It works on ${ipaddress_eth0}!\n",
}
: Wq
Agent
Puppet Agent-tcat/tmp/it_works.txt
Ubuntu 16.04 Build Puppet Service