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
-----------