19 Star 79 Fork 47

乞丐亦异/ansible-elk-deploy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Vagrant.sh 705 Bytes
一键复制 编辑 原始数据 按行查看 历史
Haibin Lee 提交于 2019-04-02 16:34 . FIX: some bugs
#!/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
ansible-playbook play-all.yml
# 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bottlelee/ansible-elk-deploy.git
git@gitee.com:bottlelee/ansible-elk-deploy.git
bottlelee
ansible-elk-deploy
ansible-elk-deploy
master

搜索帮助