#!/bin/bash bootflag='/.manufactured' groot='/opt/coins-demo' k8sDemoWA () { echo 'Disabling swap space...' sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab } ansible () { echo 'Installing K8s...' cd ${groot}/contrib/ansible && \ ansible-playbook bootstrap-node.yml && \ ansible-playbook init-cluster.yml } if [ ! -f ${bootflag} ]; then touch ${bootflag} k8sDemoWA; ansible; fi