Skip to content

Commit

Permalink
Add else to _builder_kickstart_post (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
matoval authored Sep 28, 2023
1 parent c7e5328 commit 2cd0a2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/295-add-else_builder_kickstart_post.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- Add else for _builder_kickstart_post
2 changes: 1 addition & 1 deletion roles/builder/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builder_kickstart_options:
- services --enabled=ostree-remount
- ostreesetup --nogpg --osname=rhel --remote=edge --url=http://{{ builder_system_ipv4 }}/{{ builder_blueprint_name }}/repo/ --ref={{ builder_blueprint_ref }} # noqa yaml[line-length]
_builder_kickstart_post: # noqa var-naming[no-role-prefix]
- "{{ lookup('ansible.builtin.template', '../templates/auto_register_aap.j2') if builder_aap_url is defined | default(None) }}"
- "{{ lookup('ansible.builtin.template', '../templates/auto_register_aap.j2') if builder_aap_url is defined else None | default(None) }}"
builder_kickstart_post: "{{ _builder_kickstart_post + additional_kickstart_post if additional_kickstart_post is defined else (_builder_kickstart_post if _builder_kickstart_post is defined else None) | default(None) }}" # yamllint disable-line rule:line-length
_builder_pub_key: "{{ builder_pub_key if builder_pub_key is defined else (builder_pub_key_path if builder_pub_key_path is defined else '') }}" # noqa var-naming[no-role-prefix] yaml[line-length]
# yamllint disable-line rule:line-length
Expand Down

0 comments on commit 2cd0a2a

Please sign in to comment.