#!/bin/bash

        # Repositories definition only usable with redpesk OS
        
cat << EOF > /etc/yum.repos.d/redpesk-bsp-renesas-gen3--redpesk-lts-arz-1.0.1-build.repo
[redpesk-bsp-renesas-gen3--redpesk-lts-arz-1.0.1-build]
name=redpesk-bsp-renesas-gen3--redpesk-lts-arz-1.0.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-bsp-renesas-gen3/redpesk-lts-arz-1.0.1-release/latest/\$basearch/os?token=f92d37e7-dac5-429c-beaf-18bf7a25b8a5_4fc4f7cb-3241-43d1-828b-6acd8935dd3c
priority=1
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

cat << EOF > /etc/yum.repos.d/redpesk-lts-arz-1.0.1-build.repo
[redpesk-lts-arz-1.0.1-build]
name=redpesk-lts-arz-1.0.1-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-lts-arz-1.0.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/redpesk-config-build.repo
[redpesk-config-build]
name=redpesk-config-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-config-release/latest/\$basearch/os
priority=3
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

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

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

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

cat << EOF > /etc/yum.repos.d/redpesk-toolchain--redpesk-lts-arz-1.0-update-build.repo
[redpesk-toolchain--redpesk-lts-arz-1.0-update-build]
name=redpesk-toolchain--redpesk-lts-arz-1.0-update-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-toolchain/redpesk-lts-arz-1.0-update-release/latest/\$basearch/os?token=bcc8220b-b2c1-4b9c-a37f-ed46e54afb6a_e74d7872-dcc4-45c4-b86f-97bce62b2d0a
priority=7
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.0-update-build.repo
[redpesk-third-party--redpesk-lts-arz-1.0-update-build]
name=redpesk-third-party--redpesk-lts-arz-1.0-update-build
baseurl=%REDPESK_DOWNLOAD_URL%/%DIR_STAGING%/redpesk-third-party/redpesk-lts-arz-1.0-update-release/latest/\$basearch/os?token=eb25a01f-a42f-4dfc-9904-32399e2715ab_ba5ca0fa-8d31-49cc-b66d-796a361c41ff
priority=8
module_hotfixes=1
skip_if_unavailable=True
enabled=1
gpgcheck=0
EOF

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

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

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

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

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

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