-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlxc.yml
More file actions
65 lines (62 loc) · 2.13 KB
/
lxc.yml
File metadata and controls
65 lines (62 loc) · 2.13 KB
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
tosca_definitions_version: alien_dsl_1_3_0
description: LXC component
template_name: lxc-type
template_version: 1.0.0-SNAPSHOT
template_author: FastConnect
imports:
- "tosca-normative-types:1.0.0-ALIEN12"
node_types:
alien.nodes.Lxc:
derived_from: tosca.nodes.SoftwareComponent
description: >
The TOSCA LXC type represent an LXC component that can be run by
a TOSCA compute node type runing Ubuntu.
tags:
icon: /images/lxc.png
attributes:
IP_List: { get_operation_output: [ SELF, Standard, start, IP_LIST ] }
properties:
containers_number:
type: integer
required: true
description: number of desired containers
hostpool_endpoint:
type: string
required: true
constraints:
- pattern: "(https?://)?([0-9a-z.-]+):([0-9]+)"
description: endpoint of the hostpool plugin (http://ip:port)
key_pem:
type: string
required: true
description: cloudify manager key.pem (use textarea to set it)
requirements:
- host: # Overrides the parent host requirement
capability: tosca.capabilities.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
occurrences: [1, 1]
node_filter:
capabilities:
- tosca.capabilities.OperatingSystem:
properties:
- distribution: { equal: ubuntu }
interfaces:
Standard:
create:
implementation: scripts/create.sh
configure:
inputs:
KEY_PEM: { get_property: [SELF, key_pem] }
implementation: scripts/configure.sh
start:
inputs:
MAX: { get_property: [SELF, containers_number] }
HOST_PRIVATE_IP: {get_attribute: [HOST, ip_address]}
HOSTPOOL_ENDPOINT: { get_property: [SELF, hostpool_endpoint] }
implementation: scripts/start.sh
stop:
inputs:
TAG: {get_attribute: [HOST, ip_address]}
HOSTPOOL_ENDPOINT: { get_property: [SELF, hostpool_endpoint] }
implementation: scripts/stop.sh