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

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:

package 'foo' fo
action :install
end
template '/etc/foo' do
notifies :restart, 'service[foo]'
end
# this will be started, then restarted on the first chef-client run
service 'foo' do
# container A
template '/some/Dockerfile' do
action :create
end
template '/some/file' do
action :create
end
docker_image 'databass' do
Community cookbooks are important to me
How long have you been using Chef?
I expect Community cookbooks to "just work"
I expect the Chef Software maintained cookbooks to "just work"
I tried to reuse Community cookbooks as part of the evaluation process
Community cookbooks have positively affected my decision to adopt Chef
Community cookbooks have negatively affected my decision to adopt Chef
@someara
someara / gist:9591343
Last active August 29, 2015 13:57
application cookbook pattern
laptop:~/src ls -la
total 0
drwxr-xr-x 7 someara staff 238 Mar 16 19:19 .
drwxr-xr-x 210 someara staff 7140 Mar 16 19:20 ..
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 apache2
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 munin
drwxr-xr-x 3 someara staff 102 Mar 16 19:20 myface
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 mysql
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 selinx
laptop:~/src
[root@default-centos-58-someara-derpy ~]# rpm -qa | grep centos-release
centos-release-notes-5.8-0
centos-release-5-8.el5.centos
[root@default-centos-58-someara-derpy ~]# curl -L 'http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os'
http://mirror.linux.duke.edu/pub/centos/5.10/os/x86_64/
http://mirror.nsc.liu.se/CentOS/5.10/os/x86_64/
http://mirrors.kernel.org/centos/5.10/os/x86_64/
http://ftp.osuosl.org/pub/centos/5.10/os/x86_64/
http://centoss5.centos.org/centos/5.10/os/x86_64/
http://centosu5.centos.org/centos/5.10/os/x86_64/
derpy:~/src/opscode-cookbooks/sudo$ b kitchen converge create-centos-64
-----> Starting Kitchen (v1.2.1)
-----> Creating <create-centos-64>...
Digital Ocean instance <1176786> created.
..................... (server ready)
(ssh ready)
Finished creating <create-centos-64> (0m38.55s).
-----> Converging <create-centos-64>...
Preparing files for transfer