Slide 1

Slide 1 text

How Rackspace Is Deploying OpenStack with Ansible Walter Bentley, RPC Solutions Architect Twitter: @djstayflypro LinkedIn: http://goo.gl/r2p21i Github: wbentley15 Blog: hitchnyc.com

Slide 2

Slide 2 text

2 I started my 17-year IT career as an MS .ASP developer and transitioned into supporting web-based applications. The bulk of my time was spent providing production support as an on-call engineer. Who Am I?

Slide 3

Slide 3 text

3 How Did We Get Here? Hybrid Stable & Scalable Automation Flexible •  In early 2014, Rackspace embarked on the journey of developing a RPC version to move from the OpenStack release of Havana onto Icehouse! •  Looking to implement improvements gained from the many lessons learned! •  New reference architecture had to deliver these 4 core principles:"

Slide 4

Slide 4 text

4 www.rackspace.com OpenStack® Architecture KEYSTONE IDENTITY GLANCE IMAGE MANAGEMENT NOVA COMPUTE LAYER SWIFT OBJECT STORE CINDER BLOCK STORAGE NEUTRON NETWORKING HORIZON DASHBOARD/UI CEILOMETER TELEMETRY TROVE DBaaS HEAT ORCHESTRATION

Slide 5

Slide 5 text

5 Rackspace Private Cloud v9.0 – built on OpenStack Reference Architecture Artifact

Slide 6

Slide 6 text

6 www.rackspace.com Why Ansible? •  Clarity and ease of use! •  Creating playbooks is highly accessible for developers! •  Other groups in Rackspace already using Ansible, and Rackspace has a good relationship with them! •  Existing Ansible modules for OpenStack! •  Ease of use in configuring hosts and containers! •  Only SSH and Python required on the target device, no clients/agents! •  Components and configurations can be upgraded or modified in isolation or combination"

Slide 7

Slide 7 text

7 www.rackspace.com What I Love About Ansible •  Open Source!!! •  Ansible’s goal first and foremost is simplicity and maximum ease of use •  Code is written in Python •  Playbooks are written in the YAML format •  Clearly defined best practices

Slide 8

Slide 8 text

Rackspace Private Cloud (RPC) v9.0 Under the Covers

Slide 9

Slide 9 text

9 www.rackspace.com Rackspace Private Cloud v9.0 Under the Covers To deploy the OpenStack Private Cloud, it was broken down into three main playbooks:! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/setup/host-setup.yml! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/haproxy-install.yml (optional)! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/infrastructure- setup.yml! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/openstack/openstack-setup.yml
 ! All playbooks are dependent on two configuration files:! •  rpc_user_config.yml" •  user_variables.yml"

Slide 10

Slide 10 text

10 www.rackspace.com Rackspace Private Cloud v9.0 Before You Get in Bed For a person like me…! If you plan to do it once…!

Slide 11

Slide 11 text

11 www.rackspace.com Why not create some roles and playbooks to automate all those pre-configurations!

Slide 12

Slide 12 text

12 www.rackspace.com Rackspace Private Cloud v9.0 How Ansible Solved My Problem Decided to build some playbooks to handle all the pre-implementation work! •  Deploy locally; using Vagrant, VirtualBox and of course…Ansible! •  git clone --recursive https://github.com/wbentley15/vagrant-rpcv901_deploy.git" •  git clone --recursive https://github.com/wbentley15/vagrant-rpcv901.git" •  Deploy on Rackspace Public Cloud; solely using Ansible!

Slide 13

Slide 13 text

13 www.rackspace.com OpenStack Community Adoption In the end of November, the community voted to accept our playbooks as a Stackforge repository, making them the basis of Ansible support for OpenStack going forward! •  https://review.openstack.org/#/c/132703 •  Community Page: https://review.openstack.org/#/admin/projects/stackforge/os-ansible-deployment •  Issues: https://bugs.launchpad.net/~openstack-ansible •  IRC on Freenode: #openstack-ansible •  Code Location: https://github.com/stackforge/os-ansible-deployment This means a lot to Rackspace and opens up the door for community contribution!

Slide 14

Slide 14 text

14 www.rackspace.com Rackspace Private Cloud v9.0 Reference Materials Rackspace Private Cloud Installation Guide:
 http://docs.rackspace.com/rpc/api/v9/bk-rpc-installation/content/rpc-common-front.html" ! GitHub Repo Location:
 https://github.com/stackforge/os-ansible-deployment" " Blog for Deploying RPC with Ansible:
 https://developer.rackspace.com/blog/deploying-rackspace-private-cloud-v9-with-ansible"

Slide 15

Slide 15 text

15 www.rackspace.com Q&A Session Twitter: @djstayflypro Email: [email protected]

Slide 16

Slide 16 text

16 Walter officially addicted to Ansible a n d I a m

Slide 17

Slide 17 text

Thank You! https://speakerdeck.com/wbentley15/how-rackspace-is-deploying- openstack-with-ansible Always available for further questions!