1 Star 0 Fork 44

zhuchance / ansible-elk-deploy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Vagrant.sh 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
Haibin Lee 提交于 2018-11-21 14:49 . REV: update tasks for ansible 2.7.2
#!/usr/bin/env bash
if [[ $3 ]]; then
export VM_BOX=$3
echo Seleted distro is ${VM_BOX}
fi
if [[ $2 == +([0-9]) ]]; then
export ELK_INSTANCES=$2
echo ${ELK_INSTANCES} virtual machine\(s\) will be boot up.
fi
function create() {
vagrant up --provision --install-provider
# if [[ $? == 0 ]]; then
# vagrant reload --provision
# fi
}
case $1 in
up )
create
;;
rebuild )
vagrant destroy -f
create
;;
destroy )
vagrant destroy -f
;;
* )
echo "
Usage:
$0 up - Bootstrap virtual machines.
$0 rebuild - Destroy and bootstrap again.
$0 destroy - Shutdown and destroy all machines.
"
esac
Python
1
https://gitee.com/meoom/ansible-elk-deploy.git
git@gitee.com:meoom/ansible-elk-deploy.git
meoom
ansible-elk-deploy
ansible-elk-deploy
master

搜索帮助