Skip to content

Commit

Permalink
attempt to make a flag file based on either cmdb (data namespace) or …
Browse files Browse the repository at this point in the history
…simple class
  • Loading branch information
craigcomstock committed Jan 17, 2024
1 parent 00f6c19 commit bbbb042
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cfengine-ci/cfengine-ci.cf
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
bundle agent cfengine_ci
{
methods:
vars:
"flag_file" string => "${sys.statedir}/ci_buildhost.flag";

files:
data:ci_buildhost::
"${flag_file}"
create => true;

classes:
"ci_buildhost" expresion => fileexists("${flag_file}");

methods:
data:ci_buildhost|ci_buildhost::
"cfengine_ci_buildhost";
}

0 comments on commit bbbb042

Please sign in to comment.