feat: uniform system.content source schema across installers and repositories
This commit is contained in:
@@ -1,13 +1,24 @@
|
||||
{% set _baseurl = system_cfg.content.url if system_cfg.content.source == 'mirror' else 'file:///usr/local/install/redhat/dvd' %}
|
||||
[rhel{{ os_version_major }}-baseos]
|
||||
name=RHEL {{ os_version_major }} BaseOS
|
||||
baseurl=file:///usr/local/install/redhat/dvd/BaseOS
|
||||
baseurl={{ _baseurl }}/BaseOS
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
{% if system_cfg.content.source != 'mirror' %}
|
||||
gpgkey=file:///usr/local/install/redhat/dvd/RPM-GPG-KEY-redhat-release
|
||||
{% endif %}
|
||||
{% if system_cfg.content.proxy | length > 0 %}
|
||||
proxy={{ system_cfg.content.proxy }}
|
||||
{% endif %}
|
||||
|
||||
[rhel{{ os_version_major }}-appstream]
|
||||
name=RHEL {{ os_version_major }} AppStream
|
||||
baseurl=file:///usr/local/install/redhat/dvd/AppStream
|
||||
baseurl={{ _baseurl }}/AppStream
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
{% if system_cfg.content.source != 'mirror' %}
|
||||
gpgkey=file:///usr/local/install/redhat/dvd/RPM-GPG-KEY-redhat-release
|
||||
{% endif %}
|
||||
{% if system_cfg.content.proxy | length > 0 %}
|
||||
proxy={{ system_cfg.content.proxy }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user