/scale-scripts

a bunch of noob scripts for truenas scale.

Primary LanguageShell

scale-scripts

a bunch of noob scripts for truenas scale.

Grab the next IP by running this command. optional flags:

  • list-apps

metallb IPs

curl -sSL https://raw.githubusercontent.com/xstar97/scale-scripts/main/scripts/NextAvailableIP.sh | bash -s
curl -sSL https://raw.githubusercontent.com/xstar97/scale-scripts/main/scripts/NextAvailableIP.sh | bash -s list-apps

smb auxillary param

download the script

wget https://raw.githubusercontent.com/xstar97/scale-scripts/main/scripts/smbAuxUpdater.sh

edit the script and change some values that say CHANGE_ME.

  • BASE_URL
  • AUTH_TOKEN
  • SMB_USERS
nano smbAuxUpdater.sh

make the script executable and run it.

chmod +x smbAuxUpdater.sh
smbAuxUpdater.sh

Patch TrueCharts Trains

update current charts to the latest trains name.

curl -sSL https://raw.githubusercontent.com/xstar97/scale-scripts/main/scripts/patchTCTrains.sh | bash --

Patch PVC StorageClass

update PVC storageClass with SCALE-ZFS

ALl charts will be checked but wont be updated.

curl -sSL https://raw.githubusercontent.com/xstar97/scale-scripts/main/scripts/pvcStorageClassUpater.sh | bash -s -- --dry-run

Check a single Chart with the dry run flag.

curl -sSL https://raw.githubusercontent.com/xstar97/scale-scripts/main/scripts/pvcStorageClassUpater.sh | bash -s -- --dry-run --app APP

All charts will be checked and updated.

curl -sSL https://raw.githubusercontent.com/xstar97/scale-scripts/main/scripts/pvcStorageClassUpater.sh | bash -s --