mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-07 18:05:09 +00:00
Add --vars support to inventory creation, implement deep JSON overrides for host_vars, and update CI workflow to pass MASK_CREDENTIALS_IN_LOGS=false.
Includes: - New apply_vars_overrides() with deep merge logic - New --vars CLI argument in cli/create/inventory.py - Added unit tests for vars handling in test_inventory.py - Updated test-deploy workflow to pass --vars in all deploy phases Ref: ChatGPT conversation https://chatgpt.com/share/69320f49-6c00-800f-8875-49d36935ae3a
This commit is contained in:
3
.github/workflows/test-deploy.yml
vendored
3
.github/workflows/test-deploy.yml
vendored
@@ -48,6 +48,7 @@ jobs:
|
||||
run: |
|
||||
python -m cli.deploy.container run --image "$INFINITO_IMAGE" --build -- \
|
||||
--exclude "$EXCLUDED_ROLES" \
|
||||
--vars '{"MASK_CREDENTIALS_IN_LOGS": false}' \
|
||||
--authorized-keys "ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito" \
|
||||
-- \
|
||||
-T server \
|
||||
@@ -60,6 +61,7 @@ jobs:
|
||||
run: |
|
||||
python -m cli.deploy.container run --image "$INFINITO_IMAGE" -- \
|
||||
--exclude "$EXCLUDED_ROLES" \
|
||||
--vars '{"MASK_CREDENTIALS_IN_LOGS": false}' \
|
||||
--authorized-keys "ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito" \
|
||||
-- \
|
||||
-T server \
|
||||
@@ -73,6 +75,7 @@ jobs:
|
||||
run: |
|
||||
python -m cli.deploy.container run --image "$INFINITO_IMAGE" -- \
|
||||
--exclude "$EXCLUDED_ROLES" \
|
||||
--vars '{"MASK_CREDENTIALS_IN_LOGS": false}' \
|
||||
--authorized-keys "ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito" \
|
||||
-- \
|
||||
-T server \
|
||||
|
||||
Reference in New Issue
Block a user