-
Notifications
You must be signed in to change notification settings - Fork 14
/
apb-base-scripts.spec
166 lines (132 loc) · 6.58 KB
/
apb-base-scripts.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
155
156
157
158
159
160
161
162
163
164
165
%if 0%{?copr}
%define build_timestamp .%(date +"%Y%m%d%H%M%%S")
%else
%define build_timestamp %{nil}
%endif
Name: apb-base-scripts
Version: 1.4.3
Release: 1%{build_timestamp}%{?dist}
Summary: Scripts for the apb-base container image
License: ASL 2.0
URL: https://github.com/fusor/apb-examples
Source0: https://github.com/fusor/apb-examples/archive/%{name}-%{version}.tar.gz
BuildArch: noarch
Requires: nss_wrapper
%description
%{summary}
%prep
%setup -q -n %{name}-%{version}
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/ansible
mkdir -p %{buildroot}%{_sysconfdir}/apb-secrets
mkdir -p %{buildroot}/opt/apb/.kube
mkdir -p %{buildroot}/opt/apb/inventory
mkdir -p %{buildroot}/opt/apb/env
install -m 644 files/opt/apb/.ansible.cfg %{buildroot}/opt/apb/.ansible.cfg
install -m 644 files/opt/apb/inventory/hosts %{buildroot}/opt/apb/inventory/hosts
install -m 644 files/opt/apb/env/settings %{buildroot}/opt/apb/env/settings
install -m 775 files/opt/apb/.kube/config %{buildroot}/opt/apb/.kube/config
install -m 755 files/usr/bin/test-retrieval-init %{buildroot}%{_bindir}
install -m 755 files/usr/bin/test-retrieval %{buildroot}%{_bindir}
install -m 755 files/usr/bin/entrypoint.sh %{buildroot}%{_bindir}
%files
%doc
%{_bindir}/test-retrieval-init
%{_bindir}/test-retrieval
%{_bindir}/entrypoint.sh
%dir %{_sysconfdir}/apb-secrets
%dir %{_sysconfdir}/ansible
%attr(0775, apb, root) %dir /opt/apb/env
%attr(0664, apb, root) /opt/apb/.ansible.cfg
%attr(0664, apb, root) /opt/apb/inventory/hosts
%attr(0664, apb, root) /opt/apb/env/settings
%attr(0775, apb, root) /opt/apb/.kube/config
%pre
getent passwd apb >/dev/null || \
/usr/sbin/useradd -u 1001 -r -g 0 -M -d /opt/apb -b /opt/apb -s /sbin/nologin -c "apb user" apb
%changelog
* Tue Mar 17 2020 jesus m. rodriguez <[email protected]> 1.4.3-1
- Bug 1793336: use nss_wrapper method to update passwd (#58) ([email protected])
* Fri Feb 01 2019 Jason Montleon <[email protected]> 1.4.2-1
- Add jmespath to apb-base (#54) ([email protected])
- Validate and print usage in case of wrong entrypoint usage (#49)
- Disable buffered output (#52) ([email protected])
- Fix apb-base canary ([email protected])
- add v3.10 and v3.11 Dockerfiles ([email protected])
* Fri Sep 14 2018 jesus m. rodriguez <[email protected]> 1.4.1-1
- Prepare branch for 4.0 release (#48) ([email protected])
- Add git to fix ansible-galaxy - issue 1073 ([email protected])
* Mon Aug 06 2018 David Zager <[email protected]> 1.3.6-1
- Bug 1612004: Remove dependency on jq ([email protected])
* Wed Aug 01 2018 David Zager <[email protected]> 1.3.5-1
- Create user and Set file permissions in the rpm (#32) ([email protected])
* Fri Jul 27 2018 David Zager <[email protected]> 1.3.4-1
- Accept galaxy_url parameter from broker (#43) ([email protected])
* Fri Jul 27 2018 David Zager <[email protected]> 1.3.3-1
- Copy actions instead of moving (#42) ([email protected])
* Thu Jul 26 2018 David Zager <[email protected]> 1.3.2-1
- Add settings for ansible-runner (#41) ([email protected])
* Mon Jul 23 2018 David Zager <[email protected]> 1.3.1-1
- Use ansible-runner in APB Base (#36) ([email protected])
- Revert "Use epel-testing for apb-base:latest" ([email protected])
- Use epel-testing for apb-base:latest ([email protected])
- Bump version (#35) ([email protected])
- manually install proper version of urllib3 ([email protected])
- Hardcode the inventory to /etc/ansible/hosts
* Wed Apr 25 2018 David Zager <[email protected]> 1.2.6-1
- remove file glob and replace with proper Dockerfile syntax
- Copy .kube directory to canary image ([email protected])
* Fri Apr 20 2018 Jason Montleon <[email protected]> 1.2.5-1
- revert ownership settings on files ([email protected])
* Fri Apr 20 2018 Jason Montleon <[email protected]> 1.2.4-1
- fix typos ([email protected])
* Fri Apr 20 2018 Jason Montleon <[email protected]> 1.2.3-1
- fix RPM conflict by placing these files elsewhere ([email protected])
* Thu Apr 19 2018 David Zager <[email protected]> 1.2.2-1
- Bug 1565241 - stops using bash "-x" unless in debug mode (#25)
- Use 644 ([email protected])
- Include ansible config in rpm spec ([email protected])
- Prevents ansible from trying to create retry files, which can't be used
anyway. ([email protected])
* Mon Apr 09 2018 David Zager <[email protected]> 1.2.1-1
- Bump version for 3.10 ([email protected])
- Add jmespath to canary image ([email protected])
* Fri Feb 02 2018 David Zager <[email protected]> 1.1.5-1
- Bug 1533425 - return error when no action found ([email protected])
* Mon Jan 08 2018 David Zager <[email protected]> 1.1.4-1
- Fixing tito releasers ([email protected])
* Mon Jan 08 2018 David Zager <[email protected]> 1.1.3-1
- Update tito releasers ([email protected])
* Thu Dec 21 2017 Jason Montleon <[email protected]> 1.1.2-1
- Remove erroneous copy in nightly, install it ([email protected])
- Fix location where kube config is copied ([email protected])
- Fixing dockerfiles after moving kube config ([email protected])
- Move kubeconfig based on convention ([email protected])
- Replace oc login with kube config ([email protected])
* Mon Dec 04 2017 Jason Montleon <[email protected]> 1.1.1-1
- Remove bind files from files section of rpm spec ([email protected])
- Update the RPM spec for now deleted files ([email protected])
- Add runtime label to apb-base ([email protected])
- Canary apb-base should use latest asb modules ([email protected])
- Remove bind credential scripts ([email protected])
- bump release (#6) ([email protected])
* Tue Nov 07 2017 Jason Montleon <[email protected]> 1.0.5-1
- Bug 1510299 add missing /etc/apb-secrets ([email protected])
- Fixed link to ansible-asb-modules for canary ([email protected])
- Adding Apache License Version 2.0 file ([email protected])
- update tito releasers ([email protected])
* Fri Oct 13 2017 Jason Montleon <[email protected]> 1.0.4-1
- 1498185 - Removed version label from apb-base ([email protected])
* Tue Sep 19 2017 Jason Montleon <[email protected]> 1.0.3-1
- new package built with tito
* Fri Aug 18 2017 Jason Montleon <[email protected]> 1.0.2-1
- apply role path on the command line (#115) ([email protected])
- Fix canary build and stop overwriting files rpm RPM's in latest (#114)
* Fri Aug 18 2017 Jason Montleon <[email protected]> 1.0.1-1
- new package built with tito