diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2019-02-28 14:16:34 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2019-04-11 14:49:48 +0800 |
commit | 113fccee9efc558e90b0a62adedccb29347d7f18 (patch) | |
tree | a7190e67ed1cf278efab5d3fad01848da6e1975f /deploy | |
parent | 13b89da3652164ea1956d116c98fbe7db82eeda6 (diff) |
JIRA: -
1. Add ONAP plugin
2. Add ONAP scenario
Change-Id: I80046811207f5786049fb9829e3d9f33ea31978a
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/conf/vm_environment/k8-nosdn-onap-noha.yml | 46 | ||||
-rwxr-xr-x | deploy/prepare.sh | 4 |
2 files changed, 48 insertions, 2 deletions
diff --git a/deploy/conf/vm_environment/k8-nosdn-onap-noha.yml b/deploy/conf/vm_environment/k8-nosdn-onap-noha.yml new file mode 100644 index 00000000..d7b85a85 --- /dev/null +++ b/deploy/conf/vm_environment/k8-nosdn-onap-noha.yml @@ -0,0 +1,46 @@ +############################################################################## +# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +--- +TYPE: virtual +FLAVOR: cluster + +plugins: + - onap: "Enable" + +hosts: + - name: host1 + roles: + - kube_master + - etcd + - ha + + - name: host2 + roles: + - kube_node + + - name: host3 + roles: + - kube_node + + - name: host4 + roles: + - kube_node + + - name: host5 + roles: + - kube_node + + - name: host6 + roles: + - kube_node + + - name: host7 + roles: + - kube_node diff --git a/deploy/prepare.sh b/deploy/prepare.sh index 59d76824..f11ae74c 100755 --- a/deploy/prepare.sh +++ b/deploy/prepare.sh @@ -53,9 +53,9 @@ function prepare_env() { sudo sed -i 's/^.\?tcp_port.*/tcp_port = "16509"/g' /etc/libvirt/libvirtd.conf sudo sed -i 's/^.\?listen_addr.*/listen_addr = "0.0.0.0"/g' /etc/libvirt/libvirtd.conf sudo sed -i 's/^.\?auth_tcp.*/auth_tcp = "none"/g' /etc/libvirt/libvirtd.conf - sudo sed -i 's/^.\?libvirtd_opts.*/libvirtd_opts = "-l"/g' /etc/default/libvirt-bin - + sudo sed -i 's/^.\?libvirtd_opts.*/libvirtd_opts="-d -l"/g' /etc/default/libvirt-bin sudo service libvirt-bin restart + if sudo service openvswitch-switch status|grep stop; then sudo service openvswitch-switch start fi |