高峰之巅 发表于 2018-8-1 13:12:27

puppet-linux

# puppet agent --test#测试节点agent1  
info: Caching catalog for agent1_cert.kisspuppet.com
  
info: Applying configuration version '1394304542'
  
notice: /Stage/Motd/File/content:
  
--- /etc/motd    2000-01-13 07:18:52.000000000 +0800
  
+++ /tmp/puppet-file20140309-4571-1vqc18j-0    2014-03-09 02:51:47.000000000 +0800
  
@@ -0,0 +1,3 @@
  
+--                     --
  
+--------puppet test---------
  
+--                     --
  
info: FileBucket adding {md5}d41d8cd98f00b204e9800998ecf8427e
  
info: /Stage/Motd/File: Filebucketed /etc/motd to puppet with sum d41d8cd98f00b204e9800998ecf8427e
  
notice: /Stage/Motd/File/content: content changed '{md5}d41d8cd98f00b204e9800998ecf8427e' to '{md5}87ea3a1af8650395038472457cc7f2b1'
  
notice: Finished catalog run in 0.40 seconds
  

  
# cat /etc/motd
  
--                     --
  
--------puppet test---------
  
--                     --
  
#
  

  

  
# puppet agent -t#测试节点puppetmaster
  
info: Caching catalog for puppetmaster_cert.kisspuppet.com
  
info: Applying configuration version '1394305371'
  
notice: /Stage/Motd/File/content:
  
--- /etc/motd    2010-01-12 21:28:22.000000000 +0800
  
+++ /tmp/puppet-file20140309-3102-1gadon0-0    2014-03-09 03:02:51.966998294 +0800
  
@@ -0,0 +1,3 @@
  
+--                     --
  
+--------puppet test---------
  
+--                     --
  
info: FileBucket adding {md5}d41d8cd98f00b204e9800998ecf8427e
  
info: /Stage/Motd/File: Filebucketed /etc/motd to puppet with sum d41d8cd98f00b204e9800998ecf8427e
  
notice: /Stage/Motd/File/content: content changed '{md5}d41d8cd98f00b204e9800998ecf8427e' to '{md5}87ea3a1af8650395038472457cc7f2b1'
  
info: Creating state file /var/lib/puppet/state/state.yaml
  
notice: Finished catalog run in 0.52 seconds
  
# cat /etc/motd
  
--                     --
  
--------puppet test---------
页: [1]
查看完整版本: puppet-linux