Skip to content

Instantly share code, notes, and snippets.

View thekuffs's full-sized avatar

Aaron Tygart thekuffs

View GitHub Profile
@thekuffs
thekuffs / salt-minion.sh
Created September 13, 2012 22:39
Salt minion init script
#!/bin/sh
#
# Salt minion
###################################
# LSB header
### BEGIN INIT INFO
# Provides: salt-minion
# Required-Start: network
#!/bin/bash
#
# supervisord This scripts turns supervisord on
#
# Author: Mike McGrath <mmcgrath@redhat.com> (based off yumupdatesd)
# Jason Koppe <jkoppe@indeed.com> adjusted to read sysconfig,
# use supervisord tools to start/stop, conditionally wait
# for child processes to shutdown, and startup later
#
# chkconfig: 345 83 04
@thekuffs
thekuffs / init.sls
Created December 5, 2012 21:38 — forked from centrix/init.sls
mysql.sls
mysql_dirs:
file:
- directory
- mode: 644
- makedirs: True
- names:
- /etc/mysql
- /data/mysql-data
- /data/cluster-data
- /data/cluster-data/backup
@thekuffs
thekuffs / gist:4247140
Created December 9, 2012 21:35
Package installation using 'sources'
'pkg_repo.epel':
pkg.installed:
- name: 'epel-release'
- sources:
- 'epel-release': 'http://fedora-epel.mirror.lstn.net/6/i386/epel-release-6-7.noarch.rpm'
# Include the instantiated macro here
include:
- pkg_repo.10gen
mongo-10gen-server:
pkg:
- installed
- require:
- file: 'pkg_repo.10gen'

Keybase proof

I hereby claim:

  • I am thekuffs on github.
  • I am kuffs (https://keybase.io/kuffs) on keybase.
  • I have a public key whose fingerprint is 615C 96DC F531 AB10 1644 A601 253D 91D5 79C6 3A46

To claim this, I am signing this object:

@thekuffs
thekuffs / gist:4435888
Last active November 29, 2017 17:43
Install and configure the salt-minion service with nssm. Accidentally posted anonymously in https://gist.github.com/4435871
Write-Host "Configuring salt-minion service"
# install the service with nssm. This is where the binary and arguments are specified.
c:\salt\nssm.exe install salt-minion c:\salt\salt-minion.exe -c c:\salt\etc\salt -l quiet
# Make a friendly name, description, and make it start automatically.
Set-Service -name "salt-minion" `
-displayName "Salt Minion" `
-StartupType Automatic `
-Description "Provides secure orchestration and centralized management"
@thekuffs
thekuffs / 10gen.sls
Last active January 11, 2020 22:54
Salt: Add repos in Ubuntu
{% if grains['os'] == 'Ubuntu' %}
{% from "pkg_repo/apt.sls" import apt_repo with context %}
{% if pillar['pkg_mirrors_enabled'] %}
{% set mirrors = ['http://' + pillar['pkg_mirror'] + '/10gen/repo/upbuntu-upstart/',
'http://downloads-distro.mongodb.org/repo/ubuntu-upstart/'] %}
{% else %}
{% set mirrors = ['http://downloads-distro.mongodb.org/repo/ubuntu-upstart/'] %}
{% endif %}
{{ apt_repo('10gen', mirrors, codename='dist', components=['10gen'], key_id='7F0CEB10') }}
@thekuffs
thekuffs / postgres.sls
Last active August 22, 2020 01:49 — forked from rca/postgres.sls
postgresql:
service:
- running
- require:
- pkg: postgres_pkgs
postgres_pkgs:
pkg.installed:
- pkgs: