-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathopenstack-blueprint-with-numbers.yaml
64 lines (53 loc) · 2.04 KB
/
openstack-blueprint-with-numbers.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
#######################################################################
#
# Copyright (c) 2017 Orange
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
########################################################################
########################################################################
# This Blueprint deploy the clearwater IMS on an openstack environment
########################################################################
tosca_definitions_version: cloudify_dsl_1_3
imports:
- http://www.getcloudify.org/spec/fabric-plugin/1.4.1/plugin.yaml
- openstack-blueprint.yaml
inputs:
number_of_subscribers:
type: integer
default: 50000
node_templates:
# Declare clearwater and other software
vellum_provisioning:
type: clearwater.nodes.vellum.provisioning
properties:
public_domain: { get_input: public_domain }
number_of_subscribers: { get_input: number_of_subscribers }
ssh_user: { get_input: agent_user }
ssh_key: { get_input: private_key_path }
vellum_ip: { get_attribute: [vellum_prov_host, ip] }
relationships:
- type: cloudify.relationships.connected_to
target: vellum_prov
vellum_prov_host:
type: clearwater.nodes.MonitoredServer
relationships:
- type: cloudify.openstack.server_connected_to_keypair
target: keypair
- target: base_security_group
type: cloudify.openstack.server_connected_to_security_group
- target: vellum_security_group
type: cloudify.openstack.server_connected_to_security_group
vellum_prov:
type: clearwater.nodes.vellum
properties:
private_domain: clearwater.local
release: { get_input: release }
relationships:
- type: cloudify.relationships.contained_in
target: vellum_prov_host
- type: app_connected_to_bind
target: bind