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
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
# couchdbkit.__version__ '0.5.4' | |
# restkit.__version__ '3.2.3' | |
# couchdb - Apache CouchDB '1.0.2' | |
import couchdbkit | |
import restkit |
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
$ /usr/local/sbin/cf-agent -KI -f ./test_readstringarray.cf | |
R: $(array_name[grouptest]) | |
R: $(array_name[80,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311]) | |
R: $(array_name[36,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567]) | |
R: $(array_name[92,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823]) |
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
#if $power_mode == "on" | |
#set operation = "up" | |
#else | |
#set operation = "down" | |
#end if | |
cd /etc/SMCIPMITool/ && java -jar /etc/SMCIPMITool/SMCIPMITool.jar "$power_address" "$power_user" "$power_pass" blade $power_id power "$operation" && cd - |
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
#!/usr/bin/python | |
# The Following Agent Has Been Tested On: | |
# | |
# Virsh 0.3.3 on RHEL 5.2 with xen-3.0.3-51 | |
# | |
import sys | |
import os | |
import subprocess |
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
body common control | |
{ | |
bundlesequence => { example }; | |
inputs => { "cfengine_stdlib.cf" }; | |
} | |
bundle agent example | |
{ | |
files: | |
"/tmp/myfile" |
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
cf3> CFEngine - autonomous configuration engine - commence self-diagnostic prelude | |
cf3> ------------------------------------------------------------------------ | |
cf3> Work directory is /var/cfengine | |
cf3> Looking for a source of entropy in /var/cfengine/randseed | |
cf3> Making sure that locks are private... | |
cf3> Checking integrity of the state database | |
cf3> Checking integrity of the module directory | |
cf3> Checking integrity of the PKI directory | |
cf3> -> Loaded private key /var/cfengine/ppkeys/localhost.priv | |
cf3> -> Loaded public key /var/cfengine/ppkeys/localhost.pub |
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
body common control | |
{ | |
bundlesequence => { "biginsert" }; | |
inputs => { "cfengine_stdlib.cf" }; | |
} | |
body agent control | |
{ | |
editfilesize => "1M"; | |
} |
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
body common control | |
{ | |
bundlesequence => { busers }; | |
} | |
bundle agent busers | |
{ | |
vars: | |
"musers[root][gecos]" string => "System administrator"; | |
"musers[root][uid]" string => "0"; |
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
cf3> CFEngine - autonomous configuration engine - commence self-diagnostic prelude | |
cf3> ------------------------------------------------------------------------ | |
cf3> Work directory is /var/cfengine | |
cf3> Looking for a source of entropy in /var/cfengine/randseed | |
cf3> Making sure that locks are private... | |
cf3> Checking integrity of the state database | |
cf3> Checking integrity of the module directory | |
cf3> Checking integrity of the PKI directory | |
cf3> -> Loaded private key /var/cfengine/ppkeys/localhost.priv | |
cf3> -> Loaded public key /var/cfengine/ppkeys/localhost.pub |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
OlderNewer