From f5eb463f91836525239327537392fc4d65fcb542 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 23 Mar 2021 22:38:09 +0100 Subject: Cut down code quotes that were too long and disformed the blog template --- content/blog/cfengine/leveraging-yaml.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'content/blog/cfengine') 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"; -- cgit v1.2.3