Skip to content

Instantly share code, notes, and snippets.

View ndobbs's full-sized avatar
💭
too legit to :q!

Nate Dobbs ndobbs

💭
too legit to :q!
View GitHub Profile
### Keybase proof
I hereby claim:
* I am ndobbs on github.
* I am ndobbs (https://keybase.io/ndobbs) on keybase.
* I have a public key ASDaM7ekf31KZh4mb3vemV6qJklKi7_ws5YM9RneOsVHigo
To claim this, I am signing this object:
@ndobbs
ndobbs / hyperv-dvd
Last active January 18, 2018 21:15
2018/01/18 13:00:20 [INFO] Packer version: 1.1.3
2018/01/18 13:00:20 Packer Target OS/Arch: windows amd64
2018/01/18 13:00:20 Built with Go Version: go1.9
2018/01/18 13:00:20 Using internal plugin for amazon-ebs
2018/01/18 13:00:20 Using internal plugin for azure-arm
2018/01/18 13:00:20 Using internal plugin for digitalocean
2018/01/18 13:00:20 Using internal plugin for qemu
2018/01/18 13:00:20 Using internal plugin for amazon-instance
2018/01/18 13:00:20 Using internal plugin for hyperv-vmcx
2018/01/18 13:00:20 Using internal plugin for oracle-oci
"id": "saltmaster",
"jid": "20170720113644804210",
"out": "highstate",
"retcode": 2,
"return": {
"boto_route53_|-mycnamerecord_|-mycnamerecord_|-present": {
"__id__": "mycnamerecord",
"__run_num__": 0,
"__sls__": "boto_route53.present",
"changes": {},
@ndobbs
ndobbs / gist:7833333
Created December 6, 2013 22:36
Ansible 'lookup' function
ansible_code:
- name: Pushing Authorized Keys to remote server(s)
action: authorized_key user={{ item }} key="{{ lookup('file', "{{ item }}/id_rsa.pub") }}"
with_items:
- '{{ admins }}'
output:
fatal: [54.201.43.177] => /Users/ndobbs/src/hc1dev/ansible/roles/common/files/{{item}}/id_rsa.pub does not exist
@ndobbs
ndobbs / gist:7641492
Created November 25, 2013 13:53
Ansible create VPC
---
- name: ec2_vpc
connection: local
tasks:
- name: Create the VPC with subnets
local_action:
module: ec2_vpc
state: present
cidr_block: 172.22.0.0/16
subnets: