Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Forked from anonymous/test.cf
Created August 21, 2012 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickanderson/3419685 to your computer and use it in GitHub Desktop.
Save nickanderson/3419685 to your computer and use it in GitHub Desktop.
#!/var/cfengine/bin/cf-agent -f
body common control {
bundlesequence => { "main" };
}
bundle agent main{
reports:
cfengine::
"I can be executed like a shell script";
}
@nickanderson
Copy link
Author

$ chmod 700 test.cf
$ ./test.cf
R: I can be executed like a shell script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment