#!/bin/bash

        # Repositories definition only usable with redpesk OS
        
cat << EOF > /etc/yum.repos.d/middleware--redpesk-lts-batz-2.1.0-compose.repo
[middleware--redpesk-lts-batz-2.1.0-compose]
name=middleware--redpesk-lts-batz-2.1.0-compose
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/middleware/redpesk-lts-batz-2.1.0-compose/latest/\$basearch/os?token=367d45de-f59a-4265-829f-17f4191d0efe_558f5a56-64db-4263-99fd-11a47e4a34d4
priority=1
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/\${redpesk_gpgname},\${redpesk_download_url}/redpesk-config/\${redpesk_gpgname},file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redpesk,\${redpesk_download_url}/redpesk-config/RPM-GPG-KEY-redpesk

EOF