Use highlevel deployment tool in example.sh

This commit is contained in:
Evgeniy L 2015-06-02 16:45:26 +02:00
parent 9e521c88c1
commit d462fae814

View File

@ -1,11 +1,16 @@
#!/bin/bash #!/bin/bash
set -eux set -eux
rm -rf /tmp/tmp*
rm /vagrant/tmp/storage/* || true rm /vagrant/tmp/storage/* || true
rm /vagrant/tmp/connections.yaml || true rm /vagrant/tmp/connections.yaml || true
echo > /vagrant/state/commit_log || true
echo > /vagrant/state/commited_data || true
echo > /vagrant/state/stage_log || true
find /vagrant/solar/solar -name '*.pyc' -delete || true find /vagrant/solar/solar -name '*.pyc' -delete || true
sudo docker stop $(sudo docker ps -q) || true sudo docker stop $(sudo docker ps -q) || true
sudo docker rm $(sudo docker ps -qa) || true
solar profile -c -t env/test_env -i prf1 solar profile -c -t env/test_env -i prf1
solar discover solar discover
@ -17,14 +22,5 @@ solar assign -n 'node/node_1' -r 'resources/haproxy'
solar connect --profile prf1 solar connect --profile prf1
solar run -a run -t 'resources/docker' ./cli.py changes stage
./cli.py changes commit
solar run -a run -t 'resource/mariadb_service'
solar run -a run -t 'resource/mariadb_keystone_db'
solar run -a run -t 'resource/mariadb_keystone_user'
solar run -a run -t 'resource/keystone_config'
solar run -a run -t 'resource/keystone_service'
solar run -a run -t 'resource/haproxy_config'
solar run -a run -t 'resources/haproxy'