Skip to content

v1.6.0

Choose a tag to compare

@stevius10 stevius10 released this 30 Nov 13:18
· 7 commits to main since this release
e1c4424

Proxmox-Gitops


Proxmox-GitOps



Configuration

cd Proxmox-GitOps
chmod +x local/run.sh

Edit the configuration according to Proxmox-GitOps#deployment.

Configure Credentials

jq '
  .proxmox.host = "192.168.178.100" |
  .credentials.user = "root@pam" |
  .credentials.password = "GITOPS.PM" |
  .user.login = "steven" |
  .user.password = "gitops.pm"
' local/config.json > local/config.local.json

Environment Configuration

Ensure the centralized environment configuration globals.json:

{
  "LIBS_BROKER_ENDPOINT": "mqtt://192.168.178.109:1883",
  "LIBS_BRIDGE_ADAPTER": "zstack",
  "LIBS_BRIDGE_SERIAL": "/dev/serial/by-id/"
}

Deployment

  • If auto.deploy (./local/config.json or ./local/config.local.json) is set to true, ./local/run.sh will deploy Proxmox-GitOps to Proxmox VE as config container, and subsequently deploy the container libraries (/libs) from within the config container itself.

    • Adjust auto.stage (./local/config.json or ./local/config.local.json) to override the default deployment stage for automatic deployment.
  • Otherwise, the container deployment must be triggered manually by accepting the Pull Request, either via http://localhost:8080/main/config or directly from the config container for the respective container library.


./local/run.sh [-h|--help]

 ./run.sh [OPTIONS] [lib] [-h|--help]
     -i, --init <bool>
     -l, --log-level <level>
     -s, --suffixes <list>
     -d, --debug
     -r, --restart

  Examples:
    ./run.sh --debug --restart broker
    ./run.sh -s "customize" -l error

Changes

Breaking Change: General configuration structure (./local/config.json or ./local/config.local.json):

{
  "proxmox": {
    "host": "(set)",
    "node": "(adjust)",
    "gateway": "(adjust)",
    "mask": "(adjust)",
    "interface": "(adjust)",
    "bridge": "(adjust)",
    "storage": "(adjust)",
    "template": "(adjust)"
  },

  "credentials": {
    "user": "(set)",
    "password": "(set)"
  },

  "user": {
    "login": "(set)",
    "password": "(set)"
  },

  "auto": {
    "deploy": "(adjust)",
    "stage": "(adjust)"
  },

  "settings": {
    "locale": "(adjust)", 
    "timezone": "(adjust)"
  }
}