aboutsummaryrefslogtreecommitdiff
path: root/kolla_ansible
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2026-05-06 14:10:10 +0000
committerGerrit Code Review <review@openstack.org>2026-05-06 14:10:10 +0000
commit3e85c8ef6eb28f1def0309cfc051966c4b98f57a (patch)
tree313263caee177f4e158a587a8c110aa9d0414b3e /kolla_ansible
parentd000004ac9993cd3efab47d9029ac7f4bf7093d1 (diff)
parent2ffe7f6fd7f6ed4800177c24b36169d04c6a2e07 (diff)
downloadkolla-ansible-3e85c8ef6eb28f1def0309cfc051966c4b98f57a.tar.gz
kolla-ansible-3e85c8ef6eb28f1def0309cfc051966c4b98f57a.zip
Merge "prechecks: Add a precheck if using test images (quay.io/openstack.kolla)"
Diffstat (limited to 'kolla_ansible')
-rw-r--r--kolla_ansible/cli/commands.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/kolla_ansible/cli/commands.py b/kolla_ansible/cli/commands.py
index 7b79b64ea..15e82f02c 100644
--- a/kolla_ansible/cli/commands.py
+++ b/kolla_ansible/cli/commands.py
@@ -99,11 +99,23 @@ class InstallDeps(KollaAnsibleMixin, Command):
class Prechecks(KollaAnsibleMixin, Command):
"""Do pre-deployment checks for hosts"""
+ def get_parser(self, prog_name):
+ parser = super().get_parser(prog_name)
+ group = parser.add_argument_group("Prechecks action")
+ group.add_argument(
+ "--use-test-images",
+ action="store_true",
+ help="Allow use of test images (i.e. quay.io/openstack.kolla)",
+ )
+ return parser
+
def take_action(self, parsed_args):
self.app.LOG.info("Pre-deployment checking")
extra_vars = {}
extra_vars["kolla_action"] = "precheck"
+ if parsed_args.use_test_images:
+ extra_vars["kolla_test_images"] = "yes"
playbooks = _choose_playbooks(parsed_args,)