Provisioning OpenStack with Ansible from scratch, missing modules?

208 views
Skip to first unread message

Thiago Martins

unread,
Mar 12, 2016, 1:40:42 AM3/12/16
to Ansible Project
Hey guys,

 Currently, I'm developing an OpenStack Mitaka Ansible automation for Ubuntu 16.04.

 I'm using a lot of "command / shell" Ansible modules and I would like to avoid it, and start using native Ansible OS modules.

 However, I can't find native modules for creating OpenStack Services, Projects, Users, Roles and Endpoints... Am I missing something?


 This is how I am doing it today (looks ugly but it works for Mitaka b2):






 I think that it would be super awesome to use native Ansible modules to do all of this, is it possible?

Thanks!
Thiago

Thiago Martins

unread,
Mar 12, 2016, 1:55:41 AM3/12/16
to Ansible Project
Right, it is Friday night, looong week and I'm a bit tired...   =P


I just found those modules:





That apparently, can help me to create initial Projects and Users, but, what about Services, Roles and Endpoints?

BTW, I'm using Ansible 2.0 from Ubuntu 16.04...

Cheers!
Thiago 

Larry Smith

unread,
Mar 13, 2016, 8:57:17 PM3/13/16
to Ansible Project
I did this exact same thing a few months ago but using Kilo and Ubuntu 14.04LTS which may be of some use to you. However I did use some of the modules which have been replaced but should not be too hard to make those changes. Again just sharing this as it may be of some use for you.

Message has been deleted

David Shrewsbury

unread,
Mar 14, 2016, 9:34:46 AM3/14/16
to Ansible Project
We are continually working on adding new modules. Some exist as PRs right now and will hopefully show up
in the Ansible 2.1 release.

-Dave



On Saturday, March 12, 2016 at 1:55:41 AM UTC-5, Thiago Martins wrote:

Thiago Martins

unread,
Mar 16, 2016, 1:26:48 PM3/16/16
to Ansible Project
Thanks for sharing Larry! I'll take a look at your automation... Cheers!

Thiago Martins

unread,
Mar 16, 2016, 1:27:23 PM3/16/16
to Ansible Project
Sounds awesome David! I'm very interested in OpenStack Ansible native modules... Thanks!

Michael Gale

unread,
Mar 17, 2016, 8:10:18 AM3/17/16
to Ansible Project
Hey,

    Have you considered using something like:


Michael

Thiago Martins

unread,
Mar 17, 2016, 6:41:01 PM3/17/16
to Ansible Project
Hello Michael,

 Yes, I have considered OpenStack Ansible project, however, they are deploying OpenStack from Git and by using Python Pip directly (and many containers), no support for OpenvSwitch, neither DPDK, only Linux Bridges...

 On the other hand, I am using native Ubuntu Xenial 16.04 Mitaka packages, because I prefer to keep it simple and also, I prefer to stick with 100% Ubuntu packages.

 Also, I need OpenStack with OpenvSwitch powered by DPDK, which comes by default on Xenial, this is a must for my project.

 So, unfortunately, OpenStack Ansible is not an option for me...    =/

Best,
Thiago

Curtis

unread,
Mar 24, 2016, 4:45:26 PM3/24/16
to ansible...@googlegroups.com
On Thu, Mar 17, 2016 at 4:41 PM, Thiago Martins
<thiagoc...@gmail.com> wrote:
> Hello Michael,
>
> Yes, I have considered OpenStack Ansible project, however, they are
> deploying OpenStack from Git and by using Python Pip directly (and many
> containers), no support for OpenvSwitch, neither DPDK, only Linux Bridges...
>

There's been some work in OpenStack-Ansible to add OpenVSwitch. I'm
going to hopefully continue this work to add the ability to use
OpenVSwitch with OpenStack-Ansible. That said certainly
OpenStack-Ansible is a fairly large framework.

> On the other hand, I am using native Ubuntu Xenial 16.04 Mitaka packages,
> because I prefer to keep it simple and also, I prefer to stick with 100%
> Ubuntu packages.
>
> Also, I need OpenStack with OpenvSwitch powered by DPDK, which comes by
> default on Xenial, this is a must for my project.

I believe, and I just noticed this today, that the Ubuntu Cloud
Archive for Liberty contains a packaged OpenVSwitch with DPDK for
Ubuntu 14.04/Trusty.

Thanks,
Curtis.
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ee70b2df-ea44-4b8c-85bc-f85b8989135d%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Blog: serverascode.com
Reply all
Reply to author
Forward
0 new messages