Created
September 16, 2016 00:23
-
-
Save tjormola/a2f2db3580f8b73250e36acd16befe84 to your computer and use it in GitHub Desktop.
This file contains 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
(03:22:33)(tj@ganga)(~)$ cat /tmp/vartest.cf | |
bundle agent main | |
{ | |
vars: | |
"foo" | |
string => $(cf_null); | |
classes: | |
"is_foo_variable" | |
expression => isvariable("foo"); | |
reports: | |
"foo=$(foo)"; | |
is_foo_variable:: | |
"foo is a variable alright"; | |
} | |
(03:22:38)(tj@ganga)(~)$ cf-agent -V | |
CFEngine Core 3.9.1 | |
(03:22:42)(tj@ganga)(~)$ cf-agent -f /tmp/vartest.cf | |
R: foo=$(cf_null) | |
R: foo is a variable alright | |
(03:22:47)(tj@ganga)(~)$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment