Skip to content

Instantly share code, notes, and snippets.

View rpetre's full-sized avatar

Petru Rațiu rpetre

  • RLUG
  • București, România
View GitHub Profile
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";
@rpetre
rpetre / gist:4001370
Created November 2, 2012 13:28 — forked from nickanderson/gist:4001312
duplicate selection of variable
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";
== 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.