Skip to content

Commit

Permalink
Make centos medium name configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka committed Dec 3, 2024
1 parent 605a7cf commit 954d5c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions roles/foreman_provisioning/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ foreman_provisioning_network: 192.168.73.0
foreman_provisioning_installer_options: []
foreman_provisioning_domain: example.com
foreman_provisioning_foreman_version: "{{ foreman_repositories_version | default('nightly') }}"
foreman_provisioning_centos_medium_name: "CentOS Stream 9 mirror"
2 changes: 1 addition & 1 deletion roles/foreman_provisioning/tasks/configure_centos_9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
architectures:
- x86_64
media:
- CentOS Stream 9 mirror
- "{{ foreman_provisioning_centos_medium_name }}"
provisioning_templates: "{{ result.resources | map(attribute='name') }}"
ptables:
- Kickstart default
Expand Down
2 changes: 1 addition & 1 deletion roles/foreman_provisioning/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{{ foreman_provisioning_hammer }} hostgroup create
--name 'CentOS 9 Mirror'
--operatingsystem 'CentOS_Stream 9'
--medium 'CentOS Stream 9 mirror'
--medium '{{ foreman_provisioning_centos_medium_name }}'
--partition-table 'Kickstart default'
--parent 'Base'
{{ foreman_provisioning_hammer_taxonomy_params }}
Expand Down

0 comments on commit 954d5c9

Please sign in to comment.