├── .gitignore ├── scripts ├── node-attach ├── node-restart ├── node-status ├── node-stop └── node-start ├── lib ├── elasticsearch-script.rb ├── upgrade.sh └── elasticsearch-module.rb ├── LICENSE ├── Vagrantfile ├── README.md └── conf └── elasticsearch.yml.erb /.gitignore: -------------------------------------------------------------------------------- 1 | .vagrant/ 2 | conf/* 3 | logs/ 4 | -------------------------------------------------------------------------------- /scripts/node-attach: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | screen -rx elastic 4 | -------------------------------------------------------------------------------- /scripts/node-restart: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | node-stop 4 | node-start 5 | -------------------------------------------------------------------------------- /scripts/node-status: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | INSTANCE=$(screen -li | grep elastic | sed 's/\s/ /g') 4 | 5 | if [ -z "$INSTANCE" ] 6 | then 7 | echo "No running instance" 8 | else 9 | echo $INSTANCE 10 | fi 11 | -------------------------------------------------------------------------------- /scripts/node-stop: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | INSTANCE=$(screen -li | grep elastic | sed 's/\s/ /g') 4 | 5 | if [ -n "$INSTANCE" ] 6 | then 7 | screen -X -S elastic quit 8 | echo "Killed $INSTANCE" 9 | else 10 | echo "No running instance" 11 | fi 12 | -------------------------------------------------------------------------------- /lib/elasticsearch-script.rb: -------------------------------------------------------------------------------- 1 | @node_start_inline_script = <