aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/install-dependencies.sh
diff options
context:
space:
mode:
authorOle Mathias Heggem <olemathias.aa.heggem@gmail.com>2023-01-21 19:07:38 +0100
committerOle Mathias Heggem <olemathias.aa.heggem@gmail.com>2023-01-21 19:07:38 +0100
commit709c78569b26677624e60588fa1166dc659ac93c (patch)
tree2bd5555af31b637d03693b8563fb24b41bf1f22b /bootstrap/install-dependencies.sh
parentf5da0d943401e527f5162e9c6344deb65b19b045 (diff)
chore: cleanup repo
Diffstat (limited to 'bootstrap/install-dependencies.sh')
-rwxr-xr-xbootstrap/install-dependencies.sh61
1 files changed, 0 insertions, 61 deletions
diff --git a/bootstrap/install-dependencies.sh b/bootstrap/install-dependencies.sh
deleted file mode 100755
index c10224f..0000000
--- a/bootstrap/install-dependencies.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash -e
-
-if [ "$1" != "master" -a "$1" != "slave" -a "$1" != "boot" ]; then
- echo "Run as $0 <boot|master|slave>"
- exit
-fi
-
-# OK, we know the content of $0 is OK. I prefer sane names.
-ROLE=$1;
-
-# Resynchronize the package index before install
-
-apt-get -y update
-
-# Start by installing common packages. Remember to update
-# this when a new common dependency is discovered, plx.
-
-apt-get -y install \
- vim-nox \
- git \
- ntp \
- screen \
- tmux \
- dnsutils \
- build-essential \
- libnet-ip-perl \
- libnetaddr-ip-perl \
- libnet-telnet-cisco-perl \
- libnet-ping-external-perl \
- perl-modules \
- libdbi-perl \
- libdbd-pg-perl \
- libnet-telnet-perl \
- libnetaddr-ip-perl
-
-if [ "${ROLE}" == "boot" ]; then
- # Install-tasks specific for the _bootstrab box_ here
- echo "Installing for bootstrap"
- apt-get -y install \
- bind9utils
-fi
-
-if [ "${ROLE}" == "master" ]; then
- # Install-tasks specific for the _primary_ here
- echo "Installing for primary/master"
- apt-get -y install \
- isc-dhcp-server \
- bind9utils \
- bind9
-fi
-
-if [ "${ROLE}" == "slave" ]; then
- # Install-tasks specific for the _secondary_ here
- echo "Installing for secondary/slave"
- apt-get -y install \
- isc-dhcp-server \
- bind9utils \
- bind9
-fi
-
-echo "Dependency installation for ${ROLE} complete."