Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Infrastructure As Code

Infrastructure As Code

DevCon Summit 2016

Andre Marcelo-Tanner

November 05, 2016
Tweet

More Decks by Andre Marcelo-Tanner

Other Decks in Technology

Transcript

  1. THE MAGIC CLOUD WE RUN ON THE CLOUD IMAGE SOURCE:

    HTTP://WWW.DEFSYS.COM.AU/WP-CONTENT/UPLOADS/2014/11/CLOUD-SERVER.JPG
  2. WWW.TERRAFORM.IO TERRAFORM BASIC COMMANDS ▸ terraform plan ▸ terraform apply

    ▸ terraform get ▸ terraform show ▸ terraform destroy ▸ terraform import (NEW in 0.7) ▸ terraform state (NEW in 0.7)
  3. TERRAFORM.IO OVER 45 PROVIDERS SUPPORTED ▸ AWS ▸ BITBUCKET ▸

    CHEF ▸ CLOUDFLARE ▸ CLOUDSTACK ▸ DIGITAL OCEAN ▸ GITHUB ▸ GOOGLE CLOUD ▸ HEROKU ▸ MAILGUN ▸ MICROSOFT AZURE ▸ MYSQL ▸ OPENSTACK ▸ SOFTLAYER ▸ ULTRADNS ▸ VMWARE
  4. REUSABLE MODULES MODULE "APP" { SOURCE = "GITHUB.COM/KZAP/TF-LAMP/OPENSTACK" # CUSTOM

    CONFIG PREFIX = "APP" PUBLIC_KEY = "${FILE("~/.SSH/ID_RSA.PUB")}" KEY_FILE_PATH = "~/.SSH/ID_RSA" SERVERS = "1" # OPENSTACK CONFIG USERNAME = "${VAR.USERNAME}" TENANT_NAME = "${VAR.TENANT_NAME}" PASSWORD = "${VAR.PASSWORD}" REGION = "REGIONONE" IMAGE_ID = "C1E8C5B5-BEA6-45E9-8202-B8E769B661A4" FLAVOR_ID = "100" # OPENSTACK DEFAULTS AUTH_URL = "HTTPS://IAD2.DREAM.IO:5000/V2.0" USER_LOGIN = "DHC-USER" PUB_NET_ID = "PUBLIC" }