Skip to content

Instantly share code, notes, and snippets.

View someara's full-sized avatar

Sean OMeara someara

View GitHub Profile
@someara
someara / rhel5.ks
Created December 3, 2021 19:12 — forked from jbarber/rhel5.ks
RHEL5 kickstart example
# 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
#!/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() {
adnxs.net
@someara
someara / gist:673693
Created November 12, 2010 03:40
chef hostname
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`

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:

{
"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",
# orchestration, yo
service "myservice" do
action node['cerkberk']['myservice']['status']
end
derpy:~$ gem search -r knife-vsphere
*** REMOTE GEMS ***
knife-vsphere (0.4.0)
https://github.com/ezrapagel/knife-vsphere
@someara
someara / gist:5254661
Created March 27, 2013 14:37
crying sneak a river
# 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/
execute "do a thing" do
command "/path/to/binthing args"
not_if "test -f /tmp/foobar"
only_if "ps -ef | grep bob"
end