Merge "Only install git when developer_mode is enabled"
This commit is contained in:
commit
74fb7fa473
@ -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
|
||||
|
@ -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"
|
||||
|
@ -25,7 +25,6 @@ cinder_distro_packages:
|
||||
- kmod-devel
|
||||
- kmod-libs
|
||||
- zlib-devel
|
||||
- git
|
||||
- which
|
||||
|
||||
cinder_volume_distro_packages:
|
||||
|
@ -24,7 +24,6 @@ tgt_service_name: tgt
|
||||
cinder_distro_packages:
|
||||
- rpcbind
|
||||
- rsync
|
||||
- git
|
||||
- nfs-common
|
||||
- libpq-dev
|
||||
- libkmod-dev
|
||||
|
Loading…
Reference in New Issue
Block a user