Skip to content

Instantly share code, notes, and snippets.

View jcpowermac's full-sized avatar

Joseph Callen jcpowermac

View GitHub Profile
diff --git a/core/model/base.rb b/core/model/base.rb
index 09bf228..a5a25df 100644
--- a/core/model/base.rb
+++ b/core/model/base.rb
@@ -21,6 +21,7 @@ module ProjectHanlon
attr_accessor :counter
attr_accessor :log
attr_accessor :req_metadata_hash
+attr_accessor :opt_metadata_hash
import requests
def create_argument_spec(base_url, model):
url = "%s/model/templates/%s" % (base_url, model)
argument_spec = dict()
argument_spec.update(
base_url=dict(required=True),
model=dict(required=True))
#!/usr/bin/python
DOCUMENTATION = '''
---
module: hanlon_model
short_description: This is a sentence describing the module
# ... snip ...
1z92ygFkLsSqNz1fgCfTRG
@jcpowermac
jcpowermac / live-cd.ks
Created January 30, 2015 21:03
Create CentOS 6.6 Live CD with Dell Tools
#livecd-creator -c livecd.ks --cache cache/
lang en_US.UTF-8
keyboard us
rootpw --plaintext raidconfig
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr --append="crashkernel=auto rhgb quiet"
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 36c69d7..6952bb3 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -242,8 +242,7 @@ static void pc_init1(MachineState *machine,
}
/* init basic PC hardware */
- pc_basic_device_init(isa_bus, gsi, &rtc_state, &floppy,
- (pc_machine->vmport != ON_OFF_AUTO_ON), 0x4);
#!/bin/sh
exec /opt/qemu/x86_64-softmmu/qemu-system-x86_64 -machine accel=kvm "$@"
<domain type='kvm' id='12'>
<name>esxi2</name>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
@jcpowermac
jcpowermac / site_docker.yml
Created October 22, 2015 18:58
Ansible Hanlon Docker with Consul and Registrator
---
- name: Start Hanlon Docker Environment
hosts: localhost
vars:
hanlon_resource: "/opt/hanlon"
docker_network: "{{ ansible_docker0.ipv4.network }}"
local_network: "{{ ansible_default_ipv4.network }}"
hanlon_subnets: "{{ local_network }}/24,{{ docker_network }}/16"
docker_api_version: 1.18
@jcpowermac
jcpowermac / docker-compose.yml
Last active February 10, 2016 23:03
hanlon_docker_compose
---
mongo:
image: mongo
command: mongod --smallfiles
volumes:
- "/opt/hanlon/data/db:/data/db"
server:
image: "cscdock/hanlon"

The first step is to change the mk_log_level in the web/config/hanlon_server.conf.

mk_log_level: Logger::DEBUG

The quickest way to restart hanlon is through pumactl. Lets get PID first.

# ps -ef | grep puma
root        31     1  0 Feb24 ?        00:00:56 puma 2.15.3 (tcp://0.0.0.0:8026) [web]