#!/bin/bash

        # Repositories definition only usable with redpesk OS
        
cat << EOF > /etc/yum.repos.d/redpesk-bsp-generic--redpesk-lts-arz-1.1-build.repo
[redpesk-bsp-generic--redpesk-lts-arz-1.1-build]
name=redpesk-bsp-generic--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-bsp-generic/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=4fe57c07-b6e8-4d0b-8e76-ac3655229b00_9989b582-3e39-4764-b5ad-0c0a593e7791
priority=1
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-lts-arz-1.1-build.repo
[redpesk-lts-arz-1.1-build]
name=redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-lts-arz-1.1-release/latest/\$basearch/os
priority=2
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/apps--redpesk-lts-arz-1.1-build.repo
[apps--redpesk-lts-arz-1.1-build]
name=apps--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/apps/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=207ba788-7236-4fd6-92f9-39713a16ee36_49cdfa33-3ab9-491b-88ba-0a47a311d83e
priority=3
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/baseos--redpesk-lts-arz-1.1-build.repo
[baseos--redpesk-lts-arz-1.1-build]
name=baseos--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/baseos/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=5ac27876-b2d8-418f-8ff2-c91b7fab288a_ea5d86dd-754a-426c-9a9a-2c0770e32ea2
priority=4
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-toolchain--redpesk-lts-arz-1.1-build.repo
[redpesk-toolchain--redpesk-lts-arz-1.1-build]
name=redpesk-toolchain--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-toolchain/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=bcc8220b-b2c1-4b9c-a37f-ed46e54afb6a_e74d7872-dcc4-45c4-b86f-97bce62b2d0a
priority=5
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-third-party-epel--redpesk-lts-arz-1.1-build.repo
[redpesk-third-party-epel--redpesk-lts-arz-1.1-build]
name=redpesk-third-party-epel--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-third-party-epel/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=e6afd82d-1dc0-43b8-ae5e-f08b1f0587f4_ab4a0020-4339-4e7c-8a6a-d376eb639ec9
priority=6
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-third-party--redpesk-lts-arz-1.1-build.repo
[redpesk-third-party--redpesk-lts-arz-1.1-build]
name=redpesk-third-party--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-third-party/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=eb25a01f-a42f-4dfc-9904-32399e2715ab_ba5ca0fa-8d31-49cc-b66d-796a361c41ff
priority=7
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-core--redpesk-lts-arz-1.1-build.repo
[redpesk-core--redpesk-lts-arz-1.1-build]
name=redpesk-core--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-core/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=367d45de-f59a-4265-829f-17f4191d0efe_558f5a56-64db-4263-99fd-11a47e4a34d4
priority=8
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-common--redpesk-lts-arz-1.1-build.repo
[redpesk-common--redpesk-lts-arz-1.1-build]
name=redpesk-common--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-common/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=9460fa02-595a-4e3e-ad07-baae287e03e1_51269e61-6f54-4d24-8627-f3d94f5d99de
priority=9
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-devtools--redpesk-lts-arz-1.1-build.repo
[redpesk-devtools--redpesk-lts-arz-1.1-build]
name=redpesk-devtools--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-devtools/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=147ff480-c3a6-4737-8e44-71d67c91996a_cdbb86a6-71ec-4418-9529-157d00426e81
priority=10
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-labs--redpesk-lts-arz-1.1-build.repo
[redpesk-labs--redpesk-lts-arz-1.1-build]
name=redpesk-labs--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-labs/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=6a20ac85-a855-4149-a492-a8747b43e976_a21e7710-749a-4a61-8fb4-423549e0a8d4
priority=13
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-samples--redpesk-lts-arz-1.1-build.repo
[redpesk-samples--redpesk-lts-arz-1.1-build]
name=redpesk-samples--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-samples/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=b3d021d2-79cb-494e-8ebc-eeb982b1c050_57abad93-34cb-4633-9d2f-c57cdd1b5064
priority=17
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/java-maven-apps--redpesk-lts-arz-1.1-build.repo
[java-maven-apps--redpesk-lts-arz-1.1-build]
name=java-maven-apps--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/java-maven-apps/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=09954d77-848b-45f0-b3d0-16be07905642_21a1fa1b-b3c0-423c-b30c-149084d68c68
priority=22
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/java-maven-third-party--redpesk-lts-arz-1.1-build.repo
[java-maven-third-party--redpesk-lts-arz-1.1-build]
name=java-maven-third-party--redpesk-lts-arz-1.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/java-maven-third-party/redpesk-lts-arz-1.1-release/latest/\$basearch/os?token=0cbc50d4-60d5-41c2-b058-41ffcddc3ac9_3f4fd9f3-fc39-4914-910b-c4ecb41c6151
priority=23
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-lts-arz-1.1-imported-build.repo
[redpesk-lts-arz-1.1-imported-build]
name=redpesk-lts-arz-1.1-imported-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-lts-arz-1.1-imported-release/latest/\$basearch/os
priority=24
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-config-build.repo
[redpesk-config-build]
name=redpesk-config-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/staging/redpesk-config-release/latest/\$basearch/os
priority=52
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF
