Skip to content
Snippets Groups Projects
Commit 407412b3 authored by Arie Peterson's avatar Arie Peterson
Browse files

Use global ssh_known_hosts file

parent 62a86fe7
Branches
Tags
No related merge requests found
......@@ -12,9 +12,9 @@ buildCluster()
mkdir -p "${HOME}/.ssh"
sed -i -e "s/\$NODE_ADDRESS/${ip}/" "$clusterConfigFile"
{
echo "# Inserted by OAS control"
echo "# Inserted for OpenAppStack control"
ssh-keyscan -H "$ip" 2> /dev/null
} >> "${HOME}/.ssh/known_hosts"
} >> "/etc/ssh/ssh_known_hosts"
rke up --config="$clusterConfigFile" || exit
mkdir -p "/control/local/kube"
cp "/control/config/kube_config_cluster.yml" "/control/local/kube/config"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment