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_mode: false
|
||||||
cinder_developer_constraints:
|
cinder_developer_constraints:
|
||||||
- "git+{{ cinder_git_repo }}@{{ cinder_git_install_branch }}#egg=cinder"
|
- "git+{{ cinder_git_repo }}@{{ cinder_git_install_branch }}#egg=cinder"
|
||||||
|
cinder_developer_mode_packages:
|
||||||
|
- git
|
||||||
|
|
||||||
# Name of the virtual env to deploy into
|
# Name of the virtual env to deploy into
|
||||||
cinder_venv_tag: untagged
|
cinder_venv_tag: untagged
|
||||||
|
@ -55,6 +55,17 @@
|
|||||||
- inventory_hostname in groups['cinder_volume']
|
- inventory_hostname in groups['cinder_volume']
|
||||||
- cinder_backend_lvm_inuse | bool
|
- 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
|
- name: Create developer mode constraint file
|
||||||
copy:
|
copy:
|
||||||
dest: "/opt/developer-pip-constraints.txt"
|
dest: "/opt/developer-pip-constraints.txt"
|
||||||
|
@ -25,7 +25,6 @@ cinder_distro_packages:
|
|||||||
- kmod-devel
|
- kmod-devel
|
||||||
- kmod-libs
|
- kmod-libs
|
||||||
- zlib-devel
|
- zlib-devel
|
||||||
- git
|
|
||||||
- which
|
- which
|
||||||
|
|
||||||
cinder_volume_distro_packages:
|
cinder_volume_distro_packages:
|
||||||
|
@ -24,7 +24,6 @@ tgt_service_name: tgt
|
|||||||
cinder_distro_packages:
|
cinder_distro_packages:
|
||||||
- rpcbind
|
- rpcbind
|
||||||
- rsync
|
- rsync
|
||||||
- git
|
|
||||||
- nfs-common
|
- nfs-common
|
||||||
- libpq-dev
|
- libpq-dev
|
||||||
- libkmod-dev
|
- libkmod-dev
|
||||||
|
Loading…
Reference in New Issue
Block a user