diff --git a/playbooks/roles/bifrost-ironic-install/defaults/main.yml b/playbooks/roles/bifrost-ironic-install/defaults/main.yml index a727e0458..1a8c4f192 100644 --- a/playbooks/roles/bifrost-ironic-install/defaults/main.yml +++ b/playbooks/roles/bifrost-ironic-install/defaults/main.yml @@ -88,6 +88,8 @@ deploy_image: "{{http_boot_folder}}/{{deploy_image_filename}}" use_cirros: false # Download IPA by default download_ipa: true +update_repos: true +update_ipa: "{{ update_repos }}" cirros_deploy_image_upstream_url: https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img # By default bifrost will deploy dnsmasq to utilize as an integrated DHCP # server. If you already have a DHCP server, you will need to disable diff --git a/playbooks/roles/bifrost-ironic-install/tasks/download_ipa_image.yml b/playbooks/roles/bifrost-ironic-install/tasks/download_ipa_image.yml index 13b2b59a9..6b76aa019 100644 --- a/playbooks/roles/bifrost-ironic-install/tasks/download_ipa_image.yml +++ b/playbooks/roles/bifrost-ironic-install/tasks/download_ipa_image.yml @@ -59,7 +59,7 @@ retries: 5 delay: 10 environment: "{{ venv }}" - when: test_ipa_kernel_present.stat.exists == false + when: update_ipa | bool or test_ipa_kernel_present.stat.exists == false - name: "Test if IPA image is present" stat: path={{ ipa_ramdisk }} @@ -102,4 +102,4 @@ retries: 5 delay: 10 environment: "{{ venv }}" - when: test_ipa_image_present.stat.exists == false + when: update_ipa | bool or test_ipa_image_present.stat.exists == false diff --git a/releasenotes/notes/update-ipa-76691dbca92246b6.yaml b/releasenotes/notes/update-ipa-76691dbca92246b6.yaml new file mode 100644 index 000000000..c30971aee --- /dev/null +++ b/releasenotes/notes/update-ipa-76691dbca92246b6.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + An ironic-python-agent image is now updated every time the installation + playbooks are run. This is done to avoid discrepancy between ironic and + the ramdisk on updates. Set ``update_ipa`` to ``false`` to prevent the + ramdisk update (not recommended) or ``update_repos`` to ``false`` to + disable any updates.