Add init loop in prometheus sidecar container
[osm/devops.git] / descriptor-packages / vnfd / hackfest_simplecharm_vnf / src / hackfest_simplecharm_vnfd.yaml
1 # -*- coding: utf-8 -*-
2
3 ##
4 # Copyright 2019 ETSI
5 #
6 # All Rights Reserved.
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License"); you may
9 # not use this file except in compliance with the License. You may obtain
10 # a copy of the License at
11 #
12 #         http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 # License for the specific language governing permissions and limitations
18 # under the License.
19 ##
20
21 ## Change log:
22 # 1. Feature 7829: Mrityunjay Yadav, Jayant Madavi : MY00514913@techmahindra.com
23 # 19-aug-2019 : changed vdu image from hackfest3-mgmt to ubuntu1604
24 ##
25
26 vnfd:vnfd-catalog:
27     vnfd:
28     -   id: hackfest-simplecharm-vnf
29         name: hackfest-simplecharm-vnf
30         short-name: hackfest-simplecharm-vnf
31         version: '1.0'
32         description: A VNF consisting of 2 VDUs connected to an internal VL, and one VDU with cloud-init
33         logo: osm.png
34         connection-point:
35         -   id: vnf-mgmt
36             name: vnf-mgmt
37             short-name: vnf-mgmt
38
39         -   id: vnf-data
40             name: vnf-data
41             short-name: vnf-data
42
43         mgmt-interface:
44             cp: vnf-mgmt
45         internal-vld:
46         -   id: internal
47             name: internal
48             short-name: internal
49             type: ELAN
50             internal-connection-point:
51             -   id-ref: mgmtVM-internal
52             -   id-ref: dataVM-internal
53         vdu:
54         -   id: mgmtVM
55             name: mgmtVM
56             image: ubuntu1604
57             count: '1'
58             vm-flavor:
59                 vcpu-count: '1'
60                 memory-mb: '1024'
61                 storage-gb: '10'
62             interface:
63             -   name: mgmtVM-eth0
64                 position: '1'
65                 type: EXTERNAL
66                 virtual-interface:
67                     type: PARAVIRT
68                 external-connection-point-ref: vnf-mgmt
69             -   name: mgmtVM-eth1
70                 position: '2'
71                 type: INTERNAL
72                 virtual-interface:
73                     type: PARAVIRT
74                 internal-connection-point-ref: mgmtVM-internal
75             internal-connection-point:
76             -   id: mgmtVM-internal
77                 name: mgmtVM-internal
78                 short-name: mgmtVM-internal
79
80             cloud-init-file: cloud-config.txt
81         -   id: dataVM
82             name: dataVM
83             image: ubuntu1604
84             count: '1'
85             vm-flavor:
86                 vcpu-count: '1'
87                 memory-mb: '1024'
88                 storage-gb: '10'
89             interface:
90             -   name: dataVM-eth0
91                 position: '1'
92                 type: INTERNAL
93                 virtual-interface:
94                     type: PARAVIRT
95                 internal-connection-point-ref: dataVM-internal
96             -   name: dataVM-xe0
97                 position: '2'
98                 type: EXTERNAL
99                 virtual-interface:
100                     type: PARAVIRT
101                 external-connection-point-ref: vnf-data
102             internal-connection-point:
103             -   id: dataVM-internal
104                 name: dataVM-internal
105                 short-name: dataVM-internal
106
107         vnf-configuration:
108             juju:
109                 charm: simple
110             initial-config-primitive:
111             -   seq: '1'
112                 name: config
113                 parameter:
114                 -   name: ssh-hostname
115                     value: <rw_mgmt_ip>
116                 -   name: ssh-username
117                     value: ubuntu
118                 -   name: ssh-password
119                     value: osm4u
120             -   seq: '2'
121                 name: touch
122                 parameter:
123                 -   name: filename
124                     value: '/home/ubuntu/first-touch'
125             config-primitive:
126             -   name: touch
127                 parameter:
128                 -   name: filename
129                     data-type: STRING
130                     default-value: '/home/ubuntu/touched'
131