This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
## modified chef install script | |
## for kitchen-salt, the entirety of chef is not required | |
## but ruby and gem are required in a specific directory | |
## for kitchen tests to run | |
## | |
packages="ruby ruby-dev" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh - | |
#====================================================================================================================== | |
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=120 | |
#====================================================================================================================== | |
# | |
# FILE: bootstrap-salt.sh | |
# | |
# DESCRIPTION: Bootstrap Salt installation for various systems/distributions | |
# | |
# BUGS: https://github.com/saltstack/salt-bootstrap/issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- from "grub/map.jinja" import grub with context %} | |
grub_default_config: | |
file.managed: | |
- name: '/etc/default/grub' | |
- source: salt://grub/files/default_grub.j2 | |
- user: root | |
- group : root | |
- mode: 0644 | |
- template: jinja |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo systemctl stop ntp | |
sudo ntpd -gq | |
sudo systemctl start ntp | |
sudo apt-get install xfsprogs python-pip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NFLApi | |
include HTTParty | |
#wrapper for nfl.com player stats | |
base_uri 'http://api.fantasy.nfl.com/v1' | |
def initialize() | |
end | |
def get_players_stats(options={}) | |
#player stats |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sslcert: | |
gencert: | |
name: /etc/pki/{{ grains.id }}.crt | |
days_remaining: 30 | |
user: vagrant | |
group: vagrant | |
mode: 640 | |
kwargs: | |
ca_server: salt | |
signing_policy: testingca |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for k,v in sensu.conf.iteritems() %} | |
{% set full = dict(k:v) %} | |
sensu_config_{{ k }}: | |
file.managed: | |
- name: /etc/sensu/conf.d/{{ k }}.json | |
- source: salt://sensu/files/conf.j2 | |
- template: jinja | |
- data: {{ full }} | |
{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
udp { | |
buffer_size => 1452 | |
codec => "collectd" { | |
typesdb => [ "/etc/logstash/types.db" ] | |
} | |
port => 25826 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Actions | |
action( | |
TCP_Framing="octet-counted" | |
StreamDriverPermittedPeers="*" | |
Protocol="tcp" | |
name="logfwd" | |
StreamDriverMode="1" | |
template="RSYSLOG_ForwardFormat" | |
StreamDriverAuthMode="x509/name" | |
type="omfwd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/salt/minion | |
beacons: | |
network_settings: | |
eth*: | |
address: '' | |
broadcast: '' | |
carrier: '' | |
carrier_changes: '' | |
change: '' | |
family: '' |