bundle agent hand_edited_template { vars: "masterfiles" string => "/mysite/masterfiles"; "policy_server" string => "policy_host.domain.tld"; files: "/etc/hosts" comment => "Synchronize hosts with a hand-edited template in svn", perms => m("644"), create => "true", edit_line => expand_template("$(masterfiles)/trunk/hosts_master"), edit_defaults => empty, action => if_elapsed("60"); commands: "/usr/bin/svn update" comment => "Update the company document repository including manuals to a local copy", contain => silent_in_dir("$(masterfiles)/trunk"), if => canonify("$(policy_server)"); } ``` # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost $(sys.host) ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 10.0.0.100 host1.domain.tld host1 10.0.0.101 host2.domain.tld host2 10.0.0.20 host3.domain.tld host3 10.0.0.21 host4.domain.tld host4 # Add below this line $(definitions.more_hosts)