Step 3. Fill in the variables

This page shows how to use the Settings screen. It is step 3 of an install. It says where each value comes from, so you know what you must type.

The step bar names this step Variables. The screen itself is called Settings. Both names mean the same step.

A variable is one setting that a service needs, for example a port or a database address. A secret is a variable that holds a password, key or token. Secrets are not on this screen. See Passwords are not on this screen.

For every variable and what it does, see the Full list of environment variables.

For the other words used here, see Words you need to know. For the whole install, see Install the system at a customer site.

Before you start

This section lists what you need before you open the Settings screen.

  • An installation with a topology and server addresses. See Step 2. Create an installation.

  • The release to install.

  • The values that only the customer knows. For example, the address of a database that the customer runs.

You see the Settings screen in two places:

  • The Variables step of the + New Installation wizard: step 3 for empty servers, step 5 for servers that already run our product. This is before a bundle exists.

  • The Edit action on the card of an existing installation. It opens the wizard on Start. Click Next until you reach Variables. Use it when the topology changed and new answers are needed.

In both places, nothing you type here reaches a server. A Deploy must follow.

Steps to fill in the Settings screen

This section shows how to fill in the Settings screen.

  1. Look at the top of the screen. The big number says how many settings need you. The line next to it names the first one.

  2. Click Go to it. The screen opens that setting and puts the cursor in its box.

  3. Type the value.

  4. Repeat steps 2 and 3 until the big number is 0.

  5. To look at one setting, type its name in Find a setting. See Filters and search.

  6. Fix every setting that shows a refusal. The refusal says the rule and where the value came from. See When DM refuses a value.

  7. To change a version, click Change in Plan on the image line of a service. See The image line and Plan: versions.

  8. Click Next →. If Next → is blocked, the lines under the button say what is still open. See What Next → checks.

The Grafana Stack release

If the installation has monitoring, you choose a Grafana Stack release in Plan: versions. See The image line and Plan: versions. The list is in the Grafana Stack card. Each item in the list is a release of the monitoring repository, for example 1.7.2.

The release you choose sets the version of every monitoring service and every exporter. This includes Grafana, Prometheus and Alertmanager. You do not choose these versions one by one.

After you choose a release, the card shows the release and how many versions it sets. The number counts only the services that this installation runs. Each exporter card shows its version and the release that sets it. You cannot change this version on the exporter card. To change it, choose another release.

You must choose a release before you click Next →. Until then, the card says "Choose the Grafana Stack release - it sets the version of every monitoring service and exporter."

If the list cannot be read

The card says "Could not read the Grafana Stack releases from GitHub. Try again in 30 seconds." Next → stays blocked. If Deployment Manager cannot be reached, the card says "Could not reach Deployment Manager." Next → stays blocked.

  1. Click Try again.

  2. If the message stays, ask an administrator to check the connection to GitHub.

If a release cannot be used

A release can be missing a version for one service. Then the screen says, for example, "Grafana Stack release 1.7.0 cannot be used: <file> does not set <name>." The list goes back to the release you had before. Choose another release.

An installation saved before this change

An installation that has monitoring and was saved earlier has no release. Its card on the Installations list says "No Grafana Stack release is chosen." Deploy and Download are blocked.

  1. On the installation card, click Edit. If a choice opens, click Open the settings.

  2. Click Next until you reach Variables.

  3. Choose a Grafana Stack release.

  4. Save.

The old monitoring versions are not shown as chosen. You must choose a release.

New Grafana Stack releases in the list

A new release of the monitoring repository appears in the list by itself. You do not change anything in Deployment Manager.

A saved release that does not cover every service

Open an installation, or resume a draft, and the wizard reads the saved release again. This happens when the release does not set a version for every monitoring service and exporter that the installation runs now.

While the wizard reads the release, the card says "Reading release <version>…". Next → is blocked.

If the read fails, the card shows the server’s message and a Try again button. Next → stays blocked. Click Try again.

If the release still does not set a version for a service, the card says "Grafana Stack release <version> does not set a version for <names>." You must choose another release.

What you see on the Settings screen

This section explains the fields on the screen and where their values come from.

How the screen is laid out

The screen shows every setting of every service in the installation.

  • The list on the left names the services. It is grouped by server. Next to each service, a small count says what is open in it. A tick means that nothing is open.

  • The band at the top has the big number, the filters and the search box.

  • The box Shared by every service holds the time zone. See The time zone.

  • Below the box, there is one card for each service. The cards are grouped by server. Click a card to open it.

  • Inside a card, the settings are in groups, for example Network. A group that has only default values says all defaults.

  • The card has a pill. It reads, for example, 1 to fill in, 2 to fix or Nothing to look at.

The numbers always agree. The big number, the count on the active filter and the counts in the list of services all count the same settings.

The filters choose which settings you see. Each filter shows its count. The filters depend on why you are here.

Where you are Filters, in this order

A new installation

Needs input, Changed by you, All

An update or an import from servers

To look at, Needs input, All

Edit on an existing installation

Needs input, Changed by you, All. The screen opens on All.

  • Needs input is a setting with no default and no value. You must fill it in.

  • Changed by you is a setting where you typed a different value.

  • To look at is everything that needs input, plus every setting that the new release or the servers changed.

  • All is every setting.

Type in Find a setting to search. The search looks at the name, the variable and the description. The search ignores the filter. Beside the box, the screen says N matches. If nothing matches, the screen says so and suggests that you try the variable name, for example DB_MAX_POOL_SIZE.

If a group shows N shown, the filter hides the other settings of that group. Click Show the other N in that group to see them. This switches the filter to All.

Go to it opens the service and the group, scrolls to the setting and puts the cursor in its box.

The small words next to a setting

A small word next to a setting says where its value came from. A setting has one word at most. A setting with no word has the default of the service.

Word What it means

from <server>

On an import, this is what the server runs today. The word names the server. If two servers agree, it names both.

you changed it

You typed a value that is not the one the screen opened with.

from the topology

DM worked the value out from the servers and how they connect, for example a database address.

not found on the server

On an import, DM could not see the value on the server. Type it, or read the servers again. The setting also needs input.

Needs input

The setting has no default. You must fill it in.

When DM refuses a value

A refused value stays on the screen. The refusal is under the setting itself. It has up to three parts:

  • the rule, for example "Must be between 1 and 200";

  • the reason, when DM knows it;

  • where the value came from, for example "This value came from the server’s shared `.env`".

A refusal can have a button, for example Use 200 (the most allowed). The button types the nearest value that the rule allows.

Two settings can depend on each other. For example, the idle connections must not be more than the pool size. The refusal then sits on the setting that you must fix. The other setting says "Fine as it is".

You cannot go to the next step while a refusal is open.

Host and port side by side

If a setting is an address and its port is also a setting, the screen shows them as one control. There is a box for the host, a colon, and a box for the port. This happens when you answer the host yourself, for example the address of the customer’s own database. The default port may not fit the customer’s site, so the screen shows it.

The time zone

The Time zone and the Database time zone are in the box Shared by every service. On an import, DM takes the time zone from the servers. If the servers do not agree, the field shows the most common value with the word from <server>. A note names the other value.

Passwords are not on this screen

The screen says: "Passwords are asked once, at Install, typed hidden, and never stored. They are not on this screen." You answer them at deploy. See Secrets: three ways a row is answered.

The image line and Plan: versions

Each card has an image line, for example "Image v7.1.3-b0.0.16 from release 7.1.3". It shows the version and where the version came from. You cannot change the version on the card.

If no version is picked, the line says "No image version picked yet." The card pill says No image tag. If the registry has no tags for the image, the pill says Registry has no tags.

To change a version, click Change in Plan. The dialog Plan: versions opens. It has the list Fill versions from a release and a version list for each service. A release sets the image version of every service that it includes. Pick a version by hand for any other service. Click Done to close it. The image lines then show what you picked.

In the list Fill versions from a release, a hot-fix release is named by the build it patched. The name is written like the image tag, for example v7.1.3-b0.0.2. This tells apart two hot-fixes of one service on the same day. If a hot-fix patches more than one service, the list shows the first two services with their tags, then +N for the rest. An older release that has no build data shows the word hotfix.

The version list of one service in Plan: versions

In Plan: versions, each service has a list Image tag. The first entry is Select tag…. The list has these groups:

Group in the list What it holds

Recommended

The version that the newest release or hot-fix names for this service. The list never selects it for you.

Release

Release builds, newest first. Examples: version numbers such as v7.1.3-b0.0.16, and names that start with release_ or hotfix_.

Pre-release

Versions with alpha, beta or rc in the name. A pre-release is never the first one offered.

Branch and customer builds

Every other build: builds of a branch, a ticket or a customer.

The list does not offer a moving tag: latest, stable, prod, production, dev, develop, snapshot, main, master, nightly or edge. A moving tag points to another build over time, and the bundle must name one exact build. If the registry has only moving tags, the card says: "The registry has no pinned build of <service>, only <tags>. Publish a release build, or leave <service> out of this installation."

DM reads the list of versions from the registry and keeps it for up to 30 minutes. When the list is older than 5 minutes, a line under the list says "Versions as of HH:MM" and shows the button Refresh. Press Refresh to ask the registry again. A list that is less than 5 minutes old shows no line.

Each service has a lowest version. The configuration files of the service are written for that version. If the list holds older versions, a line says: "Versions older than <version> are greyed out: this service’s configuration files are written for <version>, and the bundle will not generate with an older one." An older version is greyed out and ends with "- older than <version>". You cannot pick it. A version that an older save already holds stays selected and shown.

A version may hold letters, digits, dot, dash and underscore. It must start with a letter, a digit or an underscore. It can have up to 128 characters. It cannot have spaces, quotes or line breaks. If you send another value, DM refuses it with the code image_tag_malformed and the message "'<service>' has an image version that is not a valid tag". The hint gives the examples 1.7.0 and 26.2.1.2345.

What Next → checks

If something is open, Next → is blocked. A line above it says what to do first, for example "Fill in or fix 3 settings and pick 10 image tags first:". Under the line, the screen lists the first 3 open items. Each item has Go to it or Change in Plan. If there are more, click Show all.

If you edit an existing installation, Next → also asks DM whether the bundle would build. The screen says "Checking whether the bundle would build…​". DM checks the saved installation.

  • If DM finds a problem with a setting, the refusal is on that setting.

  • If DM finds another problem, the screen lists it under the button. A problem with a version has Change in Plan.

  • The line says "The bundle check found N problems. Fix them, then press Next again."

  • A check that DM could not run is listed as "Not checked". It does not block you.

DM checks the saved installation, not the screen. If you changed a setting or a version since you opened it, the problem about that change does not block you. A notice says: "Checked against the saved settings; your change to <name> is checked again before install."

If DM cannot make the check, the screen says "DM could not check the whole bundle now; it is checked again before install." You can go on. If a check is already running, the screen says so. Press Next → again in a moment.

A new installation and an import have no saved copy yet. For them, Next → makes the checks on the screen only.

Where a value comes from

This section lists the three sources of a value. For a standard install, most fields need no typing. Only one of the three sources is you:

Source What it means

The service’s own default

The value the service ships with. It comes from the service contract. The screen shows it without a mark. The screen marks a field only when its value is different from the shipped value.

Derived from the topology

Calculated from the servers a service runs on and how they connect. Examples: a database host, a cluster member list, a service’s own address. The screen shows a sentence instead of a box. DM calculates the value again each time it generates the bundle. To type your own value, press Set it by hand. See Fields that DM fills in: Set it by hand.

Typed by the operator

Entered by hand. There are two reasons. Nothing else can supply it (for example, the address of the customer’s own database). Or the default was changed on purpose for this site.

A service that the customer already runs is an example of the third case, for example their own database or their own ClickHouse. This tool installs nothing on that machine. So the topology cannot calculate its address. The field is required, and it has no default.

Fields that DM fills in: Set it by hand

Some fields have no box. They show a sentence instead. The default of the service holds a ${…​} reference, and DM works out the value from the plan. The sentence is one of these:

Sentence on the screen What it means

"DM fills this in: `<value>`"

DM writes this value. If the service runs on more than one server, the sentence ends with "on every server".

"DM fills this in per server:"

The value is not the same on every server. Each line shows a server and its value.

"DM leaves this empty with this plan."

The plan gives an empty value.

"DM fills this in from the plan. Working it out…"

DM is still calculating. Wait a moment.

"DM fills this in from the plan when it builds the bundle."

DM cannot show the value yet. It writes the value when you create the bundle.

To write your own value, press Set it by hand under the sentence. The field becomes a normal box. The box starts with the value that DM would have written. If DM did not know the value, the box is empty. Type the new value. The field then has the mark you changed it. DM does not calculate this value any more. It writes what you typed.

The button Fill from topology

A few fields have the button Fill from topology next to the label. At the moment this is CORS_ALLOWED_ORIGINS of the FT Configs Service. The button builds the web addresses of the UI from the servers where the UI runs. It writes http and https addresses with the ports, separated by commas.

The button gives a suggestion. DM never fills the box by itself. Customers often open the UI with a public name or a load balancer, and the topology does not know that name. Check the addresses and correct them if people use another name. The value that the button writes counts as your own. The field gets the mark you changed it.

If the button has nothing to write, a line under the box says why:

  • "Nothing to fill: <service> is not part of this installation, so there is no address to build from. Type the value yourself."

  • "Nothing to fill yet: <service> runs on <servers>, which has no address. Enter it on step 2, then press this again."

The band for settings that still use an old address

After you change a server address in Plan, a setting can still hold the old address. This happens when the setting holds an address that Plan no longer has. Then a band above the cards says, for example, "2 settings still use `10.0.0.5`". The band lists each setting with the old address and the new address.

  • Press Switch all N to put the value of DM into every setting of the band. DM does not save yet. You save with the normal save of the screen. DM does not switch a setting that you changed after the band appeared. The note on that row says "You changed it; not switched."

  • Press Keep on one row to keep the old address in that setting on purpose. DM stores this answer and does not offer the setting again. If the line says "The value changed; check it again.", the value changed in the meantime. If it says "Not kept: try again.", press Keep again.

The customer’s database on several servers

This section explains the database fields when the topology lists several customer database servers. See the customer’s database on several servers.

The DB_HOST card has a new label: "Address of <connect id> (our services connect here)". The <connect id> is the id of the server that your services use, for example db-2. Type the address of that server in this card. DB_HOST is still the only address that your services use.

Directly below the card, the section "Other database servers - optional" has one box for each other server. Each box is named "<id> (<role>)". The help text reads: "Used only to check the server is reachable before installing. Our services connect to <connect id> only."

A box has three states:

State Text

Empty

"Not checked - no address given."

Same value as DB_HOST

"Same address as DB_HOST - checked as the connect server."

Filled with another address

The tool checks this address before the install. See the check before the install.

A server that you monitor has no box. Its place shows: "Checked at its server address from the Servers step". The tool uses the address of its host.

If the server that your services connect to is monitored, and DB_HOST is not the address of its host, the screen shows: "DB_HOST differs from this server’s address <address> - that is fine if our services reach the database another way." The line does not stop you.

An address must be a host name or an IP address. If the address is wrong, the box shows: "Enter a host name or IP address (letters, digits, dots and dashes)."

If the topology changed while you edited, the tool refuses the save and shows: "The topology changed while you were editing - reload to see which server our services now connect to."

If the topology changed after you saved the installation, the screen shows one of these lines. The line is followed by "Saving the installation clears these notes."

What changed Line

A stored address belongs to a server that the topology no longer lists

"Address for db-2 is no longer used - the topology no longer lists that server."

The server that your services connect to is another one now

"The topology now connects to db-2, not db-1 - check DB_HOST."

The topology does not name the customer’s database servers now

"The topology no longer names the customer’s database servers - DB_HOST is the only database address now."

The database vendor changed

"The topology now uses Oracle servers, not MySQL - check DB_HOST; the other addresses entered for MySQL are no longer used."

The topology names the customer’s database servers now

"The topology now names the customer’s database servers and our services connect to db-1 - check DB_HOST."

A stored address belongs to a server that is now monitored

"The address typed for db-2 is no longer used - db-2 is now monitored, so it is checked at its server address."

The lines show the server ids, not the stored addresses. In these examples, db-1 and db-2 stand for the real ids.

Secrets: three ways a row is answered

This section explains how the Deploy panel and deploy.sh ask for secrets. The Settings screen does not ask for them.

The Deploy panel asks for each secret once per name. Two services in the same installation can use a credential with the same name. Then they share one answer. This is on purpose. If they really need two different credentials, fix it in the contract. The panel does not ask twice.

A secret’s row offers exactly one of three answers. The service’s own contract decides which one. The screen never guesses from the name.

What the row offers Meaning

Generate

This tool creates the credential itself. Press Enter (in the installer) or the Generate control (on screen). You get a long random value. Most install-time secrets are this kind.

Use shipped value

The value this credential already has. The contract publishes it. An example is the FT ACS web-service password built into that image. The value is shown in clear text. It is never pre-filled. You can keep it, or replace it if it was changed somewhere else. It is never generated. A random value for an account this tool does not own would lock that account out.

Typed

A value that belongs to something outside this install. Most often it is a database or an SMTP account that the customer runs. Nothing is offered or generated here. A generated value would give an install that fails to sign in.

When the installer finishes its questions, it writes a credentials file next to itself. The file lists every password it set and what each one is for.

  • The file is never part of the bundle.

  • This tool does not store it.

  • After you delete that file, most of those values exist nowhere else.

For this reason, the same step in the Deploy panel does not close until you copy every generated value. If the browser cannot copy, write each value down, then click I wrote them down myself.

Shared values and values for one service

This section explains how values are split between files. An installation has a root environment file plus one file for each service.

These values stay in the shared root file:

  • a value that every container needs;

  • a value that more than one service reads under the same name.

A value that only one service reads goes into that service’s own file.

On screen, this means:

  • A field marked "shared" affects every container on that server when you change it.

  • A field for one service affects only that service.

The installation’s .env editor shows this split. It lists the root file and each service’s own file separately, each by its own name.

How a value is checked

This section explains how the screen checks a value. Most fields have only a basic type check. When a field has a rule, the rule comes from one of two places:

  • Inferred from the field’s type and name. A *_PORT field is checked as a port number. A name that looks like an address is checked as a host or IP. A name that looks like a URL is checked as a URL. There are more cases like these.

  • Set by the service that owns the field. This can be a minimum and maximum, a pattern the value must match, or a comparison with another field of the same service.

Secrets have one more rule: a minimum length. The Deploy panel shows the minimum under the box before you type. It refuses a shorter value. The installer uses the same minimum in a terminal. Two services can ask for the same secret with different minimums. Then the longer one applies.

A refused value stays on screen. The reason is printed next to the field, not in a general error banner. So you always see which field to fix.

What picking a new version changes

This section explains the version comparison. When you choose a release on this screen, the screen compares two versions:

  • the version you install;

  • the version this installation was last generated from.

Before anything is saved, the screen shows what changed:

Group What it means

New variables

This version reads these for the first time. The required ones are marked. Generating refuses if a required one is empty. That refusal has its own sentence. It is separate from the usual "a value is missing" refusal, because nothing here is out of date. It is new.

Now required

These were optional on the version this installation runs. They are not optional any more.

You supply these now

The customer supplies these now, not us.

Fewer values allowed

A value that was allowed on the previous version may not be allowed any more.

Default changed

Shown only when this installation never had its own value for the field. Only then does the new default reach the service. A field that this installation already answered does not change.

No longer used

This version does not read these any more. Nothing is dropped. The value is kept and shown. You decide what to do with it.

A variable can move from one service to another between versions. Then it shows as gone from the first service and new on the second. It never shows as unchanged.

In two cases the screen says what happened and does not guess:

  • This installation has no recorded previous contract. There is nothing to compare with. The comparison works from this installation’s next deploy onward.

  • A service’s contract at the picked version could not be read. The screen names its variables as not compared.

For the whole upgrade flow, see Update an existing installation.

When a version needs another service

This section covers a service that moves its configuration to another service.

At some version, a service can stop keeping its own configuration files. Another service then keeps them. For example, ftacs did this at version 6.5.2. It moved its configuration into ft-configs-service. This change does not show as a variable. It shows as a service that the topology must include.

If that other service is not in this installation’s topology, the screen tells you before you save. It says:

  • which service stopped keeping its own files;

  • at which version;

  • which service keeps them now.

It also gives you a link to the topology, so you can add that service. Generating a bundle refuses for the same reason. Nothing is built and nothing is sent to any server. This stays true until the topology includes that service.

The screen also names the files that the new version no longer reads. They are not removed from a server that already has them. If someone edits one of them, nothing reads the change.

One value per server

This section covers a service that runs on more than one server.

Usually one value goes to every server that runs the service. Sometimes two servers need different values. For example, two servers need extra HTTP ports and the other servers do not. For this case, you can give a setting one value per server.

When you see the option

You see the option when both of these are true:

  • The service runs on two or more servers in the topology.

  • The setting may differ from server to server.

Under such a setting you see the button One value per server. A service on one server never shows it. A setting that must stay the same on all servers never shows it.

On an import, a setting that the servers already hold with different values opens as one value per server at once. The help text says: "Differs per server, so one value per server."

How to set it

  1. Open the service card.

  2. Find the setting.

  3. Click One value per server. The setting becomes a table. Each server has one row. Each row starts with the value for all servers.

  4. Type the value in the row of each server that needs another value.

Each row has its own box. The box is named "<setting> on <server>". The same rules apply to a row and to a value for all servers. If a value is not valid, the refusal shows on that row. You cannot go to the next step until you fix it.

A value for one server cannot contain ${…​}. A value is also refused if another value refers to this setting with ${…​}.

A value for one server is refused in these cases. The refusal shows on the row, in these words:

Message on the row Cause What you do

"this server does not run <service>."

The service does not run on that server.

Remove the value of that server.

"<service> runs on one server only, so there is nothing for a per-host value to differ from."

The service runs on one server. A value for all servers is enough.

Remove the per-server value. Type the value for all servers.

"cannot differ per host: it is one value for the whole installation."

The setting is one value for every server, for example the time zone.

Remove the per-server value.

"this value is given twice."

The same setting has two values for the same server.

Remove one of the two values.

DM also refuses a server that is not part of the installation. The message is "this server is not part of this installation."

DM saves at most 1000 per-server values for one installation. If you save more, the screen says "There are <n> per-server values; at most 1000 can be saved. Remove some, then save again." The code is host_overrides_too_many. The limit is far above what a real installation needs: servers multiplied by the settings that can differ.

When DM refuses a per-server value, the row shows the text "On <server>: <message>". To remove the value of one server, make its row empty. Or type the value for all servers in that row. DM then deletes only the value of that server. The value for all servers stays. For the first four refusals in the table, this is the fix. For a value that is not valid, type a correct value instead.

If a server stops running the service, its own values are removed. This happens when you change the topology. The card tells you once which values were removed.

For INSTANCE_NAME, the servers keep the names they already use. The button Use <address> (worked out) fills one row with the name that DM works out from that server’s address.

What the review step shows

On the review step, "Values you set" lists a setting with its own values per server. The servers are grouped by value. For example:

HTTP_PORTS
  acs-1, acs-2: 8080,8181,8282
  other hosts:  8080,8081

A setting that you changed only for some servers is also listed and counted. The servers list shows, for each server with its own values, a line such as 3 values differ on this host.

The bundle, the download, the SSH deploy and an update of an installation all use these values. Each server gets its own .env file with its own value. The other servers keep the value for all servers.

The command line tool that turns a file into a bundle does not support values for one server.

Which settings cannot differ

A setting cannot differ from server to server in these cases:

  • It is a secret. A secret has its own rules. See Secrets: three ways a row is answered.

  • This tool computes it, for example an address of another service or a host name.

  • Another service or another value reads it. That reader sees only the value for all servers.

  • The service checks need it. After an install, this tool reads the value for all servers to open the service. This applies to the port of the health check and to the settings that the post-install checks read.

  • It is a setting for all services, for example the time zone.

  • Several services use the same variable name. These variables stay the same everywhere.

  • The service keeps its files in another service, and that other service reads the variable.

For these settings the button does not appear. If you send such a value through the API, the request is refused and the screen shows the reason.

The server .env editor

You can edit the .env file of one server over SSH. Read the server .env editor for this editor.

If a variable can differ and its service runs on two or more servers, the edit is saved as a value for that one server only. The other servers do not change. If you type the value for all servers, the value for this server is removed.

For any other variable, the edit is saved as the value for all servers, as before. The next deploy then sends it to every server.

The editor shows the value that this server really has. If the server has its own value, the editor shows that value and does not report a difference.

Example: ftacs on four servers

The topology has four servers: acs-1, acs-2, qoe-1 and qoe-2. All four run ftacs. Only acs-1 and acs-2 need more HTTP ports.

  1. Open the ftacs card.

  2. Fill in HTTP_PORTS for all servers.

  3. Click One value per server under HTTP_PORTS.

  4. Type the longer list in the row of acs-1.

  5. Type the same list in the row of acs-2.

  6. Leave the rows of qoe-1 and qoe-2 as they are. They keep the value for all servers.

  7. Repeat the steps for each other variable that must differ on acs-1 and acs-2.

  8. Go to the review step.

The review step shows the longer list for acs-1, acs-2, and the value for all servers for other hosts. The .env of acs-1 and acs-2 has the longer list. The .env of qoe-1 and qoe-2 has the value for all servers.

The tool writes exactly the values that you give. It does not check that a port list matches the published ports of the service. Check that the values fit the service before you deploy.

The strip Read from your servers on an import

On an import, a strip with the title Read from your servers is above the cards of the Settings screen. It has these tiles. The import page has more about the import. See the page about importing an installation.

Tile What it shows

Values kept

How many values DM read from your servers and keeps. Each service with kept values has a button. The button goes to that service. DM reads at most 500 values from one server. If a server has more, the tile shows 500+ and the line "(more on the servers)". The other values stay on the servers.

Different per server

How many settings have a different value on different servers. The tile appears only when there is such a setting. Each setting has a button. See One value per server.

Passwords

How many passwords DM found. The line says "Stay on the servers. Not asked again." The tile appears only when DM knows the number.

A server-name box left empty

Some boxes ask for the address of a server, for example SUPERSET_DOMAIN. If you leave the box empty, the tool uses the address of the server where the service runs. An empty box is an answer. It is not a missing value.

The empty box shows that address in grey. Under the box, a line starts with Left empty: and names the server. Examples:

  • Left empty: acs1.customer.net, the address of acs1. The service runs on one server.

  • Left empty: each server uses its own address. The service runs on several servers. The line lists the addresses.

  • Left empty: the address of acs1, entered on step 2. You did not type that server’s address yet.

Type a value only if the service must use another address. A typed value does not follow the topology if you change an address later.

A port used twice on one server

A host port is a port that a container opens on the server. One server cannot open the same port for two services. The tool refuses this in four places.

  • Save: when you save a change to an installation.

  • Making the bundle: when you press ↓ Download.

  • Deploy: the panel shows Port <number> is used twice on <server> and only the button Close. A retry would meet the same refusal.

  • The preflight check on the server: it reads the port variables from the server’s .env file and fails before it checks if the port is busy.

The message names the server, the port and both services. For example: "On qoe-1, port 8081 is used twice: web WEB_PORT and web WEB_ADMIN_PORT. Click Edit, go to the Variables step and give one of them another port."

At Save and at Download, the Variables step marks the box of the variable that you can change. The reason is shown next to the box.

To fix it:

  1. Open the Variables step.

  2. Find the marked box.

  3. Type another port.

  4. Save again, or press ↓ Download again.

If a port is fixed in a service’s own config file, the tool does not read that file. The message then tells you to check the file. If you cannot change either port, place one of the services on another server.

Re-read servers

This button is on an installation that you brought in from a server with DM reads the servers. See Bring an existing installation under Deployment Manager. You need write access to the installation.

  1. Press Re-read servers. The dialog says Reading the servers….

  2. Read the result. Each server has its own block. It shows how many changes and how many are unchanged.

  3. Read the badge of each password. New means the password is now found. Moved means it is now kept in another place. Not needed means it is no longer used. Asked at install means the installer asks for it. This one has no tick box.

  4. Tick the changes to save.

  5. Press Apply. The button shows the count, for example Apply 2 changes.

Only names are shown, never values. If the servers changed nothing, the dialog says Nothing to change. If applying removes administrator consent, a warning says how many consents become void. An administrator must consent again.

If the dialog shows an error, press Try again. If the servers or the installation changed while you looked at the list, the dialog says so. Press Re-read again to make a new list. Press Close to leave.

Good to know about saving variables

This section explains where your values go, and when they reach a server.

Values that go into a mounted file

This section is about values that go into a configuration file. Most values reach a container through an environment file. A few services read a credential from a mounted configuration file instead. This is a JSON or XML file. It does not understand ${VARIABLE} substitution like an environment file does. You still answer these values on the Settings screen in the same way. The bundle writes each value into the right file. You do not fill in anything extra.

What saving a variable does, and does not do

This section explains when a change reaches a server.

When you save on the Settings screen, this tool updates what it stores. The save does not change anything on a customer’s server. Nothing changes there until you run a Deploy. The screen tells you this. So you can change an answer, come back later and change it again. A live site is not touched until you deploy.

There is a second way to change a value: edit the environment file directly on a server. That writes to the server at once. The change works only after the affected containers restart. This is not the same as Variables. You cannot use one in place of the other. It is part of the installation card. It exists only when servers are bound and reachable.

If something goes wrong

This section explains why the tool does not generate a password.

Why a password is refused, not generated

This section lists why a secret is not generated. There are five reasons. The reason tells you what to type.

A common surprise: the same kind of installation generates a password on one topology and refuses it on another. The reason is the database. One topology says the database is the customer’s own. The other has a database that this tool installs.

The installer prints the wording in the second column before it asks for the value. The Deploy panel does not print the reason. For a secret that cannot be generated, the panel shows a box with no Generate control.

Reason What deploy.sh prints What it means What to do

external

"the value belongs to the site, not to this install — a system the customer runs themselves, an account the site keeps for one service, such as the Keycloak database account, or a key issued by a third party, such as the Gemini API key; nothing here invents it, so enter what that system already has"

A system outside this install owns the value. It can be a service that the customer runs, or a contract that sets generate: false. A value generated here gives an install that cannot sign in. The prompt reads "[no default - this value is not ours to invent]". Enter alone does not help: the installer warns "There is nothing here that could stand in for it." and asks again.

Ask the customer, or the administrator of that system, for the value it already uses. Type it.

offered

"the value it already has is published by the contract and offered above"

The contract publishes the value this credential already has. This install does not create it. The Deploy panel shows the button Use shipped value. If you leave the box empty, the panel says "Needed before the deploy can start - press Use shipped value, or type your own."

Press Use shipped value, or type a new value if it was changed at the source.

optional

"nothing here demands it; leaving it empty is a real answer"

Nothing requires a value. An invented value would turn on a feature and then fail to start it.

Leave it empty unless you want the feature it controls.

undeclared

"no service in this installation declares it"

No service in this installation reads the value.

Nothing to fill in. The row should not need an answer.

unstated

"it belongs to something outside this install"

The contract says DM must not generate this value, but it does not say why.

Ask the team that owns the service where the value comes from. Type it.

For other problems, see When something goes wrong.

Monitoring the customer’s MySQL

This section is for one case. The topology uses the customer’s own MySQL. A MySQL exporter (exp-mysql) runs on the customer’s database server. See Monitor this server.

The exporter reads MySQL with a read-only account. It can read every table, including the password hashes in mysql.user - keep its password secret. The name of the account is the value of MYSQL_EXPORTER_USER. It is required, and the default is exporter. A name can have letters, digits and the underscore only. It can have at most 32 characters. The customer’s database does not have this account yet. This tool does not create it there. You create it once.

The exporter reads MySQL on the same server. It works only where MySQL runs on that server. If MySQL runs on another server, set MYSQL_EXPORTER_HOST to the database address.

Where to find the SQL

Install steps shows the SQL for you, with a Copy button on each block. It does this on every tab with a server, and on the Windows path too. The first server of the installation that runs exp-mysql shows the step "Create the exporter account on the customer’s primary database". Every other such server shows the step "Check the exporter account reached this server". The variables step shows this help under MYSQL_EXPORTER_PASSWORD: "Create this account on the customer’s primary database first - Install steps shows the SQL."

If the name in MYSQL_EXPORTER_USER has a character that is not allowed, the step shows no SQL. It tells you to fix the name on the variables step.

Steps to create the exporter account

  1. Connect to the PRIMARY database server only.

  2. Check for a leftover account. ALTER USER in step 3 would change its password. Replace exporter with the value of MYSQL_EXPORTER_USER.

    SELECT user, host FROM mysql.user WHERE user='exporter';
  3. Choose the host part. See the next section. Run these statements. Replace <password> with the password you chose.

    CREATE USER IF NOT EXISTS 'exporter'@'127.0.0.1' IDENTIFIED BY '<password>' WITH MAX_USER_CONNECTIONS 3;
    ALTER USER 'exporter'@'127.0.0.1' IDENTIFIED BY '<password>' WITH MAX_USER_CONNECTIONS 3;
    GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'127.0.0.1';
    FLUSH PRIVILEGES;
  4. On each replica, run only the SELECT from step 2. This confirms that the account arrived by replication.

  5. Open the installation’s variables. Set MYSQL_EXPORTER_PASSWORD to the password from step 3.

  6. Set MYSQL_EXPORTER_PORT_TARGET only if MySQL does not listen on port 3306.

The exporter needs MySQL 5.7.6 or newer.

Replicas and the exporter account

Never create the account on a replica. If the SELECT returns no row on a replica, a replication filter probably excludes the mysql schema. Ask the customer’s DBA.

Which host to use: 127.0.0.1 or %

Use 'exporter'@'127.0.0.1' when MySQL is installed directly on the server. This is the recommended choice. It is narrower and safer. Use it in all three statements: CREATE USER, ALTER USER and GRANT.

Use 'exporter'@'%' when the customer’s MySQL runs in Docker. The exporter connects from the Docker bridge gateway, so % is needed. '%' lets the account sign in from any address; if you can, use the Docker bridge range instead, for example '172.17.%'. Install steps shows both variants, the recommended one first.