This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vars: | |
| "svc_states[smb]" string => "on"; | |
| "svc_states[nmb]" string => "on"; | |
| "services" slist => getindices("svc_states"); | |
| methods: | |
| "any" usebundle => service_startup("$(services)","$(svc_states[$(services)])"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| packages: | |
| "gpg-pubkey" | |
| comment => "Check to see if gpg key for virtualbox repo is installed", | |
| package_policy => "verify", | |
| package_version => "98ab5139-4bf2d0b0", | |
| package_method => rpm_version("/dev/null"), | |
| classes => if_notkept("install_virtualbox_repo_key"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle agent app_zabbix | |
| { | |
| vars: | |
| # daemons to run | |
| "svc_states[zabbix_agentd]" string => "on"; | |
| "services" slist => getindices("svc_states"); | |
| # template files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle agent app_foobar | |
| { | |
| files: | |
| "/etc/passwd" | |
| comment => "ensure +:::::: is the last line in /etc/passwd", | |
| edit_line => append_to_passwd; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle agent app_dhcpd | |
| { | |
| classes: | |
| "any" expression => regextract( | |
| "([^\n]+)\.([^\n]+)\.([^\n]+)", | |
| "$(sys.ipv4_3[$(interface)])", | |
| "ip_addr" | |
| ); | |
| vars: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle agent app_dhcpd | |
| { | |
| classes: | |
| "any" expression => regextract( | |
| "([^\n]+)\.([^\n]+)\.([^\n]+)\.", | |
| "$(sys.ipv4_3[eth0])", | |
| "ip_addr" | |
| ); |