1 / 20

Ansible & Cobbler

Ansible & Cobbler. Triangle Devops, Feb 2013. About Me. NCSU 2001 IBM / Adaptec, Integrian Red Hat Puppet Labs, WebAssign, rPath, Cisco. Ansible & Cobbler, In Context. OS Provisioning. Red Hat Satellite. cobbler. Task Exec. virt-factory. func. ansible. OS Config. puppet. chef.

Download Presentation

Ansible & Cobbler

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ansible & Cobbler • Triangle Devops, Feb 2013

  2. About Me • NCSU 2001 • IBM / Adaptec, Integrian • Red Hat • Puppet Labs, WebAssign, rPath, Cisco

  3. Ansible & Cobbler, In Context OS Provisioning Red Hat Satellite cobbler Task Exec virt-factory func ansible OS Config puppet chef cfengine capistrano/fabric Deployment

  4. Cobbler • Before configuration, there must be OS • PXE tree management • DHCP, DNS • Yum Repos • Power • Lightweight CMDB

  5. Some Cobbler Users • Top 500 Supercomputers • DNS root serves for .com and .net • Modern Warfare • Render farms • Wall Street

  6. Some Commands • cobbler import --name=Fedora18 --path=/mnt/dvd • cobbler system add --name=foo --mac= AA:BB:CC:DD:EE:FF --ip=2.2.2.2 --profile= Fedora18-x86_64 • cobbler system edit --name=foo --netboot-enabled=1 • cobbler system reboot --name=foo

  7. Ansible • A year old today. • 1100+ followers on github • Top 10 New OSS Projects of 2012

  8. Several Tools In One • Configuration (cfengine, Chef, Puppet) • Deployment (Capistrano, Fabric) • Ad-Hoc Tasks (Func) • Multi-Tier Orchestration (Juju, sort of)

  9. Properties • Minimal learning curve, auditability • No bootstrapping • No DAG ordering, Fails Fast • No agents (other than sshd) - 0 resource consumption when not in use • No server • No additional PKI • Modules in any language • YAML, not code • SSH by default • Strong multi-tier solution

  10. Architecture

  11. Focus: Orchestration • Rolling Updates • Multi-tier: Web Tier, DB Tier, Content Tier • Monitoring, Outage Windows • Load Balancing, Pools • Email, REST, Logging, Interaction, etc

  12. Inventory File [webservers] asdf.example.com [dbservers] jkl.example.com mnop.example.com

  13. External Inventory • Cobbler • OpenStack • EC2 or Eucalyptus Cloud • Etc

  14. Basic Task Example • ansible durham -m ping • ansible webservers -m service -a “name=httpd state=restarted” --limit durham

  15. - hosts: all user: mpdehaan sudo: True tasks: - name: ntp should be installed yum: name=ntp state=present - name: template ntp.conf template: src=ntp.conf.j2 dest=/etc/ntp.conf notify: - restart ntpd - name: ntp should be running/enabled service: name=ntp state=running enabled=yes handlers: - name: restart ntpd service: name=ntpd state=restarted

  16. __________________________________ < TASK: [write app configuration] > --------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || ok: [127.0.0.1]

  17. Fireball Mode

  18. Pull Mode

  19. API import ansible.runner import sys # construct the ansible runner and execute on all hosts results = ansible.runner.Runner(     pattern='*', forks=10,     module_name='command', module_args='/usr/bin/uptime', ).run()

  20. Questions?@laserllamamichael.dehaan@gmail.comcobbler.github.comansible.ccQuestions?@laserllamamichael.dehaan@gmail.comcobbler.github.comansible.cc

More Related