From 6c0e0a4608d80e7336aa0f5b9fe35f92ee5c95df Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Tue, 24 Sep 2019 11:24:51 -0700 Subject: [PATCH] [multios] Add spec files for openSUSE and Open Build Service Add the RPM spec and changes file for OBS to be able to build the package for openSUSE via the Open Build Service (OBS) and the associated _service file. Story: 2006508 Task: 36783 Task: 36784 Task: 36785 Task: 36786 Task: 36787 Task: 36788 Task: 36789 Task: 36790 Task: 36791 Task: 36792 Task: 36793 Change-Id: Ia9e2bdcb2873d769720f849e781ef5e6bb971e64 Signed-off-by: Saul Wold --- .../opensuse/puppet-dcdbsync.changes | 4 + .../opensuse/puppet-dcdbsync.spec | 33 +++++++ .../opensuse/puppet-dcmanager.changes | 4 + .../opensuse/puppet-dcmanager.spec | 38 ++++++++ .../opensuse/puppet-dcorch.changes | 4 + .../puppet-dcorch/opensuse/puppet-dcorch.spec | 38 ++++++++ modules/puppet-fm/opensuse/puppet-fm.changes | 4 + modules/puppet-fm/opensuse/puppet-fm.spec | 38 ++++++++ .../puppet-mtce/opensuse/puppet-mtce.changes | 4 + modules/puppet-mtce/opensuse/puppet-mtce.spec | 38 ++++++++ .../puppet-nfv/opensuse/puppet-nfv.changes | 4 + modules/puppet-nfv/opensuse/puppet-nfv.spec | 38 ++++++++ .../opensuse/puppet-patching.changes | 4 + .../opensuse/puppet-patching.spec | 38 ++++++++ .../opensuse/puppet-smapi.changes | 4 + .../puppet-smapi/opensuse/puppet-smapi.spec | 38 ++++++++ .../puppet-sshd/opensuse/puppet-sshd.changes | 4 + modules/puppet-sshd/opensuse/puppet-sshd.spec | 38 ++++++++ .../opensuse/puppet-sysinv.changes | 4 + .../puppet-sysinv/opensuse/puppet-sysinv.spec | 38 ++++++++ .../opensuse/puppet-manifests.changes | 4 + .../opensuse/puppet-manifests.spec | 92 +++++++++++++++++++ 22 files changed, 511 insertions(+) create mode 100644 modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.changes create mode 100644 modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.spec create mode 100644 modules/puppet-dcmanager/opensuse/puppet-dcmanager.changes create mode 100644 modules/puppet-dcmanager/opensuse/puppet-dcmanager.spec create mode 100644 modules/puppet-dcorch/opensuse/puppet-dcorch.changes create mode 100644 modules/puppet-dcorch/opensuse/puppet-dcorch.spec create mode 100644 modules/puppet-fm/opensuse/puppet-fm.changes create mode 100644 modules/puppet-fm/opensuse/puppet-fm.spec create mode 100644 modules/puppet-mtce/opensuse/puppet-mtce.changes create mode 100644 modules/puppet-mtce/opensuse/puppet-mtce.spec create mode 100644 modules/puppet-nfv/opensuse/puppet-nfv.changes create mode 100644 modules/puppet-nfv/opensuse/puppet-nfv.spec create mode 100644 modules/puppet-patching/opensuse/puppet-patching.changes create mode 100644 modules/puppet-patching/opensuse/puppet-patching.spec create mode 100644 modules/puppet-smapi/opensuse/puppet-smapi.changes create mode 100644 modules/puppet-smapi/opensuse/puppet-smapi.spec create mode 100644 modules/puppet-sshd/opensuse/puppet-sshd.changes create mode 100644 modules/puppet-sshd/opensuse/puppet-sshd.spec create mode 100644 modules/puppet-sysinv/opensuse/puppet-sysinv.changes create mode 100644 modules/puppet-sysinv/opensuse/puppet-sysinv.spec create mode 100644 puppet-manifests/opensuse/puppet-manifests.changes create mode 100644 puppet-manifests/opensuse/puppet-manifests.spec diff --git a/modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.changes b/modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.changes new file mode 100644 index 000000000..c350c33e5 --- /dev/null +++ b/modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jun 13 16:54:52 UTC 2019 - xe1gyq@gmail.com + +- 1.0 Initial Commit diff --git a/modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.spec b/modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.spec new file mode 100644 index 000000000..c22fae186 --- /dev/null +++ b/modules/puppet-dcdbsync/opensuse/puppet-dcdbsync.spec @@ -0,0 +1,33 @@ +%global module_dir dcdbsync/ + +Name: puppet-dcdbsync +Version: 1.0 +Release: 1 +License: Apache-2.0 +Summary: Puppet dcdbsync module +Url: https://opendev.org/starlingx/config +Group: Development/Tools/Other +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python2-devel + +%description +A puppet module for dcorch dbsync service + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +%install +install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir} +cp -R %{module_dir} %{buildroot}%{_datadir}/puppet/modules +ls + +%files +%defattr(-,root,root,-) +%{_datadir}/puppet/ +%{_datadir}/puppet/modules/ +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-dcmanager/opensuse/puppet-dcmanager.changes b/modules/puppet-dcmanager/opensuse/puppet-dcmanager.changes new file mode 100644 index 000000000..94285f195 --- /dev/null +++ b/modules/puppet-dcmanager/opensuse/puppet-dcmanager.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:33:25 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-dcmanager/opensuse/puppet-dcmanager.spec b/modules/puppet-dcmanager/opensuse/puppet-dcmanager.spec new file mode 100644 index 000000000..82734c80c --- /dev/null +++ b/modules/puppet-dcmanager/opensuse/puppet-dcmanager.spec @@ -0,0 +1,38 @@ +%global module_dir dcmanager + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-dcorch/opensuse/puppet-dcorch.changes b/modules/puppet-dcorch/opensuse/puppet-dcorch.changes new file mode 100644 index 000000000..18f09e6b7 --- /dev/null +++ b/modules/puppet-dcorch/opensuse/puppet-dcorch.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:33:38 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-dcorch/opensuse/puppet-dcorch.spec b/modules/puppet-dcorch/opensuse/puppet-dcorch.spec new file mode 100644 index 000000000..b57e9d46b --- /dev/null +++ b/modules/puppet-dcorch/opensuse/puppet-dcorch.spec @@ -0,0 +1,38 @@ +%global module_dir dcorch + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-fm/opensuse/puppet-fm.changes b/modules/puppet-fm/opensuse/puppet-fm.changes new file mode 100644 index 000000000..67be3279f --- /dev/null +++ b/modules/puppet-fm/opensuse/puppet-fm.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:33:45 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-fm/opensuse/puppet-fm.spec b/modules/puppet-fm/opensuse/puppet-fm.spec new file mode 100644 index 000000000..c48828366 --- /dev/null +++ b/modules/puppet-fm/opensuse/puppet-fm.spec @@ -0,0 +1,38 @@ +%global module_dir fm + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-mtce/opensuse/puppet-mtce.changes b/modules/puppet-mtce/opensuse/puppet-mtce.changes new file mode 100644 index 000000000..e3c26f6ba --- /dev/null +++ b/modules/puppet-mtce/opensuse/puppet-mtce.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:33:57 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-mtce/opensuse/puppet-mtce.spec b/modules/puppet-mtce/opensuse/puppet-mtce.spec new file mode 100644 index 000000000..2c5ca37d6 --- /dev/null +++ b/modules/puppet-mtce/opensuse/puppet-mtce.spec @@ -0,0 +1,38 @@ +%global module_dir mtce + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-nfv/opensuse/puppet-nfv.changes b/modules/puppet-nfv/opensuse/puppet-nfv.changes new file mode 100644 index 000000000..2398302ee --- /dev/null +++ b/modules/puppet-nfv/opensuse/puppet-nfv.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:34:13 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-nfv/opensuse/puppet-nfv.spec b/modules/puppet-nfv/opensuse/puppet-nfv.spec new file mode 100644 index 000000000..f435ac111 --- /dev/null +++ b/modules/puppet-nfv/opensuse/puppet-nfv.spec @@ -0,0 +1,38 @@ +%global module_dir nfv + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-patching/opensuse/puppet-patching.changes b/modules/puppet-patching/opensuse/puppet-patching.changes new file mode 100644 index 000000000..8ebb00493 --- /dev/null +++ b/modules/puppet-patching/opensuse/puppet-patching.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:34:23 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-patching/opensuse/puppet-patching.spec b/modules/puppet-patching/opensuse/puppet-patching.spec new file mode 100644 index 000000000..0e5c9230e --- /dev/null +++ b/modules/puppet-patching/opensuse/puppet-patching.spec @@ -0,0 +1,38 @@ +%global module_dir patching + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-smapi/opensuse/puppet-smapi.changes b/modules/puppet-smapi/opensuse/puppet-smapi.changes new file mode 100644 index 000000000..c46e4cb6e --- /dev/null +++ b/modules/puppet-smapi/opensuse/puppet-smapi.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:34:45 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-smapi/opensuse/puppet-smapi.spec b/modules/puppet-smapi/opensuse/puppet-smapi.spec new file mode 100644 index 000000000..051aa4a69 --- /dev/null +++ b/modules/puppet-smapi/opensuse/puppet-smapi.spec @@ -0,0 +1,38 @@ +%global module_dir smapi + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-sshd/opensuse/puppet-sshd.changes b/modules/puppet-sshd/opensuse/puppet-sshd.changes new file mode 100644 index 000000000..cb5b4f0d7 --- /dev/null +++ b/modules/puppet-sshd/opensuse/puppet-sshd.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:34:57 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-sshd/opensuse/puppet-sshd.spec b/modules/puppet-sshd/opensuse/puppet-sshd.spec new file mode 100644 index 000000000..e9b4a5d91 --- /dev/null +++ b/modules/puppet-sshd/opensuse/puppet-sshd.spec @@ -0,0 +1,38 @@ +%global module_dir sshd + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/modules/puppet-sysinv/opensuse/puppet-sysinv.changes b/modules/puppet-sysinv/opensuse/puppet-sysinv.changes new file mode 100644 index 000000000..560ee11bc --- /dev/null +++ b/modules/puppet-sysinv/opensuse/puppet-sysinv.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 14 20:35:06 UTC 2019 - sgw@linux.intel.com + +- 1.0 Initial Commit diff --git a/modules/puppet-sysinv/opensuse/puppet-sysinv.spec b/modules/puppet-sysinv/opensuse/puppet-sysinv.spec new file mode 100644 index 000000000..e69edb18d --- /dev/null +++ b/modules/puppet-sysinv/opensuse/puppet-sysinv.spec @@ -0,0 +1,38 @@ +%global module_dir sysinv + +Name: puppet-%{module_dir} +Version: 1.0.0 +Release: stx +Summary: Puppet %{module_dir} module +License: Apache-2.0 +Group: Development/Tools/Other +URL: https://opendev.org/starlingx/config + +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel + +%description +A puppet module for %{module_dir} + +%prep +%autosetup -q -n %{name}-%{version}/src + +%build + +# +# The src for this puppet module needs to be staged to puppet/modules +# +%install +make install \ + MODULEDIR=%{buildroot}%{_datadir}/puppet/modules + +%files +%defattr(-,root,root,-) +%license src/LICENSE +%dir %{_datadir}/puppet +%dir %{_datadir}/puppet/modules +%{_datadir}/puppet/modules/%{module_dir} + +%changelog diff --git a/puppet-manifests/opensuse/puppet-manifests.changes b/puppet-manifests/opensuse/puppet-manifests.changes new file mode 100644 index 000000000..55cfe4c89 --- /dev/null +++ b/puppet-manifests/opensuse/puppet-manifests.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jun 25 12:55:24 UTC 2019 - Marcela Rosales + +- Initial Commit diff --git a/puppet-manifests/opensuse/puppet-manifests.spec b/puppet-manifests/opensuse/puppet-manifests.spec new file mode 100644 index 000000000..6134a6539 --- /dev/null +++ b/puppet-manifests/opensuse/puppet-manifests.spec @@ -0,0 +1,92 @@ +Name: puppet-manifests +Version: 1.0 +Release: %{tis_patch_ver}%{?_tis_dist} +Summary: Puppet Configuration and Manifests +License: Apache-2.0 +Group: System/Packages +URL: https://opendev.org/starlingx/config +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +# List all the required puppet modules + +# StarlingX puppet modules +Requires: puppet-dcorch +Requires: puppet-dcmanager +Requires: puppet-mtce +Requires: puppet-nfv +Requires: puppet-patching +Requires: puppet-sysinv +Requires: puppet-sshd +Requires: puppet-smapi +Requires: puppet-fm +Requires: puppet-dcdbsync + +# Openstack puppet modules +Requires: puppet-barbican +Requires: puppet-ceph +Requires: puppet-horizon +Requires: puppet-keystone +Requires: puppet-openstacklib +Requires: puppet-vswitch +Requires: puppet-memcached + +# Puppetlabs puppet modules +Requires: puppet-concat +Requires: puppet-create_resources +Requires: puppet-drbd +Requires: puppet-firewall +Requires: puppet-haproxy +Requires: puppet-inifile +Requires: puppet-lvm +Requires: puppet-postgresql +Requires: puppet-rabbitmq +Requires: puppet-stdlib +Requires: puppet-sysctl +Requires: puppet-etcd + +# 3rdparty puppet modules +Requires: puppet-boolean +Requires: puppet-certmonger +Requires: puppet-dnsmasq +Requires: puppet-filemapper +Requires: puppet-kmod +Requires: puppet-ldap +Requires: puppet-network +Requires: puppet-nslcd +Requires: puppet-nssdb +Requires: puppet-puppi +Requires: puppet-vlan +Requires: puppet-collectd + +%description +Platform puppet configuration files and manifests + +%define config_dir %{_sysconfdir}/puppet +%define module_dir %{_datadir}/puppet/modules +%define local_bindir /usr/local/bin +%define puppet_modules %{buildroot}%{_prefix}/share/puppet/modules + +%prep +%setup -n %{name}-%{version}/src + +%build + +%install +make install \ + BINDIR=%{buildroot}%{local_bindir} \ + CONFIGDIR=%{buildroot}%{config_dir} \ + MODULEDIR=%{buildroot}%{module_dir} +# This .orig file is not allow in SUSE, and it is not critical for StarlingX functionality +rm %{puppet_modules}/platform/templates/calico.yaml.erb.orig + +%files +%defattr(-,root,root,-) +%license LICENSE +%{local_bindir} +%{config_dir} +%{module_dir} +%dir %{_prefix}/share/puppet +%config %{config_dir}/* + +%changelog