Only install git when developer_mode is enabled

Change-Id: If4a159259d7e1d19167b9bef51fa11bea7d8d333
This commit is contained in:
Andy McCrae 2017-03-27 16:35:36 +01:00
parent a88589b47a
commit 28f537a91b
4 changed files with 13 additions and 2 deletions

View File

@ -23,6 +23,8 @@ cinder_git_install_branch: master
cinder_developer_mode: false
cinder_developer_constraints:
- "git+{{ cinder_git_repo }}@{{ cinder_git_install_branch }}#egg=cinder"
cinder_developer_mode_packages:
- git
# Name of the virtual env to deploy into
cinder_venv_tag: untagged

View File

@ -55,6 +55,17 @@
- inventory_hostname in groups['cinder_volume']
- cinder_backend_lvm_inuse | bool
- name: Install distro packages for developer_mode installs
package:
name: "{{ item }}"
state: "{{ cinder_package_state }}"
register: install_packages
until: install_packages|success
retries: 5
delay: 2
with_items: "{{ cinder_developer_mode_packages }}"
when: cinder_developer_mode | bool
- name: Create developer mode constraint file
copy:
dest: "/opt/developer-pip-constraints.txt"

View File

@ -25,7 +25,6 @@ cinder_distro_packages:
- kmod-devel
- kmod-libs
- zlib-devel
- git
- which
cinder_volume_distro_packages:

View File

@ -24,7 +24,6 @@ tgt_service_name: tgt
cinder_distro_packages:
- rpcbind
- rsync
- git
- nfs-common
- libpq-dev
- libkmod-dev