Commit 2206783b authored by Flávio Ramalho's avatar Flávio Ramalho
Browse files

Added plabook for setting up DevStack

parent ceaed127
......@@ -120,6 +120,7 @@
pip:
name: "{{ item }}"
state: present
executable: "pip"
register: install_packages
until: install_packages|success
retries: 5
......
- name: Setup DevStack
hosts: devstack
user: ubuntu
gather_facts: no
pre_tasks:
- name: "Install python 2 when not installed"
raw: "test -e /usr/bin/python || (apt -y update && apt install -y python-simplejson)"
become: yes
changed_when: false
- name: "Gather facts"
setup:
tasks:
- name: Clone DevStack repository
git:
repo: "https://git.openstack.org/openstack-dev/devstack"
dest: "{{ ansible_env.HOME }}/devstack"
version: "{{ monasca_git_branch }}"
force: "yes"
- name: Drop local.conf
copy:
src: "local.conf"
dest: "{{ ansible_env.HOME }}/devstack/local.conf"
- name: Run stack.sh
command: "{{ ansible_env.HOME }}/devstack/stack.sh"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment