
Changed default database to sqlite Changed how solar_db config is defined Removed lupa from test-requirements Removed riak from requirements Testr uses :memory: sqlite Closes-Bug: #1526286 Change-Id: I709d19a192f800e9a67d9c7657f286ff0b343053
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
---
|
|
|
|
- hosts: all
|
|
sudo: yes
|
|
vars:
|
|
ssh_ip_mask: "10.0.0.*"
|
|
tasks:
|
|
# upgrade pbr first, old version throws strange errors
|
|
- shell: pip install pbr -U
|
|
# Setup development env for solar
|
|
- shell: pip install -e . chdir=/vagrant
|
|
- shell: pip install git+git://github.com/Mirantis/solar-agent.git
|
|
- include: tasks/ssh_conf.yaml
|
|
|
|
- hosts: all
|
|
tasks:
|
|
# set default config location
|
|
- lineinfile:
|
|
dest: /home/vagrant/.bashrc
|
|
line: export SOLAR_CONFIG="/vagrant/.config"
|
|
state: present
|
|
# make riak default on vagrant env
|
|
# unset
|
|
- lineinfile:
|
|
dest: /home/vagrant/.bashrc
|
|
line: export SOLAR_CONFIG_OVERRIDE="/home/vagrant/.solar_config_override"
|
|
state: present
|
|
- lineinfile:
|
|
dest: /home/vagrant/.bashrc
|
|
line: eval "$(_SOLAR_COMPLETE=source solar)"
|
|
state: present
|
|
- lineinfile:
|
|
dest: /home/vagrant/.bashrc
|
|
line: export PYTHONWARNINGS="ignore"
|
|
state: present
|
|
|
|
- hosts: all
|
|
tasks:
|
|
- lineinfile:
|
|
dest: /home/vagrant/.solar_config_override
|
|
line: "solar_db: riak://10.0.0.2:8087"
|
|
state: present
|
|
create: yes
|