Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean OMeara someara

View GitHub Profile
@someara
someara / rhel5.ks
Created Dec 3, 2021 — forked from jbarber/rhel5.ks
RHEL5 kickstart example
View rhel5.ks
# Example Kickstart config file for RHEL5, change $VARIABLES to suitable values
# for your site
# Usage from linux kernel boot prompt:
# linux ks=http://$SERVER_ADDR/ks/rhel5-example.ks ip=$IPADDR netmask=$NETMASK gateway=$GATEWAY [nokill] [keymap=pt-latin1] [noipv6] [debug]
#
# More boot options at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch-bootopts-x86.html
# Options for this section can be found at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-kickstart2-options.html
install
View gist:7bc06ff4eac767c9a71d0cac10926f9c
#!/bin/bash
set -euo pipefail
IFS=$'\t\n'
# This script JSON formatted stdin and produces as JSON formatted stdout
# Sean OMeara <sean@sean.io>
export PATH=$PATH:$1/bin
function error_exit() {
View gist:673693
bash -c '
echo <%= @config[:chef_node_name] %> > /tmp/chef_node_name
cat /tmp/chef_node_name | cut -d. -f1 > /tmp/proper_hostname
cat /tmp/chef_node_name | cut -d. -f2 | tr -d "\n" > /tmp/proper_dnsdomainname
echo -n "." >> /tmp/proper_dnsdomainname
cat /tmp/chef_node_name | cut -d. -f3 >> /tmp/proper_dnsdomainname
IPV4ADDR=`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1`
View keybase.md

Keybase proof

I hereby claim:

  • I am someara on github.
  • I am someara (https://keybase.io/someara) on keybase.
  • I have a public key ASApYXGkBHJu7BQuP5jJ2sFdG12cug2Mo2zgx7kvu_39Xgo

To claim this, I am signing this object:

View gist:6179945
{
"languages": {
"ruby": {
"platform": "arm-linux-eabihf",
"version": "1.9.3",
"release_date": "2012-04-20",
"target": "arm-unknown-linux-gnueabihf",
"target_cpu": "arm",
"target_vendor": "unknown",
"target_os": "linux-eabihf",
View gist:5670945
# orchestration, yo
service "myservice" do
action node['cerkberk']['myservice']['status']
end
View gist:5266325
derpy:~$ gem search -r knife-vsphere
*** REMOTE GEMS ***
knife-vsphere (0.4.0)
https://github.com/ezrapagel/knife-vsphere
@someara
someara / gist:5254661
Created Mar 27, 2013
crying sneak a river
View gist:5254661
# top secret chef docs
# docs
https://github.com/opscode/chef-docs
# hard to find download page
http://www.opscode.com/chef/install/
# complete list of artifacts and checksums
https://opscode-omnitruck-release.s3.amazonaws.com/
View gist:5248007
execute "do a thing" do
command "/path/to/binthing args"
not_if "test -f /tmp/foobar"
only_if "ps -ef | grep bob"
end