Adds a constraint file to the pip install for Octavia scenario

Change-Id: I7f202948e2799e48ee29dba1b154c8835fb59626
This commit is contained in:
German Eichberger
2017-08-23 14:15:46 -07:00
committed by Andy McCrae
parent 2143a43715
commit b5441ed049
2 changed files with 13 additions and 10 deletions

View File

@@ -70,6 +70,7 @@
- name: heat.yml.aio
- name: tacker.yml.aio
pip_install_upper_constraints_proto: "{{ ansible_python_version | version_compare('2.7.9', '>=') | ternary('https','http') }}"
sftp_subsystem: "{{ (ansible_pkg_mgr == 'apt') | ternary('sftp /usr/lib/openssh/sftp-server','sftp /usr/libexec/openssh/sftp-server') }}"
sshd:
ListenAddress:
@@ -112,4 +113,5 @@
MaxStartups: "100:100:100"
GSSAPIAuthentication: no
GSSAPICleanupCredentials: no
vars_files:
- "{{ playbook_dir }}/../playbooks/defaults/repo_packages/openstack_services.yml"

View File

@@ -29,10 +29,18 @@
- curl
- kpartx
- git
- name: Create Temp Dir
tempfile:
state: directory
register: tmp_dir
- name: Set Temp Dir Path
set_fact:
bootstrap_host_octavia_tmp: "{{ tmp_dir.path }}"
- name: Install pip requirements
pip:
name: "{{ item }}"
state: "present"
extra_args: "-c {{ pip_install_upper_constraints_proto }}://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id={{ requirements_git_install_branch | regex_replace(' #.*$','') }}"
register: install_packages
until: install_packages|success
retries: 5
@@ -43,18 +51,11 @@
- dib-utils
- PyYAML
- diskimage-builder
- name: Create Temp Dir
tempfile:
state: directory
register: tmp_dir
- name: Set Temp Dir Path
set_fact:
bootstrap_host_octavia_tmp: "{{ tmp_dir.path }}"
- name: Clone Octavia
git:
repo: "https://git.openstack.org/openstack/octavia"
dest: "{{ bootstrap_host_octavia_tmp }}/octavia"
version: "master"
version: "{{ octavia_git_install_branch }}"
# Build Octavia amphora image
- name: Create amphora image
shell: "./diskimage-create.sh -o {{ bootstrap_host_octavia_tmp }}/amphora-x64-haproxy.qcow2"
@@ -76,4 +77,4 @@
- name: Fix certs/private directory access
file:
path: "{{ bootstrap_host_octavia_tmp }}/certs/private"
mode: 0755
mode: 0755