Merge "Only install git when developer_mode is enabled"

This commit is contained in:
Jenkins 2017-03-29 17:08:10 +00:00 committed by Gerrit Code Review
commit 74fb7fa473
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