Add default vairables
This commit is contained in:
parent
13d774a556
commit
f9ee19e3ea
|
@ -1,2 +1,29 @@
|
|||
---
|
||||
# defaults file for os_congress
|
||||
# Copyright 2017, taseer94@gmail.com
|
||||
# All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
congress_git_repo: https://git.openstack.org/openstack/congress
|
||||
congress_git_install_branch: master
|
||||
congress_requirements_git_repo: https://git.openstack.org/openstack/requirements
|
||||
congress_requirements_git_install_branch: master
|
||||
congress_developer_mode: false
|
||||
|
||||
congress_venv_tag: untagged
|
||||
congress_bin: "/openstack/venvs/congress-{{ congress_venv_tag }}/bin"
|
||||
|
||||
congress_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/congress.tgz
|
||||
|
||||
congress_requires_pip_packages:
|
||||
- virtualenv
|
|
@ -17,9 +17,9 @@
|
|||
- debug:
|
||||
msg: "This script will install Congress"
|
||||
|
||||
- name: clone congress repository
|
||||
- name: clone requirements repository
|
||||
git:
|
||||
repo: "https://github.com/openstack/congress"
|
||||
repo: "{{ congress_requirements_git_repo }}"
|
||||
dest: "/opt/requirements"
|
||||
clone: yes
|
||||
update: yes
|
||||
|
@ -31,9 +31,27 @@
|
|||
|
||||
- name: install pip packages
|
||||
pip:
|
||||
name: PuLP
|
||||
name: "{{ congress_requires_pip_packages }}"
|
||||
state: present
|
||||
virtualenv: "/openstack/venvs/congress/"
|
||||
|
||||
- name: get venv checksum
|
||||
stat:
|
||||
path: "/var/cache/{{ congress_venv_download_url | basename }}"
|
||||
get_md5: False
|
||||
register: local_venv_stat
|
||||
|
||||
- name: get remote venv checksum
|
||||
uri:
|
||||
url: "{{ congress_venv_download_url | replace('tgz', 'checksum')}}"
|
||||
return_content: True
|
||||
|
||||
- name: attempt venv download
|
||||
get_url:
|
||||
url: "{{ congress_venv_download_url }}"
|
||||
dest: "/var/cache/{{ congress_venv_download_url | basename }}"
|
||||
ignore_errors: true
|
||||
register: tacker_get_venv
|
||||
|
||||
- name: generating the configuration
|
||||
shell: tox -egenconfig
|
Loading…
Reference in New Issue