aboutsummaryrefslogtreecommitdiffstats
path: root/cloudify-onap/plugins/onap-installation-plugin/plugin.yaml
blob: f88b50bc7820094b433d89c6f2e795c11e5885fd (plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
plugins:
  onap:
    executor: central_deployment_agent
    package_name: onap-installation-plugin
    package_version: '1.0.0'
    source: onap-installation-plugin
  #  install_arguments: '--process-dependency-links'

node_types:
  cloudify.onap.kubernetes.Environment:
    derived_from: cloudify.nodes.Root
    properties:
      namespace:
        type: string
      init_pod:
        type: string
        description: >
          Path to init pod chart
      openstack_envs:
        description: >
          ONAP parameters defined at the onap-parameters.yaml file
        default: {}
      options:
        description: >
          For compatibility with kubernetes plugin.
          To be removed in the future.
        default: {}
    interfaces:
      cloudify.interfaces.lifecycle:
        create:
          implementation: onap.k8s_installer.environment.create_namespace
          executor: central_deployment_agent
        configure:
          implementation: onap.k8s_installer.environment.setup_helm_templates
          executor: central_deployment_agent
        start:
          implementation: onap.k8s_installer.environment.create_init_pod
          executor: central_deployment_agent
        stop:
          implementation: onap.k8s_installer.environment.delete_init_pod
          executor: central_deployment_agent
        delete:
          implementation: onap.k8s_installer.environment.delete_namespace
          executor: central_deployment_agent

  cloudify.onap.kubernetes.App:
    derived_from: cloudify.nodes.Root
    properties:
      name:
        type: string
        description: >
          Name of ONAP app
      path:
        type: string
        description: >
          Paths (relative, blueprint prespective) to app chart directory
        required: false
      options:
        description: >
          For compatibility with kubernetes plugin.
          To be removed in the future.
        default: {}
      ssh_credentials:
        description: >
          Workaround for docker secret settings
          via fabric plugin
        default:
          host_string: { get_secret: kubernetes_master_ip }
          user: { get_secret: agent_user }
          key: { get_secret: agent_key_private }
    interfaces:
      cloudify.interfaces.lifecycle:
        create:
          implementation: onap.k8s_installer.app.create_namespace
          executor: central_deployment_agent
        configure:
          implementation: onap.k8s_installer.app.configure_docker_secret
          executor: central_deployment_agent
        start:
          implementation: onap.k8s_installer.app.create_resources_services
          executor: central_deployment_agent
        stop:
          implementation: onap.k8s_installer.app.delete_resources_services
          executor: central_deployment_agent
        delete:
          implementation: onap.k8s_installer.app.delete_namespace
          executor: central_deployment_agent