Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Commit 65af0af

Browse files
committed
Augeas will fail if the section is missing
This is a potential regression introduced in 6e049d4. If the `[shclustering]` is completely missing from the `server.conf`, this augeas rule will fail to create it. Even if it is not a practical regression for a Splunk deployment, it's a nice to make it complete for the benefit of anyone referring to this code in the future.
1 parent 4b8e9c2 commit 65af0af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

manifests/server/shclustering.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
lens => 'Splunk.lns',
6565
incl => "${splunk_home}/etc/system/local/server.conf",
6666
changes => [
67+
"set target[. = 'shclustering'] 'shclustering'",
6768
"set target[. = 'shclustering']/mgmt_uri https://${::fqdn}:8089",
6869
],
6970
}

0 commit comments

Comments
 (0)