1 # Copyright 2020 Canonical Ltd.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
14 from pathlib
import Path
16 # Get ${HOME} from local machine
17 home
= str(Path
.home())
18 # NS and VNF descriptor package files
19 vnfd_pkg1
= 'k8s_jujucontroller_vnf.tar.gz'
20 vnfd_pkg2
= 'k8s_jujumachine_vnf.tar.gz'
21 nsd_pkg
= 'k8s_juju_ns.tar.gz'
22 # NS and VNF descriptor package files
23 vnfd_name1
= 'k8s_jujucontroller_vnf'
24 vnfd_name2
= 'k8s_jujumachine_vnf'
27 vnf_member_index_1
= 'k8s_vnf1'
28 vnf_member_index_2
= 'k8s_vnf2'
29 vnf_member_index_3
= 'k8s_vnf3'
30 vnf_member_index_4
= 'k8s_vnf4'
31 vnf_member_index_5
= 'k8s_juju'
35 kubeconfig_file
= '/home/ubuntu/.kube/config'
37 ns_name
= 'k8s-cluster'
39 publickey
= home
+ '/.ssh/id_rsa.pub'
40 privatekey
= home
+ '/.ssh/id_rsa'
41 # Template and config file to use
42 template
= 'k8s_juju_template.yaml'
43 config_file
= 'config.yaml'