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

DevOps with Ansible

DevOps with Ansible

Introduction to DevOps using Ansible.

Celestine Omin

October 21, 2016
Tweet

More Decks by Celestine Omin

Other Decks in Technology

Transcript

  1. 1. History & Context Choose one approach to grab the

    audience’s attention right from the start: unexpected, emotional, or simple. ➔ History of DevOps How did we get here? ➔ What is DevOps What is the fuzz about ➔ Why are we doing this? Why ansible?
  2. In the old world, companies had PHYSICAL SERVERS on premise

    and humans had to work into those rooms and tinker on the machines. Tip Don’t wait till the end of the presentation to give the bottom line. Reveal your product or idea (in this case a translation app) up front.
  3. What is DevOps? DevOps is a culture, movement or practice

    that emphasizes the collaboration and communication of both software developers and other information-technology (IT) professionals while automating the process of software delivery and infrastructure changes
  4. Why are we doing this? Safer One wrong move with

    Bash can render an entire company useless. sudo rm / Efficiency Writing Bash isn’t God’s will for your life. Don’t punish yourself. Idempotent Results from a set of action will always result in a predictable result, as long as all conditions remain the same. Why?
  5. Let there be cloud.... PS This is by no means

    an exhaustible list of cloud providers.
  6. 2. Ansible Ansible is cool. Use it, but before you

    do, let me tell you why.. ➔ What is Ansible? So what exactly is ansible?. ➔ How does it work Give people a reason to care. ➔ Demo Because what’s the point of an amazing presentation without some demo?
  7. What is Ansible? Ansible is a free-software platform for configuring

    and managing computers which combines multi-node software deployment, ad hoc task execution, and configuration management. It manages nodes over SSH or over PowerShell.
  8. What can it do? 1. Cloud provisioning 2. Configuration management

    3. Application deployment 4. Intra-service orchestration
  9. Inventory [web] group 192.168.0.1 192.168.0.2 [db] group Internal-db.yourstartup.com (CNAME) Tip

    You can use a CNAME for your inventories. Also, you can use Amazon’s AWS’ tag name too.
  10. Ansible in practise ansible all -m ping -u celestine Legend

    -m: Module -u: User all: Every item on the inventory
  11. Ansible Playbook. Playbooks are Ansible’s configuration, deployment, and orchestration language.

    They can describe a policy you want your remote systems to enforce, or a set of steps in a general IT process. PS The best way to harness Ansible’s immense powers. You don’t have to run Adhoc commands.
  12. Roles: Handlers - main.yml -name: Install Nginx apt: name=nginx state=latest

    update_cache=true notify: Start Nginx -- handler think of it like an event -name: Install Git apt: name=git state=latest update_cache=true