diff --git a/starter-java-web.yml b/starter-java-web.yml index 42f6e5e..40ff223 100644 --- a/starter-java-web.yml +++ b/starter-java-web.yml @@ -1,5 +1,6 @@ application: configuration: + input.operating-system: {image: "us-east-1/ami-5ccae734", identity: ec2-user} input.lb-bucket: http://roundrobin:80 input.app-fork: qubell input.app-branch: HEAD #red, master @@ -16,6 +17,7 @@ application: app-branch: "bind(main.workflow#input.app-branch)" lb-bucket: "bind(main.workflow#input.lb-bucket)" app-quantity: "bind(AppServer#input.quantity)" + operating-system: "bind(Database#input.operating-system, AppServer#input.operating-system, LoadBalancer#input.operating-system)" app-meta: application-pic: "bind(metadata#output.application-pic)" endpoints: @@ -360,6 +362,13 @@ application: __locator.application-id: "Database" interfaces: input: + operating-system: + type: configuration(map) + suggestions: # Create dropdown menu in advanced launch + "centos": {image: "us-east-1/ami-bf5021d6", identity: root} + "amazon": {image: "us-east-1/ami-5ccae734", identity: ec2-user} + "ubuntu1204": {image: "us-east-1/ami-967edcff", identity: ubuntu} + "ubuntu1004": {image: "us-east-1/ami-9f3906f6", identity: ubuntu} db-port: type: configuration(int) name: Database port @@ -393,7 +402,7 @@ application: type: configuration(map) suggestions: "centos": {image: "us-east-1/ami-bf5021d6", identity: root} - "amazon": {image: "us-east-1/ami-1ba18d72", identity: ec2-user} + "amazon": {image: "us-east-1/ami-5ccae734", identity: ec2-user} "ubuntu1204": {image: "us-east-1/ami-967edcff", identity: ubuntu} "ubuntu1004": {image: "us-east-1/ami-9f3906f6", identity: ubuntu} instance-size: @@ -430,6 +439,14 @@ application: configuration: __locator.application-id: "Load Balancer" interfaces: + input: + operating-system: + type: configuration(map) + suggestions: # Create dropdown menu in advanced launch + "centos": {image: "us-east-1/ami-bf5021d6", identity: root} + "amazon": {image: "us-east-1/ami-5ccae734", identity: ec2-user} + "ubuntu1204": {image: "us-east-1/ami-967edcff", identity: ubuntu} + "ubuntu1004": {image: "us-east-1/ami-9f3906f6", identity: ubuntu} haproxy: add-servers: type: receive-command(list app-hosts, int app-port, string lb-bucket => string entry-url)