54f2f7d6c6
OSTree structure requires /usr to be readonly as OSTree's dracut hook creates a read-only bind mount over /usr. 1. deploy validate_postgresql_connection.sh directly to /usr/local/bin. It was copied to the location after installation. 2. move /usr/local/etc/ldapscripts to /etc/ldapscripts, files need writable. 3. move /usr/libexec/cni to /opt/cni/bin. Plugins are installed at runtime. TCs: provision aio-dx centos with /usr mount to readonly fs. unlocked host provision aio-sx debian and unlocked host. upgrade AIO-DX from 21.12 upgrade AIO-SX from 21.12 successfully apply cert-manager and nginx-ingress-controller Story: 2009101 Task: 44314 Change-Id: I99231f3f7db3d2d8eaceba137e13dea650370f71 Signed-off-by: Bin Qian <bin.qian@windriver.com>
57 lines
1.7 KiB
RPMSpec
57 lines
1.7 KiB
RPMSpec
%global git_sha d022a56b28b2174456fc0f6adc51a4b54493afad
|
|
%global prefix puppetlabs
|
|
%global module_dir postgresql
|
|
|
|
Name: puppet-%{module_dir}
|
|
Version: 4.8.0
|
|
Release: 0%{?_tis_dist}.%{tis_patch_ver}
|
|
Summary: Puppet %{module_dir} module
|
|
License: Apache
|
|
|
|
URL: https://github.com/puppetlabs/puppetlabs-postgresql
|
|
|
|
Source0: %{prefix}-%{module_dir}-%{git_sha}.tar.gz
|
|
|
|
Patch0001: 0001-Roll-up-TIS-patches.patch
|
|
Patch0002: 0002-remove-puppetlabs-apt-as-a-requirement.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
# According to .fixtures.yml the following puppet modules are also needed
|
|
#Requires: puppet-apt
|
|
Requires: puppet-stdlib
|
|
Requires: puppet-firewall
|
|
Requires: puppet-concat
|
|
|
|
|
|
%description
|
|
A Puppet module for managing PostgreSQL databases
|
|
|
|
%define local_bindir /usr/local/bin
|
|
|
|
%prep
|
|
%setup -n %{prefix}-%{module_dir}
|
|
%patch0001 -p1
|
|
%patch0002 -p1
|
|
|
|
find . -type f -name ".*" -exec rm {} +
|
|
find . -size 0 -exec rm {} +
|
|
find . \( -name "*.pl" -o -name "*.sh" \) -exec chmod +x {} +
|
|
find . \( -name "*.pp" -o -name "*.py" \) -exec chmod -x {} +
|
|
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
|
|
find . \( -name spec -o -name ext \) | xargs rm -rf
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/%{module_dir}
|
|
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/%{module_dir}/
|
|
install -d -m 0755 %{buildroot}%{local_bindir}/
|
|
install -p -D -m 755 files/validate_postgresql_connection.sh %{buildroot}%{local_bindir}/
|
|
|
|
%files
|
|
%license %{_datadir}/puppet/modules/%{module_dir}/LICENSE
|
|
%{_datadir}/puppet/modules/%{module_dir}
|
|
%{local_bindir}/validate_postgresql_connection.sh
|