This file contains 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
$DefaultNetstreamDriver gtls | |
$DefaultNetstreamDriverCAFile /etc/ssl/cacert.pem | |
$DefaultNetstreamDriverCertFile /etc/ssl/rsyslog.crt | |
$DefaultNetstreamDriverKeyFile /etc/ssl/rsyslog.key | |
$ActionSendStreamDriverMode 1 | |
$ActionSendStreamDriverAuthMode x509/certvalid | |
$PreserveFQDN on |
This file contains 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
local: | |
beacons: | |
inotify: | |
/dev: | |
auto_add: true | |
exclude: | |
- \/dev\/(?!sd)\w+: | |
regex: true | |
- \/dev\/sd\w+\d: | |
regex: true |
This file contains 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
######### | |
# setup | |
######## | |
curl -sSk https://192.168.50.2:8000/hook/pxe_setup \ | |
-H 'Content-type: application/json' \ | |
-H 'X-Salt-API-Key: testsecret' \ | |
-d '{ | |
"id": "myhost01", | |
"dc_id": "vagrant", |
This file contains 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
beacons: | |
inotify: | |
- /sys/block: | |
mask: | |
- create | |
- delete | |
auto_add: True | |
- disable_during_state_run: True | |
network_settings: | |
- eth*: |
This file contains 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: '' |
This file contains 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 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 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 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 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 |