Skip to content

Instantly share code, notes, and snippets.

View russmckendrick's full-sized avatar
📚
Writting the second edition of Learn Ansible.

Russ McKendrick russmckendrick

📚
Writting the second edition of Learn Ansible.
View GitHub Profile
@russmckendrick
russmckendrick / cobbler.sh
Last active December 28, 2015 12:49
Install Cobbler
yum install http://ftp.linux.ncsu.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum install cobbler cobbler-web pykickstart
chkconfig cobblerd on
chkconfig xinetd on
service httpd restart
service xinetd start
service cobblerd start
service cobblerd status
cobbler get-loaders
vim /etc/cobbler/modules.conf
# Install EPEL and Update on both the master and minions
yum update -y
yum install http://ftp.linux.ncsu.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Install the salt-master
yum install salt-master
chkconfig salt-master on
sed -i 's/#interface: 0.0.0.0/interface: 0.0.0.0/g' /etc/salt/master
@russmckendrick
russmckendrick / 01-puppet-server-install.sh
Last active December 28, 2015 12:49
Puppet Server Installation
# Hostname - Make sure the host name it set to puppet.yourdomain.com and that you replace references in this file
# Install puppet & epel repos
yum install -y http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Download puppet-server from Puppet Labs, apache and necessary dependencies
yum install -y vim-enhanced puppet-server httpd httpd-devel mod_ssl ruby-devel rubygems gcc-c++ curl-devel zlib-devel make automake openssl-devel rubygem-rack rubygem-passenger-native-libs rubygem-passenger-native rubygem-passenger rubygem-fastthread libev mod_passenger git
# Start Puppet-Server
/etc/init.d/puppetmaster start
@russmckendrick
russmckendrick / storm-update.md
Created November 16, 2013 21:41
StormSSH Update

#Storm Update

looks like storm has a GUI now,

sudo pip install stormssh --upgrade
storm web --port 3333
@russmckendrick
russmckendrick / sitemap.sh
Last active December 30, 2015 15:19
Ghost Site Map
#!/bin/bash
url="yourdomain.com"
path="/path/to/ghost/sitemap/sitemap.xml"
date=`date +'%FT%k:%M:%S+00:00'`
freq="daily"
prio="0.5"
rm -f $path
@russmckendrick
russmckendrick / 01-jekyll.md
Last active August 29, 2015 13:55
Some Jekyll Snippets

Getting just the latest post;

{% for post in site.posts offset: 0 limit: 1 %}
<div class="some-style">
<a href="{{post.url}}">
<h3 class='news-title'>{{ post.title }}</h3>
<span class='news-date'>{{ post.date | date_to_string }}</span>
</a>
{{ page.excerpt }} <a href="{{post.url}}"><span class="read-more"> Read more</span></a>
@russmckendrick
russmckendrick / docker.md
Last active August 29, 2015 13:56
Docker Installation & Notes

Docker Notes

Installation

this assumes a clean installation of CentOS 6.5

yum install http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install docker-io
service docker start
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future <COMMAND>
location some-location {
add_header X-my-header my-header-content;
}
@russmckendrick
russmckendrick / shipyard.md
Last active August 29, 2015 14:00
Shipyard Installation

Install Shipyard

yum install http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install docker-io vim-enhanced
vim /etc/sysconfig/docker # Replace other_args="" with other_args="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
service docker start
chkconfig docker on
docker run -i -t -v /var/run/docker.sock:/docker.sock shipyard/deploy setup