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

PyConZA 2014: "Deploying to the Google Cloud with a grain of salt" by Johann du Toit

Pycon ZA
October 03, 2014

PyConZA 2014: "Deploying to the Google Cloud with a grain of salt" by Johann du Toit

The tutorial will focus on demonstrating how to use Google Compute to manage instances, and required infrastructure such as balancers and networks, all while guiding through deployment using Ansible. Geared towards those interested in learning on how to use Google Compute but also how to setup a automated deployment system using Ansible.

The workshop has one goal; have everyone participating running a simple app on Google Compute with automated deployment.

Pycon ZA

October 03, 2014
Tweet

More Decks by Pycon ZA

Other Decks in Programming

Transcript

  1. YOU’VE GOT SALT ON MY GOOGLE CLOUD ! by Johann

    du Toit
  2. None
  3. this tutorial the Google Cloud intro to salt a challenge

    for swag quick nginx setup
  4. None
  5. GDE-IN

  6. None
  7. Networks TCP, UDP and ICMP only networks are private to

    a project public ip’s can be static/ephemeral private ip’s are ephemeral wt DNS firewall supports rules/VPN/Port Forwarding
  8. Ansible specifics SSH as root is disabled, SUDO Google handles

    NTP see “building a custom image”
  9. dashboard

  10. REST

  11. gcloud

  12. curl https://sdk.cloud.google.com | bash

  13. gcloud components list

  14. None
  15. gcloud auth login

  16. gcloud compute regions list

  17. gcloud compute images list

  18. equivalent ! REST or command line

  19. None
  20. None
  21. some extra features

  22. None
  23. None
  24. None
  25. Replica Pools quickly create pools of servers

  26. AutoScaler scale up or down when criteria you specify is

    met
  27. Deployment Manager deploy your entire infrastructure

  28. Interface Demo

  29. Q&A

  30. None
  31. sudo easy_install ansible

  32. PUSH VS PULL

  33. localhost

  34. state

  35. facts

  36. [x] ok

  37. [x] changed

  38. [x] failed

  39. [x] unreachable

  40. scriptable

  41. -- check

  42. playbook

  43. vars

  44. templates

  45. tasks

  46. System Cloud Repo Packages lots more

  47. handlers

  48. None
  49. None
  50. inventory

  51. None
  52. None
  53. “ansible”

  54. ansible -i inventory-file all -ping

  55. ‘ansible-playbook’

  56. ansible-playbook! -i inventory-file (-l group-name)! playbook.yml

  57. None
  58. walkthrough Ansible NGINX deploy

  59. now you !

  60. Thanks for Listening johanndutoit.net