View fastname-to-route53.go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
"github.com/aws/aws-sdk-go/aws"
View minion
file_client: local
file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/salt/pillar
View init.sls
{% set home = pillar.get('home', '/home/ubuntu') %}
{% set user = pillar.get('user', 'ubuntu') %}
main_user:
user.present:
- name: {{ user }}
- home: {{ home }}
- createhome: True
- shell: /bin/bash
# - gid_from_name: True
- groups:
View ide.cron
{% set ide_num = grains['nodename'].split('-')[1].lstrip('0') %}
{{ (10 * ide_num|int) % 60 }} 1,5,9,13,17,21 * * * /usr/local/bin/supervisorctl -c /home/ubuntu/etc/supervisord.conf restart ide:ide-00
View init.sls
datadog-repo:
pkgrepo:
- managed
- humanname: "DataDog Agent"
- name: deb http://apt.datadoghq.com/ unstable main
- keyserver: keyserver.ubuntu.com
- keyid: C7A7DA52
- file: /etc/apt/sources.list.d/datadog.list
datadog-pkg:
View gist:5644734
('rabbitmq.queue.memory', 1369413043, 90112,
{'hostname': 'rabbitmq',
'tags': ['rabbitmq_node:rabbit@rabbitmq',
'rabbitmq_vhost:c9',
'rabbitmq_queue:backup/0',
'rabbitmq_policy:']
}),