Skip to content

Commit

Permalink
Don't overwrite katello-devel-answers.yaml
Browse files Browse the repository at this point in the history
This allows re-running the provisioner without overwriting the
user's changes to the configuration, so that the installer in
devel setups more closely matches the familiar standard behavior.
  • Loading branch information
wbclark committed Nov 15, 2022
1 parent 21e143c commit d785945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
:log_name: katello-devel.log
:log_level: DEBUG
:no_prefix: false
# Forklift always overwrites the answers so let's not pretend we save them
:dont_save_answers: true
:answer_file: /etc/foreman-installer/scenarios.d/katello-devel-answers.yaml
:installer_dir: /usr/share/foreman-installer
:module_dirs: /usr/share/foreman-installer/modules
Expand Down
3 changes: 2 additions & 1 deletion roles/foreman_installer_devel_scenario/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
template:
src: "{{ role_path }}/templates/{{ item }}"
dest: /etc/foreman-installer/scenarios.d/{{ item }}
force: no
with_items:
- katello-devel-answers.yaml

Expand Down

0 comments on commit d785945

Please sign in to comment.