This file contains hidden or 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
[main] | |
trusted_node_data = true | |
parser = future | |
stringify_facts = false |
This file contains hidden or 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
[main] | |
# https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#the-facts-hash | |
trusted_node_data = true | |
parser = future |
This file contains hidden or 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
GEM | |
remote: https://rubygems.org/ | |
specs: | |
diff-lcs (1.1.3) | |
json (1.8.1) | |
mcollective (2.2.3) | |
json | |
stomp | |
systemu | |
mcollective-test (0.4.3) |
This file contains hidden or 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
require 'puppetdb/connection' | |
puppetdb = PuppetDB::Connection.new("localhost", 42) | |
query = puppetdb.parse_query("Class{foo=bar-baz}") | |
puts query.inspect |
This file contains hidden or 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
<package type="rpm"> | |
<name>mcollective-common</name> | |
<arch>noarch</arch> | |
<version epoch="0" ver="2.2.1" rel="1.el5"/> | |
<checksum type="sha" pkgid="YES">411339bd5da1770e67c643623fbe833a785a3f36</checksum> | |
<summary>Common libraries for the mcollective clients and servers</summary> | |
<description>The Marionette Collective: | |
Common libraries for the mcollective clients and servers</description> | |
<packager>R.I.Pienaar <[email protected]></packager> |
This file contains hidden or 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
#include <unistd.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) { | |
pid_t child; | |
pid_t grandchild; | |
int outpipe[2]; |
This file contains hidden or 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
--- jetty.xml.orig 2013-10-16 14:51:45.445530567 +0000 | |
+++ jetty.xml 2013-10-16 14:52:44.676532787 +0000 | |
@@ -25,7 +25,7 @@ | |
<property name="config" value="${activemq.base}/conf/jetty-realm.properties" /> | |
</bean> | |
- <bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint"> | |
+ <bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint"> | |
<property name="name" value="BASIC" /> | |
<property name="roles" value="admin" /> |
This file contains hidden or 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
minions = {} | |
INSTANCES.times do |i| | |
minions["minion#{i}"] = salt.minion_pub | |
end | |
salt.seed_master = minions |
This file contains hidden or 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
class one($foo) { | |
$bar = "trololo" | |
include one::two | |
} | |
class one::two { | |
notify{"x": message => inline_template("<%= scope.to_hash['foo'] %>, <%= scope.to_hash['bar'] %>")} | |
} | |
class{"one": foo => bar} |
This file contains hidden or 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
$ make && time mgo rpc -j rpcutil get_fact fact=pies | |
make: Nothing to be done for `all'. | |
[ | |
{ | |
"action": "get_fact", | |
"agent": "rpcutil", | |
"data": { | |
"fact": "pies", | |
"value": "yes" | |
}, |