Skip to content

Instantly share code, notes, and snippets.

View arubis's full-sized avatar

Dylan Fitzgerald arubis

View GitHub Profile
@arubis
arubis / packer_build_vagrant.log
Created August 28, 2015 21:48
Attempt at `packer build vagrant.json` from infra:justin/packer
virtualbox-iso output will be in this color.
==> virtualbox-iso: Downloading or copying Guest additions
virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
virtualbox-iso: Downloading or copying: http://releases.ubuntu.com/14.10/ubuntu-14.10-server-amd64.iso
==> virtualbox-iso: Starting HTTP server on port 8969
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Creating forwarded port mapping for SSH (host port 2838)
[INFO ] Executing command ['apt-cache', '-q', 'policy', 'elasticsearch'] in directory '/home/dylan'
[DEBUG ] stdout: elasticsearch:
Installed: (none)
Candidate: 1.1.1
Version table:
1.1.1 0
500 http://packages.elasticsearch.org/elasticsearch/1.1/debian/ stable/main amd64 Packages
1.1.0 0
500 http://packages.elasticsearch.org/elasticsearch/1.1/debian/ stable/main amd64 Packages
1.0.3 0
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt-cloud -m /etc/salt/logstash-stage-only -d
[INFO ] salt-cloud starting
[INFO ] Applying map from '/etc/salt/logstash-stage-only'.
[ERROR ] An un-handled exception was caught by salt's global exception handler:
KeyError: 'logstash_ops'
Traceback (most recent call last):
File "/usr/bin/salt-cloud", line 10, in <module>
salt_cloud()
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 121, in salt_cloud
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt '*' grains.item roles
logstash_staging:
roles: {'logstash-reciever': True, 'elasticsearch': True, 'logstash': True, 'kibana': True}
logstash_ops:
roles:
logstash-reciever
logstash
elasticsearch
kibana
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt -G 'roles:elasticsearch' test.ping
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt '*' grains.item roles
logstash_staging:
roles:
logstash-reciever
logstash
elasticsearch
kibana
logstash_ops:
roles:
logstash-reciever
@arubis
arubis / broken_by_extends_keyword__cloud.providers.d--ec2.conf
Created November 5, 2014 19:31
salt-cloud hangs when cloud.providers contains an 'extends' keyword
# causes salt-cloud to hang
my-aws-ubuntu:
- id: XXXXXXXX
ssh_interface: private_ips
grains:
node_type: managed
key: 'XXXXXXXX'
private_key: /etc/salt/salt-master.pem
keyname: salt-master
@arubis
arubis / gist:d7e4fd88155bf7161bd7
Created November 24, 2014 20:56
salt-cloud fails to attach newly-created volume
Connection to (successfully created instance, IP removed) closed.
[INFO ] Salt installed on ops_elk_slave-00
[INFO ] Created Cloud VM 'ops_elk_slave-00'
[INFO ] Create and attach volumes to node ops_elk_slave-00
[INFO ] Starting new HTTPS connection (1): ec2.us-east-1.amazonaws.com
[INFO ] Starting new HTTPS connection (1): ec2.us-east-1.amazonaws.com
[ERROR ] EC2 Response Status Code and Error: [400 400 Client Error: Bad Request] {'Errors': {'Error': {'Message': "vol-6eed552a is not 'available'.", 'Code': 'IncorrectState'}}, 'RequestID': '2261f3a9-6672-4b60-8c94-b8380c882730'}
[INFO ] Starting new HTTPS connection (1): ec2.us-east-1.amazonaws.com
[INFO ] Starting new HTTPS connection (1): ec2.us-east-1.amazonaws.com
[ERROR ] EC2 Response Status Code and Error: [400 400 Client Error: Bad Request] {'Errors': {'Error': {'Message': 'No attributes specified.', 'Code': 'InvalidParameterCombination'}}, 'RequestID': '6d544e7b-02da-42bd-8d92-4533f8f5ba78'}
@arubis
arubis / new.sls
Created January 16, 2015 17:25
ksk-motd
motd:
pkg.installed:
- name: update-motd
/etc/update-motd.d/00-dynmotd:
file.managed:
- source: salt://configs/update-motd.d/00-dynmotd
/etc/update-motd.d/20-list-updates:
file.managed:
@arubis
arubis / gist:57df03201ebad146fe4a
Created August 12, 2015 15:30
Attempts at salt module `cron.rm_job`
ubuntu@salt:/srv/salt$ sudo salt db0\* cron.list_tab deployer
db0.mydomain.com:
----------
crons:
|_
----------
cmd:
export BACKUP_SCOPE=full && /usr/local/rbenv/shims/backup perform -t lrnz
comment:
daymonth:
ext_pillar:
- s3:
bucket: 'my-obfuscated-bucket'
multiple_env: False
environment: base
verify_ssl: True