Commit Graph

13 Commits

Author SHA1 Message Date
Paul Belanger 85a9f3b5b9
Pass list of packages directly to package task
There is no need to loop over the list of packages, this is actually
slower.

Change-Id: I0efdfbe3ba066ccab4bf3e3ff661bcba088984e1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-14 16:40:33 -04:00
Paul Belanger d0e17e1265
Default shade_pip_executable to pip3
Moving forward, we'll only support shade under python3. While shade
still supports python2, this role will only support python3.

Users still have the ability to install python2, but will need to do
more work to make that happen.

Change-Id: I2970b76db9dc6badb9e720e5795abcda761fb2d4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 21:33:33 -04:00
Paul Belanger 32692b4aa4
Add shade_pip_executable variable
Expose shade_pip_executable to allow user to specific version of
pip.

Change-Id: I2d8c5316cd5c891bda5fa3c3dc2de813c8a5e49b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 20:50:21 -04:00
Paul Belanger 88550baa13
Remove redundant pip install task
We can clean up our install tasks by using an include.

Change-Id: Ic206d855bc51db07d5f64717e384a98b710efa70
Depends-On: https://review.openstack.org/560232
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 20:50:10 -04:00
Paul Belanger a2943f1d58
Update shade_git_dest location
Stop using /opt folder to store the location of git checkout. We don't
actually need to be root user to do that.

Change-Id: Ifc530e66ec886d094c5a3b3cd6078270439cd301
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-04 19:47:13 -05:00
Paul Belanger 6ffd2b691f
Create shade_git_update
It is possible, in the case of zuulv3, git repos are already on disk.
As a results, we don't want to update them.

Change-Id: I902e287e00c231f36935c1cea212f043e3bca6ef
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-10-21 16:02:26 -04:00
Paul Belanger 6cdba6a985
Create shade_pip_virtualenv_python
This allows the user to choose which version of python to use in the
virtualenv.

Fix testing to use ansible_connection=ssh

Change-Id: Id2505dfd949e72f603f3db692a7dbc59912b1b59
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-30 15:10:54 -04:00
Paul Belanger a800a513ed Fix deprecated becomes logic
Our previous way of doing becomes with include is no longer supported
by ansible. Switch to the supported way of handling becomes.

Change-Id: Ia213305fd874251b7abc6ee12c7058a7b459b61b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-09 09:28:50 -05:00
Paul Belanger afd0a7e703
Simplify pip install options
Using the omit template, we can now better control which pip options
we set.

Change-Id: I8ef6c7bad92c5cae0ac00945e6ab94d9322c0097
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-03 21:14:24 -04:00
Paul Belanger d93d1b0ff4
Remove epel-release / python-pip from role
These are dependencies our role requires. As such, they should be
installed by the user.

Change-Id: I71275b1de839834e9217534229b6e50aa66934bd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-03 20:55:13 -04:00
Paul Belanger 095679e918 Fix deprecation warning
Change-Id: I01f08cfde57618629fab24ddabf42466ffe09e8f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-26 19:19:01 -04:00
Paul Belanger 95afeb3af9 Fix type with package module
Change-Id: I30443d3f4e20bf4c65c0443d49e5c549d97e0308
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-16 08:46:18 -05:00
Paul Belanger 63a208c086 Initial commit
A lot of this code is based on ansible-role-diskimage-builder.

Change-Id: I8012688ee16635d743d1af9aa7b43f084e5e9237
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-15 14:39:05 -05:00