Add K8S AI scripts
This commit is contained in:
@ -61,10 +61,11 @@ fi
|
||||
|
||||
echo "System meets minimum requirements. Proceeding with installation..."
|
||||
|
||||
# Add Netbox repository
|
||||
echo "Adding Netbox repository..."
|
||||
echo "deb https://packagecloud.io/netbox-community/netbox/ubuntu/ $(lsb_release -sc) main" | tee -a /etc/apt/sources.list.d/netbox-community.list
|
||||
curl -L https://packagecloud.io/netbox-community/netbox/gpgkey | apt-key add -
|
||||
# Download the latest version of netbox and unzip it
|
||||
echo "Downloading latest version of Netbox and moving files..."
|
||||
sudo wget https://github.com/netbox-community/netbox/archive/refs/tags/vX.Y.Z.tar.gz
|
||||
sudo tar -xzf vX.Y.Z.tar.gz -C /opt
|
||||
sudo ln -s /opt/netbox-X.Y.Z/ /opt/netbox
|
||||
|
||||
# Prompt user for PostgreSQL and Netbox password
|
||||
read -p "Enter PostgreSQL password for 'netbox' user: " PG_PASSWORD
|
||||
|
Reference in New Issue
Block a user