This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### docker-swarm-playbook.yml | |
--- | |
- name: Setup Common Elements | |
hosts: all | |
become: true | |
gather_facts: true | |
remote_user: ${remote_user} | |
tasks: | |
- name: Create Node Exporter user | |
user: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# To run... | |
# LFDUrl=https://.../LFD259_...tar.bz2 LFDUser=theusername LFDPassword=thepassword vagrant up | |
# | |
# Thanks to Raj Rajaratnam for his original Medium article: | |
# https://medium.com/@wso2tech/multi-node-kubernetes-cluster-with-vagrant-virtualbox-and-kubeadm-9d3eaac28b98 | |
# | |
$bothScript = <<-SCRIPT | |
# | |
# Set the timezone to Toronto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echoerr () { | |
echo "$@" 1>&2 | |
} | |
if [ "$1x" == "x" ]; then | |
echoerr "Please specify the image name" | |
return | |
fi |