example.sh fixes
This commit is contained in:
parent
15aeb9c7a0
commit
852216cbbd
@ -14,5 +14,5 @@ template-dir: /vagrant/templates
|
||||
resources-files-mask: /vagrant/resources/*/*.yaml
|
||||
node_resource_template: /vagrant/resources/ro_node/
|
||||
|
||||
state: /vagrant/state/
|
||||
state: /tmp/state/
|
||||
|
||||
|
@ -195,12 +195,10 @@ def deploy():
|
||||
actions.resource_action(keystone_db_user, 'run')
|
||||
actions.resource_action(keystone_config1, 'run')
|
||||
actions.resource_action(keystone_service1, 'run')
|
||||
time.sleep(10) #TODO fix keystone services to check if tables are created
|
||||
actions.resource_action(keystone_config2, 'run')
|
||||
actions.resource_action(keystone_service2, 'run')
|
||||
actions.resource_action(haproxy_config, 'run')
|
||||
actions.resource_action(haproxy_service, 'run')
|
||||
time.sleep(10) #TODO fix haproxy to wait until it's ready
|
||||
|
||||
actions.resource_action(admin_tenant, 'run')
|
||||
actions.resource_action(admin_user, 'run')
|
||||
|
13
example.sh
13
example.sh
@ -2,11 +2,14 @@
|
||||
set -eux
|
||||
|
||||
rm -rf /tmp/tmp*
|
||||
rm /vagrant/tmp/storage/* || 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
|
||||
rm /tmp/storage/* || true
|
||||
rm /tmp/connections.yaml || true
|
||||
|
||||
mkdir -p /tmp/state
|
||||
|
||||
echo > /tmp/state/commit_log || true
|
||||
echo > /tmp/state/commited_data || true
|
||||
echo > /tmp/state/stage_log || true
|
||||
find /vagrant/solar/solar -name '*.pyc' -delete || true
|
||||
|
||||
sudo docker stop $(sudo docker ps -q) || true
|
||||
|
@ -1,9 +1,9 @@
|
||||
- id: node_1
|
||||
ip: 10.0.0.2
|
||||
ssh_user: vagrant
|
||||
ssh_key: /vagrant/tmp/keys/ssh_private
|
||||
|
||||
- id: node_2
|
||||
ip: 10.0.0.3
|
||||
ssh_user: vagrant
|
||||
ssh_key: /vagrant/tmp/keys/ssh_private
|
||||
ssh_key: /vagrant/.vagrant/machines/solar-dev1/virtualbox/private_key
|
||||
|
||||
- id: node_2
|
||||
ip: 10.0.0.4
|
||||
ssh_user: vagrant
|
||||
ssh_key: /vagrant/.vagrant/machines/solar-dev2/virtualbox/private_key
|
||||
|
@ -7,7 +7,7 @@ input:
|
||||
value: mariadb
|
||||
root_password:
|
||||
schema: str!
|
||||
value: password
|
||||
value: mariadb
|
||||
port:
|
||||
schema: int!
|
||||
value: 3306
|
||||
|
@ -25,7 +25,6 @@ import pprint
|
||||
import textwrap
|
||||
import yaml
|
||||
|
||||
from solar import extensions
|
||||
from solar import utils
|
||||
from solar.core.resource import assign_resources_to_nodes
|
||||
from solar.core.resource import connect_resources
|
||||
|
Loading…
Reference in New Issue
Block a user