mirror of https://github.com/tteck/Proxmox.git
Compare commits
5 Commits
0af714731d
...
a00a0a0ef3
Author | SHA1 | Date |
---|---|---|
|
a00a0a0ef3 | |
|
19a33639dc | |
|
4b076f8c19 | |
|
ac469960bc | |
|
4bc2a87189 |
25
CHANGELOG.md
25
CHANGELOG.md
|
@ -4,12 +4,31 @@
|
||||||
|
|
||||||
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
||||||
|
|
||||||
## 2023-08-29
|
## 2023-08-30
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- **TurnKey LXC Template Scripts**
|
- **TurnKey**
|
||||||
- Primitive [scripts](https://github.com/tteck/Proxmox/tree/main/turnkey) to install [TurnKey LXC templates](https://www.turnkeylinux.org/) using basic settings. [More info](https://github.com/tteck/Proxmox/discussions/1742#discussion-5571966)
|
- Introducing a **NEW** Category on the Site.
|
||||||
|
- My intention is to maintain the TurnKey scripts in their simplest form, contained within a single file, and with minimal options, if any.
|
||||||
|
- **TurnKey Core LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey File Server LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey Gitea LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey GitLab LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey Nextcloud LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey Observium LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey ownCloud LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey Torrent Server LXC**
|
||||||
|
- NEW Script
|
||||||
|
- **TurnKey Wordpress LXC**
|
||||||
|
- NEW Script
|
||||||
|
|
||||||
## 2023-08-24
|
## 2023-08-24
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="core"
|
NAME="core"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="4"
|
PCT_DISK_SIZE="4"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="fileserver"
|
NAME="fileserver"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="8"
|
PCT_DISK_SIZE="8"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
#sleep 5
|
||||||
|
#IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="gitea"
|
NAME="gitea"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="4"
|
PCT_DISK_SIZE="4"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="gitlab"
|
NAME="gitlab"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="8"
|
PCT_DISK_SIZE="8"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="nextcloud"
|
NAME="nextcloud"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="10"
|
PCT_DISK_SIZE="10"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="observium"
|
NAME="observium"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="4"
|
PCT_DISK_SIZE="4"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="owncloud"
|
NAME="owncloud"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="10"
|
PCT_DISK_SIZE="10"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="torrentserver"
|
NAME="torrentserver"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="10"
|
PCT_DISK_SIZE="10"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
NAME="wordpress"
|
NAME="wordpress"
|
||||||
PASS="$(openssl rand -base64 8)"
|
PASS="$(openssl rand -base64 8)"
|
||||||
CTID=$(pvesh get /cluster/nextid)
|
CTID=$(pvesh get /cluster/nextid)
|
||||||
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
|
||||||
PCT_DISK_SIZE="8"
|
PCT_DISK_SIZE="8"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,6 +38,7 @@ EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
read -p "Press ENTER to continue..."
|
read -p "Press ENTER to continue..."
|
||||||
|
header_info
|
||||||
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
set -o errexit #Exit immediately if a pipeline returns a non-zero status
|
||||||
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
|
||||||
set -o nounset #Treat unset variables as an error
|
set -o nounset #Treat unset variables as an error
|
||||||
|
@ -157,12 +158,19 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
info "LXC container '$CTID' was successfully created."
|
sleep 5
|
||||||
|
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
echo
|
||||||
|
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
||||||
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
|
echo
|
||||||
info "login: root"
|
info "login: root"
|
||||||
info "password: $PASS"
|
info "password: $PASS"
|
||||||
|
echo
|
||||||
|
|
Loading…
Reference in New Issue