Skip to content

Instantly share code, notes, and snippets.

[main]
trusted_node_data = true
parser = future
stringify_facts = false
[main]
# https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#the-facts-hash
trusted_node_data = true
parser = future
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)
require 'puppetdb/connection'
puppetdb = PuppetDB::Connection.new("localhost", 42)
query = puppetdb.parse_query("Class{foo=bar-baz}")
puts query.inspect
<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 &lt;[email protected]&gt;</packager>
#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];
@richardc
richardc / fixup.patch
Last active December 25, 2015 17:09
puppetlabs-deps activemq-5.8.0-1.el6
--- 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" />
minions = {}
INSTANCES.times do |i|
minions["minion#{i}"] = salt.minion_pub
end
salt.seed_master = minions
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}
@richardc
richardc / go
Last active December 24, 2015 10:38
$ 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"
},