Skip to content

Instantly share code, notes, and snippets.

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;
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;
#!/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
pillar/rsyslog.sls:
rsyslog:
host1: "@somehost1"
host2: "@somehost2"
state/rsyslog/template/remote.conf.jinja:
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
plutus-stop:
service.dead:
- name: plutus
extract_plutus:
archive.extracted:
- name: /home/deploy/plutus
- source: http://somefile.tar.gz
- user: deploy
- group: deploy