Skip to content

Instantly share code, notes, and snippets.

View gravyboat's full-sized avatar

Forrest gravyboat

View GitHub Profile
@gravyboat
gravyboat / gist:6505383
Created September 10, 2013 05:38
java requires
{#
# "Oracle" Java Installation
# Currently only interested in the Oracle 'Server' Java package.
# Server Jave has the following:
# - No Auto Update
# - JRE
# - 64-bit only
#}
java-home:
@gravyboat
gravyboat / gist:6554309
Created September 13, 2013 18:30
instance_owner change
{%- if instance_owner != "nginx" %}
{{ instance_owner }}:
user:
- present
- require:
- group: {{ instance_owner }}
group:
- present
{%- endif %}
{% endfor %}
@gravyboat
gravyboat / gist:6558845
Created September 14, 2013 04:32
top.sls example
base:
'*':
- apache_base
- iptables
'minion1':
- loc1
- role2
- dep1
@gravyboat
gravyboat / gist:7011104
Created October 16, 2013 16:55
apache if statement.
{% if grains['os'] == 'Ubuntu' %}
apache:
{% elif grains['os'] == 'CentOs' %}
httpd:
{% endif %}
pkg:
- installed
service:
- running
nscd:
pkg:
- installed
service:
- running
- name: nscd
- enable: True
- watch:
- file: /etc/ldap/ldap.conf
@gravyboat
gravyboat / gist:7141358
Created October 24, 2013 17:18
prince install
princexml:
pkg:
- installed
- sources:
- prince: http://www.princexml.com/download/prince_9.0-2_ubuntu12.04_amd64.deb
@gravyboat
gravyboat / gist:7296063
Created November 3, 2013 23:37
helderco symlink
/etc/grub.conf:
file.symlink:
- target: /boot/grub/grub.conf
- user: helderco
- group: helderco
- mode: 655
@gravyboat
gravyboat / map.jinja
Created November 4, 2013 18:19
lookup structuring
{% from "users/map.jinja" import users with context %}
group1:
mbarnett:
fullname: Melissa Barnett
groups:
- {{ salt['pillar.get']('users.adm_group') }}
crypt: $6$eR6EbjW8$abCOo.v/bx629Sl0jz0R61jIE8kC8Q3v7VhxTDjTerSiJnF.9Qv2XXw/Whb3x48yBfFGAPmiHW5PAKxNcegcg1
home: /home/mbarnett
@gravyboat
gravyboat / gist:7344831
Created November 6, 2013 21:58
__ikke__ fixed.
munin-node:
pkg:
- installed
- names:
- munin-node
- munin-plugins-extra
- liblwp-useragent-determined-perl
- libcache-cache-per
service:
- running
@gravyboat
gravyboat / gist:7378419
Last active December 27, 2015 19:39
docker install
docker:
pkg.installed:
- name: lxc-docker
- version: '0.6.6'