summaryrefslogtreecommitdiff
path: root/python-acid-senza-templates.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-acid-senza-templates.spec')
-rw-r--r--python-acid-senza-templates.spec99
1 files changed, 99 insertions, 0 deletions
diff --git a/python-acid-senza-templates.spec b/python-acid-senza-templates.spec
new file mode 100644
index 0000000..f41858c
--- /dev/null
+++ b/python-acid-senza-templates.spec
@@ -0,0 +1,99 @@
+%global _empty_manifest_terminate_build 0
+Name: python-acid.senza.templates
+Version: 1.103
+Release: 1
+Summary: Senza template for the automatic PosgreSQL DB deployments
+License: Apache License 2.0
+URL: https://github.com/zalando-incubator/senza-base-template
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d2/07/92f0238a29b79c0fe17f475be403daf009aa06d27217c9228349509face6/acid.senza.templates-1.103.tar.gz
+BuildArch: noarch
+
+
+%description
+This package provides an external template for the stups-senza tool (https://github.com/zalando-stups/senza), allowing rapid deployment of PostgreSQL nodes on AWS. It's designed to work together with an external tool that runs
+senza with all necessary parameters and deploy DB instances automatically, therefore, the template is a non-interactive one. Compared to the PostgresApp template (included with senza) it adds the following actions:
+- NAT gateways are detected based on the customer DNS zone.
+- Correct Etcd endpoints in the current account are detected for a specific region.
+- Non-interactive mode is the default one, all parameters can be supplied with environment variables (`-v` option during senza init).
+- pg_hba.conf is configured by default to reject non-SSL connections.
+- Standby and superuser passwords are automatically generated.
+- All passwords and scalyr keys are encrypted.
+- zmon2 group is automatically picked from the current account.
+- EBS is always used.
+
+%package -n python3-acid.senza.templates
+Summary: Senza template for the automatic PosgreSQL DB deployments
+Provides: python-acid.senza.templates
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-acid.senza.templates
+This package provides an external template for the stups-senza tool (https://github.com/zalando-stups/senza), allowing rapid deployment of PostgreSQL nodes on AWS. It's designed to work together with an external tool that runs
+senza with all necessary parameters and deploy DB instances automatically, therefore, the template is a non-interactive one. Compared to the PostgresApp template (included with senza) it adds the following actions:
+- NAT gateways are detected based on the customer DNS zone.
+- Correct Etcd endpoints in the current account are detected for a specific region.
+- Non-interactive mode is the default one, all parameters can be supplied with environment variables (`-v` option during senza init).
+- pg_hba.conf is configured by default to reject non-SSL connections.
+- Standby and superuser passwords are automatically generated.
+- All passwords and scalyr keys are encrypted.
+- zmon2 group is automatically picked from the current account.
+- EBS is always used.
+
+%package help
+Summary: Development documents and examples for acid.senza.templates
+Provides: python3-acid.senza.templates-doc
+%description help
+This package provides an external template for the stups-senza tool (https://github.com/zalando-stups/senza), allowing rapid deployment of PostgreSQL nodes on AWS. It's designed to work together with an external tool that runs
+senza with all necessary parameters and deploy DB instances automatically, therefore, the template is a non-interactive one. Compared to the PostgresApp template (included with senza) it adds the following actions:
+- NAT gateways are detected based on the customer DNS zone.
+- Correct Etcd endpoints in the current account are detected for a specific region.
+- Non-interactive mode is the default one, all parameters can be supplied with environment variables (`-v` option during senza init).
+- pg_hba.conf is configured by default to reject non-SSL connections.
+- Standby and superuser passwords are automatically generated.
+- All passwords and scalyr keys are encrypted.
+- zmon2 group is automatically picked from the current account.
+- EBS is always used.
+
+%prep
+%autosetup -n acid.senza.templates-1.103
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-acid.senza.templates -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.103-1
+- Package Spec generated