Puppet erb模板介绍(三十二)
# puppet agent -tNotice: Ignoring --listen on onetime run
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for sh-web1.localdomain
Info: Applying configuration version '1509985283'
Notice: /Stage/Admin/Exec/returns: executed successfully
Notice: /Stage/Admin/File/content:
--- /etc/resolv.conf2017-11-06 16:20:16.706631342 +0800
+++ /tmp/puppet-file20171106-37995-5hvzbe-02017-11-06 16:21:21.839631273 +0800
@@ -1,7 +1,6 @@
; generated by /sbin/dhclient-script
search localdomain
-$ip_1="22.22.22.22"
+nameserver 8.8.8.8
nameserver 192.168.30.2
-nameserver 8.8.8.8
\ No newline at end of file
Info: Computing checksum on file /etc/resolv.conf
Info: /Stage/Admin/File: Filebucketed /etc/resolv.conf to puppet with sum b53bde035cf20d095306e09e84334fbc
Notice: /Stage/Admin/File/content: content changed '{md5}b53bde035cf20d095306e09e84334fbc' to '{md5}da4ff6163dd0c7c1108bb4d1838295d3'
Notice: Finished catalog run in 0.23 seconds
# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 8.8.8.8
nameserver 192.168.30.2
页:
[1]