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
dhcpd.conf: | |
allow booting; | |
allow bootp; | |
option domain-name "somedomain"; | |
option domain-name-servers 10.6.0.10, 10.6.0.11, 10.6.0.16, 10.6.0.17; | |
option ntp-servers 10.6.0.16, 10.6.0.17; | |
# Lease time - 7 days (604800 seconds) | |
max-lease-time 604800; | |
default-lease-time 604800; |
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
options { | |
//listen-on port 53 { 127.0.0.1; }; | |
//listen-on-v6 port 53 { ::1; }; | |
directory "/var/named"; | |
dump-file "/var/named/data/cache_dump.db"; | |
statistics-file "/var/named/data/named_stats.txt"; | |
memstatistics-file "/var/named/data/named_mem_stats.txt"; | |
recursion no; | |
recursive-clients 10000; |
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
#!/bin/bash | |
# Aims to be a rather generic script to perform backups on various things | |
# Local edits can just add functions, and declare the usage in exec_begin (or omit functions) | |
# Flag to use GPG | |
GPG="True" | |
GPG_KEYFILE=/root/gpg.key | |
if [ $GPG == "True" ]; then | |
if [ -f $GPG_KEYFILE ]; then |
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
pillar/rsyslog.sls: | |
rsyslog: | |
host1: "@somehost1" | |
host2: "@somehost2" | |
state/rsyslog/template/remote.conf.jinja: |
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
autoload -U promptinit && promptinit | |
autoload -U colors && colors | |
COLOR1="%{$fg[green]%}" | |
COLOR2="%{$fg[cyan]%}" | |
COLOR3="%{$fg[green]%}" | |
CR="%{$reset_color%}" | |
if [ "$UID" = "0" ]; then | |
# I am root |
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
plutus-stop: | |
service.dead: | |
- name: plutus | |
extract_plutus: | |
archive.extracted: | |
- name: /home/deploy/plutus | |
- source: http://somefile.tar.gz | |
- user: deploy | |
- group: deploy |