-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdci-openshift-app-agent.spec
154 lines (112 loc) · 5.32 KB
/
dci-openshift-app-agent.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Name: dci-openshift-app-agent
Version: 1.1.0
Release: 1.VERS%{?dist}
Summary: DCI OpenShift App Agent
License: ASL 2.0
URL: https://github.com/redhat-cip/dci-openshift-app-agent
BuildArch: noarch
Source0: dci-openshift-app-agent-%{version}.tar.gz
BuildRequires: systemd
BuildRequires: systemd-units
Requires: sudo
Requires: dci-ansible >= 0.3.1
%if 0%{?rhel} && 0%{?rhel} < 8
Requires: python2-dciclient >= 3.1.0
%else
Requires: python3-dciclient >= 3.1.0
%endif
Requires: ansible-collection-redhatci-ocp >= 0.25.0
Requires(pre): shadow-utils
%description
DCI OpenShift App Agent
%prep
%setup -qc
%build
%clean
%install
make install BUILDROOT=%{buildroot} DATADIR=%{_datadir} NAME=%{name} SYSCONFDIR=%{_sysconfdir} BINDIR=%{_bindir} SHAREDSTATEDIR=%{_sharedstatedir} UNITDIR=%{_unitdir}
%pre
getent group dci-openshift-app-agent >/dev/null || groupadd -r dci-openshift-app-agent
getent passwd dci-openshift-app-agent >/dev/null || \
useradd -m -g dci-openshift-app-agent -d %{_sharedstatedir}/dci-openshift-app-agent -s /bin/bash \
-c "DCI Openshift App Agent service" dci-openshift-app-agent
exit 0
%files
%license LICENSE
%config(noreplace) %{_sysconfdir}/dci-openshift-app-agent/hooks/*.yml
%config(noreplace) %{_sysconfdir}/dci-openshift-app-agent/hosts.yml
%config(noreplace) %{_sysconfdir}/sysconfig/dci-openshift-app-agent
%{_sysconfdir}/dci-openshift-app-agent/dcirc.sh.dist
%{_datadir}/dci-openshift-app-agent/ansible.cfg
%{_datadir}/dci-openshift-app-agent/dci-openshift-app-agent.yml
%{_datadir}/dci-openshift-app-agent/plays/*.yml
%{_datadir}/dci-openshift-app-agent/plays/scripts/*
%{_datadir}/dci-openshift-app-agent/group_vars/all
%{_datadir}/dci-openshift-app-agent/utilities/internal-registry/*.yml
%dir %{_sharedstatedir}/dci-openshift-app-agent
%attr(0755, dci-openshift-app-agent, dci-openshift-app-agent) %{_sharedstatedir}/dci-openshift-app-agent
%{_sysconfdir}/sudoers.d/%{name}
%changelog
* Wed Jan 8 2025 Tony Garcia <[email protected]> - 1.3.EPOCH-VERS
- Switch to use kubernetes.core instead of community.kubernetes collection
* Fri Nov 22 2024 Frederic Lepied <[email protected]> 1.0.0-1
- remove dci-openshift-app-agent-ctl
* Wed Jul 31 2024 Tony Garcia <[email protected]> 0.10.0-1
- Requires redhatci.ocp >= 0.14.0 for mirror_images role changes
* Fri Jul 26 2024 Ramon Perez <[email protected]> 0.9.0-1
- Requires redhatci.ocp >= 0.13.0 for k8s_best_practices_certsuite
* Thu May 16 2024 Ramon Perez <[email protected]> 0.8.0-2
- Include missed utilities folder
* Mon Feb 12 2024 Tony Garcia <[email protected]> 0.8.0-1
- Move out dependencies to the redhatci.ocp collection
* Fri Jan 19 2024 Frederic Lepied <[email protected]> 0.7.2-1
- revert the requirment on redhatci.ocp >= 0.4.0 as the version
doesn't exist
* Wed Jan 10 2024 Frederic Lepied <[email protected]> 0.7.1-1
- requires redhatci.ocp >= 0.4.0 for the deprecated_api_logs var
* Mon Oct 16 2023 Jorge A Gallegos <[email protected]> - 0.7.0-2
- Depend on a version of collection with the right role names
* Fri Oct 13 2023 Tony Garcia <[email protected]> 0.7.0-1
- Remove roles, use collections instead
- Does not require the dci-openshif-agent any more
* Mon Oct 09 2023 Jorge A Gallegos <[email protected]> - 0.6.0-1
- Adding Red Hat CI OCP collection as a dependency
* Thu Oct 5 2023 Tony Garcia <[email protected]> 0.5.11-1
- Requires dci-openshift-agent >= 0.5.12 for common-roles renaming
* Tue Sep 12 2023 Tony Garcia <[email protected]> 0.5.10-1
- Bump requirements for dci-openshift-agent >= 0.5.10
* Thu Aug 31 2023 Tony Garcia <[email protected]> 0.5.9-1
- Requires dci-openshift-agent >= 0.5.10 for utils
* Mon Jul 31 2023 Beto Rdz <[email protected]> 0.5.8-1
- Requires dci-openshift-agent >= 0.5.8 for common-roles
* Fri Apr 28 2023 Frederic Lepied <[email protected]> 0.5.5-1
- Requires dci-ansible >= 3.1.0 for the new component fields
* Mon Dec 5 2022 Frederic Lepied <[email protected]> 0.5.4-1
- requires doa >= 0.5.3 for new logic regarding rpm and git components
* Wed Nov 9 2022 Frederic Lepied <[email protected]> 0.5.3-1
- bump the requires for python-dciclient to >= 2.6.0 to get dci-diff-jobs
* Thu Sep 22 2022 Frederic Lepied <[email protected]> 0.5.2-1
- use make install
- remove requires on ansible-role-dci-cvp
* Mon Jun 6 2022 Tony Garcia <[email protected]> 0.5.1-1
- Remove requirements.yml
* Thu Mar 24 2022 Frederic Lepied <[email protected]> 0.5.0-1
- use dci-vault-client
* Wed Mar 9 2022 Frederic Lepied <[email protected]> 0.4.0-1
- add a Requires on dci-openshift-agent >= 0.4.0 to access the common roles
* Fri Jan 28 2022 Tony Garcia <[email protected]> 0.3.2-1
- Add LICENSE file
* Sun Oct 10 2021 Ramon Perez <[email protected]> 0.3.1-1
- Sub-ids support in d-o-a-a user. Including d-o-a-a/plays/scripts/ entry.
* Wed May 5 2021 Frederic Lepied <[email protected]> 0.3.0-1
- add dci-openshift-app-agent-ctl and settings.yml
* Thu Apr 22 2021 Frederic Lepied <[email protected]> 0.2.1-1
- Include all roles
* Mon Jan 11 2021 Tony Garcia <[email protected]> - 0.1.1-1
- Add package and repo info for jobs
* Mon Dec 21 2020 Frederic Lepied <[email protected]> 0.1.0-1
- refactor
* Thu Nov 19 2020 Thomas Vassilian <[email protected]> - 0.0.2
- Add role to dump all logs from pods in a namespace.
* Mon Jun 29 2020 Thomas Vassilian <[email protected]> - 0.0.1
- Initial release.