f88b50bc7820094b433d89c6f2e795c11e5885fd
[oom.git] / cloudify-onap / plugins / onap-installation-plugin / plugin.yaml
1 plugins:
2   onap:
3     executor: central_deployment_agent
4     package_name: onap-installation-plugin
5     package_version: '1.0.0'
6     source: onap-installation-plugin
7   #  install_arguments: '--process-dependency-links'
8
9 node_types:
10   cloudify.onap.kubernetes.Environment:
11     derived_from: cloudify.nodes.Root
12     properties:
13       namespace:
14         type: string
15       init_pod:
16         type: string
17         description: >
18           Path to init pod chart
19       openstack_envs:
20         description: >
21           ONAP parameters defined at the onap-parameters.yaml file
22         default: {}
23       options:
24         description: >
25           For compatibility with kubernetes plugin.
26           To be removed in the future.
27         default: {}
28     interfaces:
29       cloudify.interfaces.lifecycle:
30         create:
31           implementation: onap.k8s_installer.environment.create_namespace
32           executor: central_deployment_agent
33         configure:
34           implementation: onap.k8s_installer.environment.setup_helm_templates
35           executor: central_deployment_agent
36         start:
37           implementation: onap.k8s_installer.environment.create_init_pod
38           executor: central_deployment_agent
39         stop:
40           implementation: onap.k8s_installer.environment.delete_init_pod
41           executor: central_deployment_agent
42         delete:
43           implementation: onap.k8s_installer.environment.delete_namespace
44           executor: central_deployment_agent
45
46   cloudify.onap.kubernetes.App:
47     derived_from: cloudify.nodes.Root
48     properties:
49       name:
50         type: string
51         description: >
52           Name of ONAP app
53       path:
54         type: string
55         description: >
56           Paths (relative, blueprint prespective) to app chart directory
57         required: false
58       options:
59         description: >
60           For compatibility with kubernetes plugin.
61           To be removed in the future.
62         default: {}
63       ssh_credentials:
64         description: >
65           Workaround for docker secret settings
66           via fabric plugin
67         default:
68           host_string: { get_secret: kubernetes_master_ip }
69           user: { get_secret: agent_user }
70           key: { get_secret: agent_key_private }
71     interfaces:
72       cloudify.interfaces.lifecycle:
73         create:
74           implementation: onap.k8s_installer.app.create_namespace
75           executor: central_deployment_agent
76         configure:
77           implementation: onap.k8s_installer.app.configure_docker_secret
78           executor: central_deployment_agent
79         start:
80           implementation: onap.k8s_installer.app.create_resources_services
81           executor: central_deployment_agent
82         stop:
83           implementation: onap.k8s_installer.app.delete_resources_services
84           executor: central_deployment_agent
85         delete:
86           implementation: onap.k8s_installer.app.delete_namespace
87           executor: central_deployment_agent