Config file for deploying new PGBlitz server without user interaction

vpatel9202

Blitz 3rd Class
Original poster
21
7
Is it possible to introduce a config file that allows deploying a new server without going through all the steps manually? I imagine you could accomplish this by forking PGBlitz and introducing your config for each app into the Ansible routines, but that seems complicated. If we could have a yml or json file that allowed for config like so:

JSON:
{
  "pgblitz": {
    "installed_core_apps": {
      "nzbbget": "[config_items]",
      "sonarr": "[config_items]"
    },
    "watchtower": "true",
    "pgtrakt": "false"
  },
  "gdrive": {
    "email": "[email protected]",
    "token": "xxxxxxx"
  },
  "tdrive": {
    "name": "plexdrive"
  }
}
Now there's obviously some things that couldn't be pre-configured, like google auth tokens, but aside from those specific things, this would save a ton of time in setting up a new server. The main benefit here is either if you're using GCE temporarily on credits where you have to re-configure another server, or if you're shopping around for different servers and have to set up a box several times.
 
  • Like
Reactions: Admin9705

Admin9705

Administrator
Project Manager
5,819
2,008
Is it possible to introduce a config file that allows deploying a new server without going through all the steps manually? I imagine you could accomplish this by forking PGBlitz and introducing your config for each app into the Ansible routines, but that seems complicated. If we could have a yml or json file that allowed for config like so:

JSON:
{
  "pgblitz": {
    "installed_core_apps": {
      "nzbbget": "[config_items]",
      "sonarr": "[config_items]"
    },
    "watchtower": "true",
    "pgtrakt": "false"
  },
  "gdrive": {
    "email": "[email protected]",
    "token": "xxxxxxx"
  },
  "tdrive": {
    "name": "plexdrive"
  }
}
Now there's obviously some things that couldn't be pre-configured, like google auth tokens, but aside from those specific things, this would save a ton of time in setting up a new server. The main benefit here is either if you're using GCE temporarily on credits where you have to re-configure another server, or if you're shopping around for different servers and have to set up a box several times.
looks good, but i've seen people use gce for deploying a plex server (even though a bad idea). There's no preconfig because everyone uses it a different way.
 

vpatel9202

Blitz 3rd Class
Original poster
21
7
looks good, but i've seen people use gce for deploying a plex server (even though a bad idea). There's no preconfig because everyone uses it a different way.
Yea, certain apps wouldn't make sense to be preconfigured, but others would be configured in about the same way each time. NZBGet, Sonarr/Radarr (and their 4k/HDR variants if you use them), NZBHydra, etc. Even if you were changing something slightly, it would be easier to preconfigure your settings for easy deploy and then go in and edit whatever minor settings you need to alter for a given instance.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Development Donations

 

Trending