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: | |
| "dir" string => "/etc/apache2/modules-enabled"; | |
| "index" slist => getindices("array"); | |
| "cindex[$(index)]" string => canonify("$(index)"); | |
| "files" slist => lsdir("$(dir)", ".*", "false"); | |
| classes: | |
| "should_exist_$(cindex[$(index)])" expression => "any"; | |
| files: | |
| "/$(dir)/$(index)" | |
| create => "true"; |
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
| infra:~ # cf-agent -KI | |
| !! Duplicate selection of value for variable "missing" in scope dead_hosts | |
| !! Rule from /var/cfengine/inputs/actions/update.cf at/before line 38 | |
| !! Duplicate selection of value for variable "missing" in scope dead_hosts | |
| !! Rule from /var/cfengine/inputs/actions/update.cf at/before line 38 | |
| ------------------- | |
| bundle agent dead_hosts { | |
| vars: | |
| "delay" int => "24"; |
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
| == Rules == | |
| On Infrastructure | |
| ----------------- | |
| There is one system, not a collection of systems. | |
| The desired state of the system should be a known quantity. | |
| The "known quantity" must be machine parseable. | |
| The actual state of the system must self-correct to the desired state. | |
| The only authoritative source for the actual state of the system is the system. | |
| The entire system must be deployable using source media and text files. |