-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsinglehost-blueprint.yaml
51 lines (45 loc) · 1.46 KB
/
singlehost-blueprint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
tosca_definitions_version: cloudify_dsl_1_4
description: >
This blueprint installs a simple web server on an already running VM using Cloudify's script plugin.
imports:
- http://www.getcloudify.org/spec/cloudify/7.1.0.dev1/types.yaml
inputs:
server_ip:
description: >
The private ip of the server the application will be deployed on.
agent_user:
description: >
User name used when SSH-ing into the started machine.
agent_private_key_path:
description: >
Path to a private key that resides on the management machine.
SSH-ing into agent machines will be done with this key.
webserver_port:
description: >
The HTTP web server port.
default: 8080
node_templates:
vm:
type: cloudify.nodes.Compute
properties:
ip: { get_input: server_ip }
agent_config:
user: { get_input: agent_user }
key: { get_input: agent_private_key_path }
http_web_server:
type: cloudify.nodes.WebServer
properties:
port: { get_input: webserver_port }
relationships:
- type: cloudify.relationships.contained_in
target: vm
interfaces:
cloudify.interfaces.lifecycle:
configure: scripts/configure.sh
start: scripts/start.sh
stop: scripts/stop.sh
outputs:
http_endpoint:
description: Web server external endpoint
value: { concat: ['http://', { get_property: [ vm, ip ] },
':', { get_property: [http_web_server, port] }] }