Skip to content

Commit e50979a

Browse files
committed
fix: switch the repository role over to using Packagecloud
1 parent ead14d3 commit e50979a

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

roles/repository/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# performancecopilot.metrics.repository
22

3-
Installs and configures the upstream package repositories - currently hosted at [jFrog Artifactory](https://performancecopilot.jfrog.io/ui/builds) - to get the very latest [Performance Co-Pilot](https://pcp.io/) toolkit releases.
3+
Installs and configures the upstream package repositories - currently hosted at [Packagecloud](https://packagecloud.io/performancecopilot/pcp) - to get the very latest [Performance Co-Pilot](https://pcp.io/) toolkit releases.
44

55
## Requirements
66

roles/repository/templates/artifactory.debs.j2

Lines changed: 0 additions & 1 deletion
This file was deleted.

roles/repository/templates/artifactory.rpms.j2

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deb https://packagecloud.io/performancecopilot/pcp/{{ __repository_distro_name }} {{ ansible_distribution_release }} main
2+
deb-src https://packagecloud.io/performancecopilot/pcp/{{ __repository_distro_name }} {{ ansible_distribution_release }} main
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{ ansible_managed | comment }}
2+
{{ "performancecopilot:ansible-pcp" | comment(prefix="", postfix="") }}
3+
[performancecopilot]
4+
name=Performance Co-Pilot
5+
baseurl=https://packagecloud.io/performancecopilot/pcp/{{ __repository_distro_name }}/$releasever/$basearch
6+
repo_gpgcheck=1
7+
enabled=1
8+
gpgcheck=0
9+
gpgkey=https://packagecloud.io/performancecopilot/pcp/gpgkey
10+
sslverify=1
11+
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
12+
metadata_expire=300
13+
14+
[performancecopilot-source]
15+
name=Performance Co-Pilot source
16+
baseurl=https://packagecloud.io/performancecopilot/pcp/{{ __repository_distro_name }}/$releasever/SRPMS
17+
repo_gpgcheck=1
18+
gpgcheck=0
19+
enabled=1
20+
gpgkey=https://packagecloud.io/performancecopilot/pcp/gpgkey
21+
sslverify=1
22+
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
23+
metadata_expire=300

roles/repository/vars/Debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
---
33
# Put internal variables here with Debian specific values.
44

5-
__repository_distro_name: "{{ ansible_facts['distribution_release'] }}"
5+
__repository_distro_name: "{{ ansible_distribution | lower }}"

roles/repository/vars/RedHat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
---
33
# Put internal variables here with Red Hat specific values.
44

5-
__repository_distro_name: "centos"
5+
__repository_distro_name: "el"

0 commit comments

Comments
 (0)