Ubuntu 16.04 Build Puppet Service

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.