-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprint.yaml
73 lines (65 loc) · 2.28 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
tosca_definitions_version: cloudify_dsl_1_3
description: >
Deploys JBoss.
imports:
- http://cloudify.co/spec/cloudify/5.0.0/types.yaml
- plugin:cloudify-fabric-plugin
inputs:
infra_blueprint:
description: >
Name of infrastructure blueprint to deploy.
type: string
constraints:
- valid_values:
- mc-demo-jboss-openstack
- mc-demo-jboss-azure-vm
- mc-demo-jboss-azure-vm-arm
- mc-demo-jboss-aws-vm
infra_inputs:
description: >
Inputs that will be passed on to the infrastructure blueprint.
default: {}
node_templates:
infrastructure:
type: cloudify.nodes.Component
properties:
resource_config:
blueprint:
id: { get_input: infra_blueprint }
external_resource: true
deployment:
inputs: { get_input: infra_inputs }
jboss:
type: cloudify.nodes.ApplicationServer
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: fabric.fabric_plugin.tasks.run_script
inputs:
script_path: scripts/create.sh
fabric_env: &fabric_env
host_string: { get_capability: [ { get_attribute: [ infrastructure, deployment, id ] }, public_ip ]}
user: { get_capability: [ { get_attribute: [ infrastructure, deployment, id ] }, ssh_user ]}
key_filename: { get_capability: [ { get_attribute: [ infrastructure, deployment, id ] }, private_key_path ]}
configure:
implementation: fabric.fabric_plugin.tasks.run_script
inputs:
script_path: scripts/configure.sh
fabric_env: *fabric_env
start:
implementation: fabric.fabric_plugin.tasks.run_script
inputs:
script_path: scripts/start.sh
fabric_env: *fabric_env
stop:
implementation: fabric.fabric_plugin.tasks.run_script
inputs:
script_path: scripts/stop.sh
fabric_env: *fabric_env
relationships:
- type: cloudify.relationships.depends_on
target: infrastructure
outputs:
admin_url:
description: Administration console URL
value: { concat: [ 'http://', { get_capability: [ { get_attribute: [ infrastructure, deployment, id ] }, public_ip ] }, ':9990/console' ] }