diff options
author | Julien Dessaux | 2021-03-23 22:38:09 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-23 22:38:09 +0100 |
commit | f5eb463f91836525239327537392fc4d65fcb542 (patch) | |
tree | 11d0000dfe9b5e6a29db1e3224ccf36841a64420 /content/blog/cfengine | |
parent | Added an openbsd article and simplified all useless relref (diff) | |
download | www-f5eb463f91836525239327537392fc4d65fcb542.tar.gz www-f5eb463f91836525239327537392fc4d65fcb542.tar.bz2 www-f5eb463f91836525239327537392fc4d65fcb542.zip |
Cut down code quotes that were too long and disformed the blog template
Diffstat (limited to 'content/blog/cfengine')
-rw-r--r-- | content/blog/cfengine/leveraging-yaml.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/content/blog/cfengine/leveraging-yaml.md b/content/blog/cfengine/leveraging-yaml.md index 62b3a2d..e773325 100644 --- a/content/blog/cfengine/leveraging-yaml.md +++ b/content/blog/cfengine/leveraging-yaml.md @@ -83,7 +83,9 @@ bundle agent openvpn classes => if_repaired("tunnel_$(tunnels)_service_repaired"); commands: any:: - "/usr/sbin/service openvpn@$(tunnels) restart" classes => if_repaired("tunnel_$(tunnels)_service_repaired"), ifvarclass => "openvpn_common_key_repaired"; + "/usr/sbin/service openvpn@$(tunnels) restart" + classes => if_repaired("tunnel_$(tunnels)_service_repaired"), + ifvarclass => "openvpn_common_key_repaired"; reports: any:: "$(this.bundle): common.key repaired" ifvarclass => "openvpn_common_key_repaired"; @@ -94,7 +96,8 @@ bundle agent openvpn_tunnel(tunnel) { classes: any:: - "has_remote" and => { isvariable("g.host_data[tunnels][$(tunnel)][remote_host]"), isvariable("g.host_data[tunnels][$(tunnel)][remote_port]") }; + "has_remote" and => { isvariable("g.host_data[tunnels][$(tunnel)][remote_host]"), + isvariable("g.host_data[tunnels][$(tunnel)][remote_port]") }; files: any:: "/etc/openvpn/$(tunnel).conf" @@ -106,7 +109,9 @@ bundle agent openvpn_tunnel(tunnel) classes => if_repaired("openvpn_$(tunnel)_conf_repaired"); commands: any:: - "/usr/sbin/service openvpn@$(tunnel) restart" classes => if_repaired("tunnel_$(tunnel)_service_repaired"), ifvarclass => "openvpn_$(tunnel)_conf_repaired"; + "/usr/sbin/service openvpn@$(tunnel) restart" + classes => if_repaired("tunnel_$(tunnel)_service_repaired"), + ifvarclass => "openvpn_$(tunnel)_conf_repaired"; reports: any:: "$(this.bundle): $(tunnel).conf repaired" ifvarclass => "openvpn_$(tunnel)_conf_repaired"; |