create-configuration.sh¶
Creates the configuration.json file for the TAPPaaS system by querying the running cluster.
Usage¶
Parameters¶
| Parameter | Description | Example |
|---|---|---|
upstreamGit | Git URL of the upstream repository | github.com/TAPPaaS/TAPPaaS |
branch | Branch to use for updates | main |
domain | Primary domain for TAPPaaS | mytappaas.dev |
email | Admin email for SSL and notifications | [email protected] |
updateSchedule | Update frequency | monthly, weekly, daily, none |
weekday | (Optional) Day of week for updates, default: Thursday | Wednesday |
hour | (Optional) Hour of day 0-23, default: 2 | 3 |
Examples¶
create-configuration.sh github.com/TAPPaaS/TAPPaaS main mytappaas.dev [email protected] monthly
create-configuration.sh github.com/TAPPaaS/TAPPaaS main mytappaas.dev [email protected] weekly Wednesday 3
What it does¶
- Queries Proxmox cluster for all nodes via
pvesh - Lists all VMs and their IP addresses
- Creates
/home/tappaas/config/configuration.jsonwith a globalupdateSchedule
Generated configuration includes¶
repositoriesarray (initialized with the upstream repo and branch from arguments),domain,email,updateSchedule(in thetappaassection)nodesarray with hostname and IP for each node
See Also¶
- Update Scheduler - Automated update system
- copy-update-json.sh - Module JSON configuration