-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2019 from gizmoguy/make-vm-use-deb-packages
Make vm use deb packages
- Loading branch information
Showing
12 changed files
with
71 additions
and
111 deletions.
There are no files selected for viewing
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
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
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
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
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
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
34 changes: 34 additions & 0 deletions
34
vm/elements/faucet-all-in-one/install.d/02-install-faucet-gauge-prometheus-grafana
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then | ||
set -x | ||
fi | ||
set -eu | ||
set -o pipefail | ||
|
||
SCRIPTDIR=$(dirname $0) | ||
|
||
# Add a `faucet' user | ||
adduser --disabled-password --gecos "faucet user" faucet | ||
echo faucet:faucet | chpasswd | ||
gpasswd -a faucet sudo | ||
|
||
# Add faucet repo | ||
echo "deb https://packagecloud.io/faucetsdn/faucet/$(lsb_release -si | awk '{print tolower($0)}')/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/faucet.list | ||
curl -L https://packagecloud.io/faucetsdn/faucet/gpgkey | apt-key add - | ||
apt-get update | ||
|
||
# Install faucet/gauge/prometheus/grafana | ||
apt-get install -y faucet-all-in-one | ||
|
||
# Configure prometheus | ||
cat << EOF > /etc/default/prometheus | ||
# Set the command-line arguments to pass to the server. | ||
ARGS="--config.file=/etc/faucet/prometheus/prometheus.yml" | ||
EOF | ||
sudo systemctl restart prometheus | ||
|
||
# Configure grafana | ||
systemctl daemon-reload | ||
systemctl enable grafana-server | ||
systemctl start grafana-server |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.