Last active
October 5, 2020 10:18
-
-
Save janstarke/e265d86f467f2238abf22db86624291f to your computer and use it in GitHub Desktop.
provisioning files for vagrant
This file contains hidden or 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
#!/bin/bash | |
MYIP=$1 | |
function configure() { | |
sed -i "s~#*$2:.*~$2: $3~" $1 | |
} | |
CFG=/etc/elasticsearch/elasticsearch.yml | |
export DEBIAN_FRONTEND=noninteractive | |
apt install --yes elasticsearch | |
# do not enable prodution mode yet, because this requires a cluster | |
#configure $CFG 'network.host' '["$MYIP", "127.0.0.1", "[::1]"]' | |
#configure $CFG 'discovery.seed_hosts' '["127.0.0.1", "[::1]"]' | |
#configure $CFG 'cluster.initial_master_nodes' '["127.0.0.1"]' | |
systemctl start elasticsearch | |
systemctl enable elasticsearch | |
gpasswd -a vagrant elasticsearch |
This file contains hidden or 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
#!/bin/bash | |
MYIP=$1 | |
function configure() { | |
sed -i "s~#*$2:.*~$2: $3~" $1 | |
} | |
CFG=/etc/kibana/kibana.yml | |
export DEBIAN_FRONTEND=noninteractive | |
apt install --yes kibana | |
#configure $CFG server.host '"$MYIP"' | |
#configure $CFG elasticsearch.hosts '["http://$MYIP:9200"]' | |
systemctl enable kibana | |
systemctl start kibana | |
gpasswd -a vagrant kibana |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment