-
Notifications
You must be signed in to change notification settings - Fork 199
Don't overwrite katello-devel-answers.yaml #1604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,11 @@ | |
with_items: | ||
- katello-devel.yaml | ||
|
||
- name: 'Copy answers file' | ||
- name: "Create devel scenario answers file if it doesn't already exist" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will result in some options to this role only affecting the first run of the role and then never again -- that is generally an unexpected situation for Ansible roles. If we are going this route, I should think we need to go all the way and make it such that the dynamic values we do have (https://github.com/theforeman/forklift/blob/master/roles/foreman_installer_devel_scenario/templates/katello-devel-answers.yaml#L3-L8) get passed to the installer as parameters. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I pushed an additional commit which moves these dynamic values out of the answers file and into So, the behavior should now be consistent with what you expect from an ansible role. Updating the I also removed I've tested this in my own setup, which does include a non-default value for |
||
template: | ||
src: "{{ role_path }}/templates/{{ item }}" | ||
dest: /etc/foreman-installer/scenarios.d/{{ item }} | ||
force: no | ||
wbclark marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ehelms would the benefit from being toggle-able? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can see that being useful. |
||
with_items: | ||
- katello-devel-answers.yaml | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.