Centos 6.3 Puppet Function Module instance notes

Source: Internet
Author: User
Tags centos

Today to introduce the specific practical functions of puppet, in fact, my understanding is how lazy, hehe.

1. Fill in the contents of the file:

(server):

To modify the server-side configuration file:

# VI/ETC/PUPPET/MANIFESTS/SITE.PP

-----------------

Node default{

file {"/tmp/test":

Content=> "This is a test file";

}

}

-----------------

Restart the puppetmaster to update the profile information.

# Service Puppetmaster Restart

(client):

Reboot puppet (no reboot available)

# Service Puppet Restart

Sync files:

# puppetd--server server.example.com--test

------------------

Warning:peer Certificate won ' t be verified in the SSL session

Info:caching Certificate for Client.example.com

Info:caching Certificate_revocation_list for CA

info:caching Catalog for Client.example.com

Info:applying configuration version ' 1369124449 '

Notice:/stage[main]//node[default]/file[/tmp/test]/ensure:defined content as ' {MD5} 100b144907af2a4786003758a0a6a563 '

Info:creating State File/var/lib/puppet/state/state.yaml

notice:finished catalog run in 0.02 seconds

------------------

View/tmp/test file and file contents

# Cat/tmp/test

-----------

This is a test file

-----------

Related Article

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.