Browse Source

* changed password in demo1 to be provided in source, not safe, but easy start and private cloud endpoints are not externally reachable anyway

* added missing network definition in demo3-microservice
* fixed typo in demo4-scale-out-add-worker
* renamed demo4 destroy to destroy-all-demo-instances.py to serve as universal cleanup script for the provided faafo demos
master
Sebastian Rieger 2 years ago
parent
commit
b57045ecf7
  1. 4
      demo1-getting-started.py
  2. 1
      demo3-microservice.py
  3. 2
      demo4-scale-out-add-worker.py
  4. 0
      destroy-all-demo-instances.py

4
demo1-getting-started.py

@ -42,8 +42,8 @@ domain_name = "default"
def main():
# get the password from user
auth_password = getpass.getpass("Enter your OpenStack password:")
# auth_password = "demo"
# auth_password = getpass.getpass("Enter your OpenStack password:")
auth_password = "demo"
# instantiate a connection to the OpenStack private cloud
# make sure to include ex_domain_name and ex_force_auth_version='3.x_password', as they are needed in our

1
demo3-microservice.py

@ -238,6 +238,7 @@ def main():
instance_worker_1 = conn.create_node(name='app-worker-1',
image=image,
size=flavor,
networks=[network],
ex_keyname=keypair_name,
ex_userdata=userdata,
ex_security_groups=[worker_security_group])

2
demo4-scale-out-add-worker.py

@ -101,7 +101,7 @@ def main():
###########################################################################
#
# get fixed a ip for serivice and api instance
# get fixed a ip for service and api instance
# (better would be shared IP for the cluster etc.)
#
###########################################################################

0
demo4-scale-out-destroy.py → destroy-all-demo-instances.py

Loading…
Cancel
Save