# Swiftacular - Ansible playbook to deploy multihost OpenStack Swift (Havana)

**URL:** <https://forum.ansible.com/t/swiftacular-ansible-playbook-to-deploy-multihost-openstack-swift-havana/14064>\
**Category:** Ansible Project\
**Created:** [December 4, 2013, 9:51pm UTC](https://forum.ansible.com/t/swiftacular-ansible-playbook-to-deploy-multihost-openstack-swift-havana/14064 "2013-12-04T21:51:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Curtis](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@Curtis](https://forum.ansible.com/u/Curtis)\
**Post date:** [December 4, 2013, 9:51pm UTC](https://forum.ansible.com/t/swiftacular-ansible-playbook-to-deploy-multihost-openstack-swift-havana/14064/1 "2013-12-04T21:51:51Z")

</div>

Hi,

I just wanted to mention that I have been working on an Ansible playbook to deploy OpenStack Swift Object Storage (Havana version) on multiple virtual machines.

The repo can be found here: [https://github.com/curtisgithub/swiftacular](https://github.com/curtisgithub/swiftacular)

Right now it deploys 7 vagrant based virtual machines with things like SSL enabled Keystone, an SSL termination server for the Swift Proxy, and is using a replication network which is a new feature of OpenStack Swift Havana. There is a README in the git repo that describes a bit more.

I’m still working on Ansible and OpenStack best practices, so if anyone has any tips, sees anything I’m doing wrong, do let me know so that I can figure that kind of thing out.

I’m finding that on the surface things like OpenStack, Puppet, Ansible are generally straight forward, but once you get into them it’s hard to decipher the best way to do things, whether that means “best practices” or “generally accepted way of doing things” or what have you. 🙂

Thanks for any input,  
Curtis.

PS. delegate\_to was super helpful.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 4, 2013, 10:30pm UTC](https://forum.ansible.com/t/swiftacular-ansible-playbook-to-deploy-multihost-openstack-swift-havana/14064/2 "2013-12-04T22:30:14Z")

</div>

So we have some content to automate OpenStack here if you have not already seen it:

[https://github.com/ansible/ansible-redhat-openstack](https://github.com/ansible/ansible-redhat-openstack)

As far as best practices, I’d recommend

[github.com/ansible/ansible-examples](http://github.com/ansible/ansible-examples) for learning usual tips and also the “Best Practices” and “Roles” sections of the docs.

Looks like a lot of your content is already pretty good though!

I won’t say they are neccessarily “best possible OpenStack toplogy” so much, just some content examples – which I think is not exactly what you were looking for.

Definitely welcome others to share what they’ve done too 🙂

---

<div class="post-metadata">

**Author:** ![Curtis](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@Curtis](https://forum.ansible.com/u/Curtis)\
**Post date:** [December 5, 2013, 2:50pm UTC](https://forum.ansible.com/t/swiftacular-ansible-playbook-to-deploy-multihost-openstack-swift-havana/14064/3 "2013-12-05T14:50:10Z")

</div>

> So we have some content to automate OpenStack here if you have not already  
> seen it:
> 
> [https://github.com/ansible/ansible-redhat-openstack](https://github.com/ansible/ansible-redhat-openstack)
> 
> As far as best practices, I'd recommend
> 
> github.com/ansible/ansible-examples for learning usual tips and also the  
> "Best Practices" and "Roles" sections of the docs.
> 
> Looks like a lot of your content is already pretty good though!
> 
> I won't say they are neccessarily "best possible OpenStack toplogy" so  
> much, just some content examples -- which I think is not exactly what you  
> were looking for.

I definitely did look at the ansible-redhat-openstack playbook and I think  
I borrowed a couple of things. 🙂 No swift stuff there though.

I do like Lorin's openstack modules:

[https://github.com/lorin/openstack-ansible-modules](https://github.com/lorin/openstack-ansible-modules)

especially in terms of setting up keystone versus copying and running a  
script to create endpoints and such.

Thanks,  
Curtis.
