Use consistent naming for hiera environments (formerly also known as sysdb environments)

This commit is contained in:
ebner committed 2026-07-27 13:54:08 +02:00
1 parent 1507a40f2f
commit 7b3c178eda
6 files changed
+15 -15

No files matched your search

@@ -216,7 +216,7 @@ If you need a token for gitea.psi.ch see [how to get a token](https://linux.psi.
### Download Lists
For more complex configurations you can do "file download lists" which can be prepared e.g. for all sysdb environment and then selected on lower groups or single nodes.
For more complex configurations you can do "file download lists" which can be prepared e.g. for all hiera environment and then selected on lower groups or single nodes.
The list configuration allows to set the default values and an `url-prefix` which is then used for all downloaded files if not specified in more detail for the individual files:
@@ -100,7 +100,7 @@ After the canary is accepted, move the enable setting to
base::enable_alloy: true
```
This enrolls every eligible host in the SysDB environment unless a more
This enrolls every eligible host in the Hiera environment unless a more
specific group, subgroup, or node file overrides the value.
RHEL 7 hosts ignore Alloy enrollment. The current repository supports RHEL 8,
@@ -375,10 +375,10 @@ Admin-managed Hiera data is applied from most specific to least specific:
1. node;
2. subgroup;
3. group;
4. SysDB environment.
4. Hiera environment.
Scalar settings use the first value found, so the most-specific value takes precedence.
The enable and disable collector lists use Hiera’s unique array merge. Values from node, subgroup, group, and SysDB environment levels are combined, with duplicates removed.
The enable and disable collector lists use Hiera’s unique array merge. Values from node, subgroup, group, and Hiera environment levels are combined, with duplicates removed.
The following maps deep-merge across the hierarchy:
@@ -22,7 +22,7 @@ curl --remote-name "$URL"
## Kickstart Image
Also for the Kickstart file you can download a ISO image.
But before you are able to do so the new host needs to be introduced to Sysdb, for the minumun you need the hostname and your Sysdb environment:
But before you are able to do so the new host needs to be introduced to Sysdb, for the minimum you need the hostname and your Hiera environment:
```
FQDN=...
+3 -3
View File
@@ -9,12 +9,12 @@ during value lookup):
- nodes (FQDN)
- subgroup (optional, ``puppet_subgroup`` attribute in sysdb)
- group (``puppet_group`` attribute in sysdb)
- sysdb environments
- Hiera environments
- Puppet server specific
- global
- common
The first four layers can be edited by the admin in the respective hiera git repository. The common layer (default values) and the server specific layer (differences between test and prod) are part of the Puppet code repository. Finally the global layer contains a few configurations which are managed by the Core Linux Group outside of the normal Puppet release process, eg. for license management.
The first four layers can be edited by the admin in the respective Hiera Git repository. The common layer (default values) and the server specific layer (differences between test and prod) are part of the Puppet code repository. Finally the global layer contains a few configurations which are managed by the Core Linux Group outside of the normal Puppet release process, eg. for license management.
The values can be stored as classical YAML values or with [encrypted yaml](https://github.com/TomPoulton/hiera-eyaml) for secrets.
@@ -37,7 +37,7 @@ The `%{variable}` notation is hiera specific.
Hiera data are organized in different repositories. These repositories are located at: https://gitea.psi.ch/puppet
Each __sysdb environment__ has a dedicated hiera repository, called `data-<sydbenv>`, eg. [data-hpc](https://gitea.psi.ch/puppet/data-hpc).
Each __Hiera environment__ has a dedicated hiera repository, called `data-<hiera_env>`, eg. [data-hpc](https://gitea.psi.ch/puppet/data-hpc).
The first 4 levels of the filesystem structure shown before are actually the files inside this kind of repositories.
Any change to the repo will automatically trigger a redeployment of the new version of its content on the puppet master within a few seconds from the push.
+4 -4
View File
@@ -1,6 +1,6 @@
# Hiera / Sysdb Environments
# Hiera Environments
## Add New Hiera / Sysdb Environment
## Add New Hiera Environment
### Introduction
@@ -183,9 +183,9 @@ Full real example:
ssh root@puppet.psi.ch ls /srv/puppet/data/meg/meg.yaml
## Remove Sysdb Environment
## Remove Hiera Environment
To remove a Sysdb environment follwoing steps are required:
To remove a Hiera environment following steps are required:
1. Delete Git repository for the environment (https://gitea.psi.ch/puppet/data-&lt;environment_name&gt;)
2. Remove the environment from bootstrap (https://gitea.psi.ch/lx/bootstrap) by deleting the environment from the `sysdb_environments` list in [`ansible/group_vars/prod.yaml`](https://gitea.psi.ch/lx/bootstrap/src/branch/prod/ansible/group_vars/prod.yaml)
+3 -3
View File
@@ -6,7 +6,7 @@ List of test nodes and the idea behind.
- sysdb-test.psi.ch aka lx-sysdb-test-01.psi.ch as test Sysdb server
- puppet00-test.psi.ch as test Puppet server
On these systems there is currently only the [`lxdev` sysdb environment](https://git.psi.ch/linux-infra/hiera/data-lxdev) available/configured.
On these systems there is currently only the [`lxdev` Hiera environment](https://git.psi.ch/linux-infra/hiera/data-lxdev) available/configured.
To get a node to boot into the test setup, you need a special network boot configuration for grub in the [`network-boot` repo](https://gitea.psi.ch/lx/network-boot).
Best do in `grub.d` a symlink from the full qualified hostname to `use-sysdb-test`.
@@ -23,7 +23,7 @@ The schema with all nodes of the test setup you find in the [Monitoring Environm
## Test RHEL Nodes
This systems are in the [`lxdev` sysdb environment](https://git.psi.ch/linux-infra/hiera/data-lxdev).
This systems are in the [`lxdev` Hiera environment](https://git.psi.ch/linux-infra/hiera/data-lxdev).
Here we have minimal configuration (`noconfig`) to test the default setup and a more extensive configuration (`muchconfig`) to have a test bed with more complex settings.
@@ -48,7 +48,7 @@ Then each of these hosts can monitor the network traffic of the two other hosts.
## Test DMZ Nodes
This system are in the normal production [`lx` sysdb environment](https://git.psi.ch/linux-infra/hiera/data-lx) in the `dmz` puppet group:
This system are in the normal production [`lx` Hiera environment](https://git.psi.ch/linux-infra/hiera/data-lx) in the `dmz` puppet group:
- `lx-test-dmz-01.psi.ch`
- `lx-test-dmz-02.psi.ch`