Add congress installation, db setup
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
This commit is contained in:
parent
1aaf37c68b
commit
c88c62db72
|
@ -27,6 +27,8 @@ congress_bin: "/openstack/venvs/congress-{{ congress_venv_tag }}/bin"
|
|||
|
||||
congress_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/congress.tgz
|
||||
|
||||
congress_etc_dir: "{{ congress_bin | dirname }}/etc/congress"
|
||||
|
||||
## Required PIP packages
|
||||
congress_requires_pip_packages:
|
||||
- tox
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
# 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.
|
||||
|
||||
- name: create congress database schema
|
||||
command: "{{ congress_bin }}/congress-db-manage
|
||||
--config-file {{ congress_etc_dir }}/congress.conf upgrade head"
|
||||
become: yes
|
||||
become_user: "{{ congress_system_user_name }}"
|
||||
changed_when: False
|
|
@ -102,4 +102,10 @@
|
|||
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
||||
section: congress
|
||||
option: venv_tag
|
||||
value: "{{ congress_venv_tag }}"
|
||||
value: "{{ congress_venv_tag }}"
|
||||
|
||||
- name: Install congress from source
|
||||
shell: python setup.py install
|
||||
|
||||
- name: Generate congress configuration
|
||||
shell: tox -egenconfig
|
|
@ -14,10 +14,6 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: create congress database schema
|
||||
shell: >
|
||||
/usr/bin/congress-db-manage --config /etc/congress/congress.conf upgrade head
|
||||
|
||||
- name: install congress client
|
||||
pip:
|
||||
name: python-congressclient
|
||||
|
|
|
@ -14,12 +14,16 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- debug:
|
||||
msg: "This script will call the installation tasks"
|
||||
|
||||
- include: congress_pre_install.yml
|
||||
|
||||
- include: congress_install.yml
|
||||
|
||||
#- include: congress_post_install.yml
|
||||
|
||||
- include: congress_service_setup.yml
|
||||
when: >
|
||||
inventory_hostname == groups['congress_all'][0]
|
||||
|
||||
- include: congress_db_setup.yml
|
||||
when: >
|
||||
inventory_hostname == groups['congress_all'][0]
|
Loading…
Reference in New Issue