158.3. test

简介:

158.3.1. Master

vim /etc/puppet/manifests/site.pp

node default { file { "/tmp/puppettest1.txt": content => "hello,first puppet manifest"; } }
			

158.3.2. Agent

# puppetd --test --server puppet
info: Caching catalog for www.mydomain.com
info: Applying configuration version '1351280410'
notice: /Stage[main]//Node[default]/File[/tmp/puppettest1.txt]/ensure: defined content as '{md5}886609dedc5c8a0c58f3aa8d566175cc'
info: Creating state file /var/lib/puppet/state/state.yaml
notice: Finished catalog run in 0.06 seconds
			
# cat /tmp/puppettest1.txt
hello,first puppet manifest
			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
7月前
test114514
test114514
44 0
|
存储 SQL 缓存
|
自然语言处理 JavaScript 前端开发
Vue中 实现国际化
Vue中 实现国际化
402 0
Vue中 实现国际化
just test
click me
1019 0
resize2fs:Permission denied to resize filesystem
resize2fs:Permission denied to resize filesystem
3483 0
test1
1340009911118900001111
342 0