File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ PYGCCXML_VERSION: 1.0.0
66NETANIM_VERSION: 3.105
77QUAGGA_VERSION: 0.99.24
88temp_location: "/tmp"
9+ home_location: "/root/OpenNet"
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ function Install_Ansible {
1616
1717}
1818
19-
2019function SSH_Config_Setup {
2120
2221 if [ ! -d $SSHDIR ]; then
@@ -34,7 +33,7 @@ function SSH_Config_Setup {
3433 fi
3534 for host in $hosts ; do
3635 echo " ***copying public key to $host "
37- ssh-keyscan -H $host >> ~ /.ssh /known_hosts
36+ ssh-keyscan -H $host >> $SSHDIR /known_hosts
3837 ssh-copy-id -i $SSHDIR /cluster_key.pub $user @$host & > /dev/null
3938 echo " ***copying key pair to remote host"
4039 scp $SSHDIR /{cluster_key,cluster_key.pub,config} $user @$host :$SSHDIR
@@ -83,7 +82,7 @@ function Test_Network {
8382function Install_OpenNet {
8483
8584 cd $ANSIBLE_PATH
86- echo " home_location: \" $OPENNET_PATH \" " >> group_vars/all
85+ sed -e " s| home_location: \"\" |home_location: \" $OPENNET_PATH \" | " -i group_vars/all
8786 ansible-playbook playbook.yml
8887
8988}
You can’t perform that action at this time.
0 commit comments