From 12589777d90151a1cee3e194ac620a1f7cbc6a23 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 5 Feb 2023 17:25:33 +0100 Subject: [PATCH] Add copr type --- .../puppet/modules/copr/manifests/init.pp | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 personal_infra/puppet/modules/copr/manifests/init.pp diff --git a/personal_infra/puppet/modules/copr/manifests/init.pp b/personal_infra/puppet/modules/copr/manifests/init.pp new file mode 100644 index 0000000..2d0474a --- /dev/null +++ b/personal_infra/puppet/modules/copr/manifests/init.pp @@ -0,0 +1,20 @@ +define copr ( + String[1] $user, + String[1] $project = $title, + String[1] $dist, +) { + file {"/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:$user:$project.repo": + content => @("REPO"/$) + [copr:copr.fedorainfracloud.org:$user:$project] + name=Copr repo for $project owned by $user + baseurl=https://download.copr.fedorainfracloud.org/results/$user/$project/$dist-\$basearch/ + type=rpm-md + skip_if_unavailable=True + gpgcheck=1 + gpgkey=https://download.copr.fedorainfracloud.org/results/$user/$project/pubkey.gpg + repo_gpgcheck=0 + enabled=1 + enabled_metadata=1 + | - REPO + } +} -- 2.47.3