Last active
February 12, 2018 15:37
-
-
Save cmndrsp0ck/32a98a9d4b6afad34e379df93fae6d93 to your computer and use it in GitHub Desktop.
spin up an ubuntu 16.04 server> install git, ansible, terraform, terraform-inventory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
users: | |
- name: <username> | |
groups: sudo | |
shell: /bin/bash | |
sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
ssh-authorized-keys: | |
- <enter_public_key_here> | |
package_upgrade: true | |
packages: | |
- python | |
- python-pip | |
- git | |
- zip | |
runcmd: | |
- [curl, -o, /tmp/terraform.zip, "https://releases.hashicorp.com/terraform/0.11.3/terraform_0.11.3_linux_amd64.zip"] | |
- [unzip, -d, /usr/local/bin/, /tmp/terraform.zip] | |
- [curl, -L, -o, /tmp/terraform-inventory.zip, "https://github.com/adammck/terraform-inventory/releases/download/v0.7-pre/terraform-inventory_v0.7-pre_linux_amd64.zip"] | |
- [unzip, -d, /usr/local/bin/, /tmp/terraform-inventory.zip] | |
- [pip, install, -U, pip, ansible] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment