Skip to content

Override settings for one hotel

One folder per hotel, named after its address prefix (IBC_SITE_NAME, which the wizard sets from the subdomain): ariyana.castis.io → sites/ariyana/.

Most hotels need no folder at all. Add one only when a hotel must differ from setup-agent/defaults.env, e.g. a feature switched on for a pilot hotel.

sites/ariyana/site.env
  IBC_GUEST_CHAT_ENABLED='true'
(IBC_GUEST_CHAT_ENABLED is the worked example from end-to-end.md Part F4, not a real setting yet.)

Merge it into the branch the hotel follows, and only that hotel's Argo CD applies it, within a few minutes. No login to the hotel is needed.

Choosing the products a hotel gets

Normally you don't set this here. The approval token Castis creates carries the products (modules), the license is signed with them, and the install writes IBC_MODULES into the hotel's /etc/ibc/site.env. That value wins over this folder, so a sites/ entry has no effect on a hotel whose license sets modules. Use sites/ only for labs and hotels installed before the license carried modules:

sites/ariyana/site.env
  IBC_MODULES='playout'          # names from setup-agent/modules.txt, comma-separated; default: all

What each module adds, how to add a product such as spatio, and what happens to apps and data when a module is removed: Site modules.

Rules

  • Non-secret values only. This is git, visible to everyone with repo access. Secrets stay on the machine (/etc/ibc/site.env), or use a derived ${IBC_GEN_…} secret (end-to-end.md Part F5).
  • Only variables that manifests use. These files are read by gitops/render.sh, i.e. by Argo CD. They don't change what the wizard or prerequisite.sh use (domain, acme-dns host, edge API URL).
  • Don't set values the machine owns. Anything in the hotel's /etc/ibc/site.env (domain, org, owner, passwords, license, acme-dns login) wins over this file, so setting it here has no effect. See site-variables.md for who owns each variable.
  • Folder names are lowercase letters, digits and dashes, exactly the hotel's address prefix. _example/ is never used by a hotel, because a name can't start with _.

Priority (lowest → highest)

  1. setup-agent/defaults.env: git, all hotels
  2. sites/<hotel>/site.env: git, this hotel
  3. The hotel's own values: Secret argocd/ibc-site (copied from its /etc/ibc/site.env at install)