Skip to content

Instantly share code, notes, and snippets.

View zehicle's full-sized avatar

Rob Hirschfeld zehicle

View GitHub Profile
@zehicle
zehicle / drp-context.sh
Last active January 21, 2021 17:56
Digital Rebar 4.5 Load Context Images
#!/usr/bin/env bash
# RackN Copyright 2019
# Install Contexts
drpcli contexts create '{
"Name": "runner",
"Description": "drpcli-runner",
"Documentation": "Very minimal container to run the DRPCLI as a starting or idle point for Machines. This provides a very low overhead system to start or complete workflows so that tasks can continue to execute even if the target machine is not available (or never exists).",
"Engine": "docker-context",
"Image": "digitalrebar-context-runner",
cat /var/log/rabbitmq/startup_log
{net_kernel,init,['Argument__1']}
<0.47.0>
[]
{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,344}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
[net_sup,kernel_sup,<0.34.0>]
[]
[<0.44.0>]
[{longnames,true}]
true
{
"barclamp": {
"name": "ahold",
"display": "Ansible Holder",
"license": "APLv2",
"copyright": "RackN, 2016",
"source_path": "API_uploaded"
},
"wizard": null,
"roles": [
#!/bin/bash
# Copyright RackN 2016
# Apache 2 License
ipa="$(ip a | grep eth0 | grep -oe 'inet .* brd' | cut -d ' ' -f2)"
sudo apt-get update
sudo apt-get install git python python-pymongo python-pycurl -y
cd ~
{ "barclamp": {
"name": "datadog",
"display": "Datadog Agent",
"license": "rackn limited use",
"copyright": "RackN, Inc 2016",
"os_support": [
"centos-7.1.1503"
],
"source_path": ""
},
@zehicle
zehicle / Vagrantfile
Last active April 28, 2022 23:03
Crowbar Box Prep
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
# config.vm.box = "parallels/ubuntu-14.04 "
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.124.10", auto_config: true
@zehicle
zehicle / Vagrantfile
Created August 26, 2015 16:57
Slave file
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.define "slave", primary: true do |slave|
slave.vm.box = "chef/centos-7.1"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
@zehicle
zehicle / squid.conf
Created July 15, 2015 02:17
Squid 3 configuration
# WELCOME TO SQUID 3.3.8
# ----------------------------
#
# This is the documentation for the Squid configuration file.
# This documentation can also be found online at:
# http://www.squid-cache.org/Doc/config/
#
# You may wish to look at the Squid home page and wiki for the
# FAQ and other documentation:
# http://www.squid-cache.org/
{
"ansible_ssh_user":"root",
"ansible_ssh_port":22,
"system":{
"hosts":[
"node7.cr0wbar.com",
"node6.cr0wbar.com",
"node5.cr0wbar.com",
"node4.cr0wbar.com",
"node3.cr0wbar.com",
@zehicle
zehicle / Vagrantfile
Last active August 29, 2015 14:24
Vagrant File
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.define "admin", primary: true do |admin|
admin.vm.box = "chef/centos-6.6"
# Create a forwarded port mapping which allows access to a specific port
admin.vm.network "forwarded_port", guest: 3000, host: 3030