Provide a means to disable the registry service install
A bifrost user reported issues with their CI jobs which utilize bifrost, because they run bifrost in a container.... which I guess is a thing because folks have been doing it for ages, but we're not going to argue there. The reality is the registry is a bit much and we now provide a means to disable it. Assisted-by: Claude Code - Claude Sonnet 4.5 Change-Id: I41ab1c1fffd842dbcf963d98d9302bb0bc8568f8 Signed-off-by: Julia Kreger <juliaashleykreger@gmail.com>
This commit is contained in:
@@ -187,6 +187,7 @@ def cmd_install(args):
|
||||
enable_prometheus_exporter=args.enable_prometheus_exporter,
|
||||
default_boot_mode=args.boot_mode or 'uefi',
|
||||
enable_dhcp=not args.disable_dhcp,
|
||||
enable_registry=not args.disable_registry,
|
||||
extra_vars=args.extra_vars,
|
||||
params_output_file=args.output,
|
||||
**kwargs)
|
||||
@@ -336,6 +337,8 @@ def parse_args():
|
||||
help='use legacy boot (BIOS) by default')
|
||||
install.add_argument('--disable-dhcp', action='store_true',
|
||||
help='Disable integrated dhcp server')
|
||||
install.add_argument('--disable-registry', action='store_true',
|
||||
help='Disable OCI image registry installation')
|
||||
install.add_argument('-e', '--extra-vars', action='append',
|
||||
help='additional vars to pass to ansible')
|
||||
install.add_argument('-o', '--output',
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
- bifrost-keystone-install
|
||||
- bifrost-ironic-install
|
||||
- bifrost-logrotate-install
|
||||
- bifrost-registry-install
|
||||
- role: bifrost-registry-install
|
||||
when: enable_registry | default(true) | bool
|
||||
- role: bifrost-keystone-client-config
|
||||
user: "{{ ansible_env.SUDO_USER | default(ansible_user_id) }}"
|
||||
clouds:
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
---
|
||||
# Enable/disable registry installation (can be overridden)
|
||||
enable_registry: true
|
||||
|
||||
# Registry service configuration
|
||||
registry_image: "quay.io/opendevmirror/registry:2"
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The OCI image registry installation can now be disabled using the
|
||||
``enable_registry`` variable or the ``--disable-registry`` CLI flag.
|
||||
The registry remains enabled by default to maintain backward
|
||||
compatibility.
|
||||
|
||||
To disable during installation:
|
||||
|
||||
* CLI: ``bifrost-cli install --disable-registry``
|
||||
* Ansible: ``-e enable_registry=false``
|
||||
Reference in New Issue
Block a user