cpt dev ops 2015-07-04 ansible workshop

12
Ansible Workshop Cape Town DevOps 2015-07-04

Upload: cobus-bernard

Post on 13-Aug-2015

27 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cpt dev ops 2015-07-04 ansible workshop

Ansible WorkshopCape Town DevOps 2015-07-04

Page 2: Cpt dev ops 2015-07-04 ansible workshop

Manual Server setup

1. Install Apache on Webserver01.2. Add virtualhost for demo.shoppingsite.com.3. Configure the SSL cert.4. Make sure it is the wildcard cert.5. Deploy the latest version of the site.6. Update the config file to point to demo DB.

Page 3: Cpt dev ops 2015-07-04 ansible workshop
Page 4: Cpt dev ops 2015-07-04 ansible workshop

Manual Server setup

1. Erm… Which one is Webserver01?2. What user should I run this as?3. Does someone have Dave’s number, he’s on

leave and has the sudo password.4. WHY IS THE DEMO SITE DOWN, I’M

SHOWING IT TO A VERY IMPORT PROSPECTIVE CLIENT!!!!!

Page 5: Cpt dev ops 2015-07-04 ansible workshop

Manual Server setup

1. Manually configuring == error prone + slow.2. Snowflake servers: unique and special in

their own way.3. *someone* always did something without

documenting it.

Page 6: Cpt dev ops 2015-07-04 ansible workshop

Devs vs Operations

1. Devs don’t understand what they are building for.

2. Operations have to deploy and run this mess.

Leads to conflict and blame games.

Page 7: Cpt dev ops 2015-07-04 ansible workshop
Page 8: Cpt dev ops 2015-07-04 ansible workshop
Page 9: Cpt dev ops 2015-07-04 ansible workshop

Automatic Server setup

1. Repeatable.2. No meatsack human errors.3. History saved in version control.4. Quick to spin up new servers.5. Automatically documented.6. Organizational memory.

Page 10: Cpt dev ops 2015-07-04 ansible workshop

Which one to use?

Q: Should I use Chef, Puppet, Ansible or Salt?

A: “Yes!” ~ @mattstratton

Page 11: Cpt dev ops 2015-07-04 ansible workshop

Ansible vs Puppet / Chef

● Easy to start, low learning curve.● No extra installs on nodes, just need ssh.● Simple control machine setup.● Don’t need to learn Ruby.

● Perception that Docker users prefer it.

Page 12: Cpt dev ops 2015-07-04 ansible workshop

Vagrant + Virtualbox

● Spin up VMs easily.● Handover to automation tools.● Make environment part of project source.● Quick onboarding of new developers.