diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..becc2c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ansible-pcp-2.0.3.tar.gz diff --git a/ansible-pcp.spec b/ansible-pcp.spec new file mode 100644 index 0000000..74579cf --- /dev/null +++ b/ansible-pcp.spec @@ -0,0 +1,77 @@ +%global collection_namespace performancecopilot +%global collection_name metrics + +Name: ansible-pcp +Version: 2.0.3 +Release: 1%{?dist} +Summary: Ansible Metric collection for Performance Co-Pilot +License: MIT +URL: %{ansible_collection_url} +Source: https://github.com/performancecopilot/ansible-pcp/archive/v%{version}/%{name}-%{version}.tar.gz + +Requires: ansible >= 2.9.10 +BuildRequires: ansible >= 2.9.10 +BuildRequires: python3-ansible-lint +BuildArch: noarch + +%description +A collection containing roles for Performance Co-Pilot (PCP) and related +software such as Redis and Grafana. The collection is made up of several +Ansible roles, including: + +performancecopilot.metrics.pcp +A role for core PCP capabilities, configuring live performance analysis +with a large base set of metrics from the kernel and system services, as +well as data recording and rule inference. + +performancecopilot.metrics.redis +A role for configuring a local Redis server, suitable for use with a +Performance Co-Pilot archive repository (for single or many hosts) and +fast, scalable querying of metrics. + +performancecopilot.metrics.grafana +A role for configuring a local Grafana server, providing web frontend +visuals for Performance Co-Pilot metrics, both live and historically. +Data sources for Vector (live), Redis (historical) and interactive +bpftrace (eBPF) scripts can be configured by this role. The PCP REST +API service (from the core pcp role) should be configured in order to +use this role. + +performancecopilot.metrics.bpftrace +A role that extends the core PCP role, providing metrics from bpftrace +scripts using Linux eBPF facilities. Configuring authentication of a +local user capable of running bpftrace scripts via the PCP agent is a +key task of this role. + +performancecopilot.metrics.elasticsearch +A role that extends the core PCP role, providing metrics from a live +ElasticSearch instance for PCP analysis or exporting of PCP metric +values (and metadata) to ElasticSearch for the indexing and querying +of performance data. + +%prep +%autosetup +rm -vr .travis .github .gitignore .ansible-lint .*.yml + +%build +%ansible_collection_build + +%install +%ansible_collection_install + +%check +ansible-lint `find roles -name \*.yml` + +%files +%doc README.md +%license LICENSE +%{ansible_collection_files} + +%changelog +* Wed Nov 11 2020 Nathan Scott 2.0.3-1 +- Updated for new version with changed namespace +- Ansible collection macros now used in the spec +- Added ansible-lint checking in %%check section + +* Fri Oct 23 2020 Nathan Scott 1.0.0-1 +- Initial RPM spec build diff --git a/sources b/sources new file mode 100644 index 0000000..bcc4123 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ansible-pcp-2.0.3.tar.gz) = d9df466ccb5f69bcd6f3add8b25892994fc1bc6bc94c8bd798fcfa1b2cfdab87b3344b6008739570b8c21802dc794c6438ecc47896b8620e23fe4dd62fd150a8