From 5dc3ca2c4ece97208354505b4bf3a2666f11a491 Mon Sep 17 00:00:00 2001 From: Sebastian Rieger Date: Mon, 6 May 2019 16:04:38 +0200 Subject: [PATCH] fixed faafo userdata, thanks to Stefan ;), also added Ubuntu 18.04 example image --- demo3-microservice.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/demo3-microservice.py b/demo3-microservice.py index 49340a8..18d77a6 100644 --- a/demo3-microservice.py +++ b/demo3-microservice.py @@ -23,6 +23,7 @@ region_name = 'RegionOne' domain_name = "default" ubuntu_image_name = "Ubuntu 14.04 - Trusty Tahr - 64-bit - Cloud Based Image" +#ubuntu_image_name = "Ubuntu 18.04 - Bionic Beaver - 64-bit - Cloud Based Image" flavor_name = 'm1.small' @@ -153,9 +154,18 @@ def main(): # ########################################################################### + # https://git.openstack.org/cgit/openstack/faafo/plain/contrib/install.sh + # is currently broken, hence the "rabbitctl" lines were added in the example + # below, see also https://bugs.launchpad.net/faafo/+bug/1679710 + # + # Thanks to Stefan Friedmann for finding this fix ;) + userdata = '''#!/usr/bin/env bash curl -L -s https://git.openstack.org/cgit/openstack/faafo/plain/contrib/install.sh | bash -s -- \ -i messaging -i faafo -r api + rabbitmqctl add_user faafo guest + rabbitmqctl set_user_tags faafo administrator + rabbitmqcl set_permissions -p / faafo ".*" ".*" ".*" ''' print('Starting new app-controller instance and wait until it is running...')