Skip to content

Instantly share code, notes, and snippets.

[22] moses@mosesmac:appliance$ curl -v --fail -i "http://jenkins-foss.delivery.puppetlabs.net/job/Node%20Classifier%20Packaging%20Downstream/buildWithParameters?token=iheartjenkins&_BRANCH=master&REF=bd651c54bc625cda6e24e43f3df82e208f90a692&BUILD_SELECTOR=99&PACKAGE_BUILD_STATUS=$UPSTREAM_BUILD_STATUS&PACKAGE_BUILD_URL=http://jenkins-release.delivery.puppetlabs.net/job/classifier-packaging-2014-02-21-10-10-54-bd651c54bc625cda6e24e43f3df82e208f90a692"
* Adding handle: conn: 0x7fb65c004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fb65c004000) send_pipe: 1, recv_pipe: 0
* About to connect() to jenkins-foss.delivery.puppetlabs.net port 80 (#0)
* Trying 10.16.77.102...
* Connected to jenkins-foss.delivery.puppetlabs.net (10.16.77.102) port 80 (#0)
> GET /job/Node%20Classifier%20Packaging%20Downstream/buildWithParameters?token=iheartjenkins&_BRANCH=master&REF=bd651c54bc625cda6e24e43f3df82e208f90a692&BUILD_SELECTOR=99&PACKAGE_BUILD_STATUS=&PACKAGE_BUILD
@MosesMendoza
MosesMendoza / gist:81ddd8c33e89074da628
Created August 8, 2014 17:48
data service test set
@platform_info =
{ :el =>
{ :'4' => { :arches => [:i386, :x86_64], :support => true, :repo => false, :pkg => :rpm, :signature_format => :'v3', :build_with => :mock, :installer_format => :tar },
:'5' => { :arches => [:i386, :x86_64], :support => true, :repo => true, :pkg => :rpm, :signature_format => :'v3', :build_with => :mock, :installer_format => :tar },
:'6' => { :arches => [:i386, :x86_64], :support => true, :repo => true, :pkg => :rpm, :signature_format => :'v4', :build_with => :mock, :installer_format => :tar } ,
:'7' => { :arches => [:x86_64], :support => true, :repo => true, :pkg => :rpm, :signature_format => :'v4', :build_with => :mock, :installer_format => :tar } } }
uvd31mk36d20f9f:~ root# which facter
uvd31mk36d20f9f:~ root# /opt/puppet/bin/facter
architecture => x86_64
augeasversion => 1.2.0
domain => delivery.puppetlabs.net
facterversion => 2.2.0
fqdn => uvd31mk36d20f9f.delivery.puppetlabs.net
gid => wheel
hardwareisa => i386
hardwaremodel => x86_64
[root@el7 ~]# cat dashboard-classification-export.json
{
"groups" : [ {
"name" : "foogroup",
"description" : "",
"nodes" : [ "el7" ],
"variables" : { },
"classes" : { },
"parents" : [ "myparent" ]
}, {
[root@el7 ~]# cat dashboard-classification-export.json
{
"groups" : [ {
"name" : "foogroup",
"description" : "",
"nodes" : [ "el7" ],
"variables" : { },
"classes" : { },
"parents" : [ "parent0" ]
}, {
[root@el7 ~]# /opt/puppet/bin/nc_migrate import --input converted-dashboard-classification.json
Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :get-groups of protocol: #'puppetlabs.classifier.storage/PrimitiveStorage found for class: clojure.lang.LazySeq
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:555)
at puppetlabs.classifier.storage$fn__5310$G__5257__5315.invoke(storage.clj:11)
at puppetlabs.redrover.import$merge_hierarchy.invoke(import.clj:153)
at puppetlabs.redrover.import$import_BANG_.invoke(import.clj:172)
at puppetlabs.redrover.main$main_STAR_.doInvoke(main.clj:195)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:626)
at puppetlabs.redrover.main$_main$fn__10193.invoke(main.clj:207)
@MosesMendoza
MosesMendoza / hack.sh
Created March 31, 2012 20:47 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
General:
Currently, there are several cases regarding database setup in the PE installer. Note that the database setup routines only occur if the console is selected for install.
1) the installer checks for the existence of mysql.
* If it is found, the installer asks if the mysql server is running on a remote host. if it is remote, the user is prompted to enter host
and port information. if it is not remote, the installer assumes the mysql server is hosted on the current stations.
* If it is not found, the installer asks if the user would like to install MySQL server. If yes, the installer proceeds directly to step 3, below, skipping step 2.
Note: the install *will exit* if the user opts not to install MySQL server at this point. The installer does not support installing MySQL client only.
#!/bin/sh -e
case "$1" in
configure)
if grep -q 'Ubuntu 8.04' /etc/issue ; then
SITELIBDIR=$(ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")
mkdir -p $SITELIBDIR || :
ln -s /usr/lib/ruby/vendor_ruby/mcollective $SITELIBDIR/ || :
ln -s /usr/lib/ruby/vendor_ruby/mcollective.rb $SITELIBDIR/ || :
fi
From f320eb76e7bd8488b8fb480e051417f052c453ea Mon Sep 17 00:00:00 2001
From: Moses Mendoza <moses@puppetlabs.com>
Date: Tue, 30 Oct 2012 14:33:27 -0700
Subject: [PATCH] Update puppet spec to 3.0.1
This patch updates the puppet spec for version 3.0.1, and removes the
signature file as a source since its not used in the spec anywhere.
Puppet 3.0.1 includes service management files for systemd, which ships
with F17, so this updates the spec to include systemd conditionals where
applicable. Several deprecated manpages and executables, including