Skip to content

Instantly share code, notes, and snippets.

Luca Cipriani mastrolinux

Block or report user

Report or block mastrolinux

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mastrolinux
mastrolinux / init.sls
Created Aug 7, 2013
A saltstack state for datadog agent installation
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 fastname-to-route53.go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
"github.com/aws/aws-sdk-go/aws"
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 gist:5644734
('rabbitmq.queue.memory', 1369413043, 90112,
{'hostname': 'rabbitmq',
'tags': ['rabbitmq_node:rabbit@rabbitmq',
'rabbitmq_vhost:c9',
'rabbitmq_queue:backup/0',
'rabbitmq_policy:']
}),
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:
@mastrolinux
mastrolinux / minion
Created Apr 2, 2014
/etc/salt/minion masterless
View minion
file_client: local
file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/salt/pillar
You can’t perform that action at this time.