Commit graph

14 commits

Author SHA1 Message Date
8c4db4988a inventory: rename zzz-inventory.config to zzz-inventory.yml
Some checks failed
Differential yamllint / yamllint-job (push) Successful in 9s
yamllint / yamllint (push) Failing after 33s
Every run that points -i at the inventory directory (e.g. the copr
pools.yaml.expand.sh helper) emitted:

[WARNING]: Failed to parse inventory with 'ini' plugin: Failed to parse inventory: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to provide a port.

Failed to parse inventory with 'ini' plugin.

<<< caused by >>>

Failed to parse inventory: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to provide a port.
Origin: /home/praiskup/projects/ansible-fedora/inventory/zzz-inventory.config

[WARNING]: Unable to parse /home/praiskup/projects/ansible-fedora/inventory/zzz-inventory.config as an inventory source

and git init in the helper printed:

hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name

The 'auto' inventory plugin only dispatches files ending in .yml/.yaml
to the plugin named inside them.  With the '.config' extension the
constructed plugin config was never picked up; on ansible-core >= 2.19
the ini plugin tries to parse it instead and fails on the 'plugin:'
line as shown above.

After the rename 'auto' hands the file over to the constructed plugin
as originally intended (the zzz- prefix still sorts it last).  Content
was adjusted to pass yamllint (document start, lowercase false,
2-space indentation) with no semantic changes; expanded pools.yaml
output verified byte-identical.

Also init the expand script's output repo with 'main' as the initial
branch to silence the git defaultBranchName advice.

Assisted-by: Claude Code (GLM 5.3, rits/zai-org/glm-5-3)
2026-10-30 09:21:32 +00:00
6c85fda0c9 Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2025-07-03 20:05:02 +02:00
6c343e9906 inventory: add some groups for guests and hosts
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-15 11:58:40 -07:00
be13248f7c inventory: be more concise
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-15 11:08:06 -07:00
df45f66004 inventory: also make stg be in iad2 group
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-15 11:05:40 -07:00
0ec3faf574 should be == instead of =
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-15 11:03:52 -07:00
9f5cc4eb8b inventory: change how iad domain is constructed.
We can't use things that are not in the facts cache for this.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-15 11:01:42 -07:00
6d19254a96 inventory: see if we can make a constructed iad2 group
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-15 10:53:05 -07:00
523bf8ee73 inventory: - is not to be used in group names, use _ instead
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:30:13 -07:00
7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00
c626bcba85 Revert "inventory: drop the constructed inventory for now until we are using it for something specific."
This reverts commit 65410b9d5d.
2019-05-20 16:05:59 +00:00
65410b9d5d inventory: drop the constructed inventory for now until we are using it for something specific.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-14 00:19:40 +00:00
Rick Elrod
50c8cc82fd try a different variable just for grins
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-08-02 04:42:51 +00:00
f016c7f71f Try moving this to the end of sorting 2018-08-02 04:40:44 +00:00
Renamed from inventory/inventory.config (Browse further)