summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/prepare-rke/templates/rke.j2
blob: ea1267ea8bb1563b1ba88884245f1dcac9d2744b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

if [[ $@ =~ 'up' ]];
then
  # If the operation is 'rke up' then simulate rke up operation
  echo $@
  touch {{ cluster_config_dir }}/kube_config_cluster.yml
elif [[ $@ =~ 'version' ]];
then
  {{ app_data_path }}/downloads/rke_linux-amd64_real version
  exit 0
else
  {{ app_data_path }}/downloads/rke_linux-amd64_real $@
fi