This repository has been archived by the owner on Jan 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathblueprint.yaml
55 lines (45 loc) · 1.48 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
tosca_definitions_version: cloudify_dsl_1_3
imports:
- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
- http://www.getcloudify.org/spec/fabric-plugin/1.4/plugin.yaml
inputs:
agent_user:
default: ubuntu
agent_key_path:
default: ~/.ssh/kubernetes-aws-key.pem
kubernetes_master_ip:
type: string
node_types:
kubernetes.application:
derived_from: cloudify.nodes.ApplicationServer
properties:
config_path:
type: string
interfaces:
cloudify.interfaces.lifecycle:
configure:
implementation: fabric.fabric_plugin.tasks.run_task
inputs:
tasks_file:
default: scripts/kubernetes.py
task_name:
default: start_app
task_properties:
default:
command: '/usr/local/bin/kubectl create -f'
config_path: { get_property: [ SELF, config_path ] }
filepath_agent: { concat: [ '/home/', { get_input: agent_user }, '/', { get_property: [ SELF, config_path ] } ] }
fabric_env:
default:
host_string: { get_input: kubernetes_master_ip }
user: { get_input: agent_user }
key_filename: { get_input: agent_key_path }
node_templates:
mongo_server:
type: kubernetes.application
properties:
config_path: 'mongo-service.yaml'
mongo_controller:
type: kubernetes.application
properties:
config_path: 'mongo-controller.yaml'