diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 03:42:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 03:42:02 +0000 |
commit | 63d4e3d8bd1679181f7dd590fb8dd38a4827d95d (patch) | |
tree | 8b15f903ca77a007f490bf3c8a45fcf963823900 | |
parent | 7bcf86ff118e2ef674ab3a24bad9dbe608216c8e (diff) |
automatic import of python-acid-senza-templatesopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-acid-senza-templates.spec | 99 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 101 insertions, 0 deletions
@@ -0,0 +1 @@ +/acid.senza.templates-1.103.tar.gz 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 @@ -0,0 +1 @@ +8688869b35425e4ad4e087427cbf2697 acid.senza.templates-1.103.tar.gz |