2019-09-30 10:35:22 -04:00
|
|
|
Name: cloud-init
|
2023-07-12 15:58:59 +08:00
|
|
|
Version: 23.2.2
|
2023-12-14 10:40:25 +08:00
|
|
|
Release: 5
|
2019-09-30 10:35:22 -04:00
|
|
|
Summary: the defacto multi-distribution package that handles early initialization of a cloud instance.
|
|
|
|
|
License: ASL 2.0 or GPLv3
|
|
|
|
|
URL: http://launchpad.net/cloud-init
|
2019-11-06 19:04:31 +08:00
|
|
|
Source0: https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz
|
2019-09-30 10:35:22 -04:00
|
|
|
|
|
|
|
|
Source1: cloud-init-tmpfiles.conf
|
|
|
|
|
|
2022-03-31 14:22:42 +08:00
|
|
|
Patch0: cloud-init-22.1-no-override-default-network.patch
|
2022-11-30 15:43:20 +08:00
|
|
|
Patch1: bugfix-cloud-init-add-os-support.patch
|
2022-03-31 14:22:42 +08:00
|
|
|
Patch2: bugfix-sort-requirements.patch
|
|
|
|
|
Patch3: add-variable-to-forbid-tmp-dir.patch
|
2022-07-28 16:58:38 +08:00
|
|
|
Patch4: Fix-the-error-level-logs-displayed-for-the-cloud-init-local-service.patch
|
2023-10-10 10:12:41 +08:00
|
|
|
Patch5: cloud-init-23.2.2-nm-controlled.patch
|
2021-05-25 10:42:17 +08:00
|
|
|
|
2023-12-14 10:40:25 +08:00
|
|
|
Patch6000: backport-fix-Don-t-loosen-the-permissions-of-the-log-file-462.patch
|
|
|
|
|
|
2023-11-01 17:24:49 +08:00
|
|
|
Patch9000: do-not-generate-dsa.patch
|
|
|
|
|
|
2019-11-06 19:04:31 +08:00
|
|
|
BuildRequires: pkgconfig(systemd) python3-devel python3-setuptools systemd
|
2023-07-12 15:58:59 +08:00
|
|
|
BuildRequires: iproute python3-configobj python3-responses
|
2019-09-30 10:35:22 -04:00
|
|
|
BuildRequires: python3-jinja2 python3-jsonpatch python3-jsonschema
|
2022-03-31 14:22:42 +08:00
|
|
|
BuildRequires: python3-mock python3-oauthlib python3-prettytable
|
2023-07-12 15:58:59 +08:00
|
|
|
BuildRequires: python3-pyserial python3-PyYAML python3-requests
|
|
|
|
|
BuildRequires: dnf %{_vendor}-release python3-pytest passwd python3-netifaces
|
2022-07-28 16:58:38 +08:00
|
|
|
BuildRequires: python3-pytest-mock
|
2019-09-30 10:35:22 -04:00
|
|
|
|
|
|
|
|
Requires: e2fsprogs iproute python3-libselinux net-tools python3-policycoreutils
|
|
|
|
|
Requires: procps python3-configobj python3-jinja2 python3-jsonpatch xfsprogs
|
|
|
|
|
Requires: python3-jsonschema python3-oauthlib python3-prettytable util-linux
|
|
|
|
|
Requires: python3-pyserial python3-pyyaml python3-requests python3-six shadow
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
2019-11-06 19:04:31 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2019-09-30 10:35:22 -04:00
|
|
|
%description
|
|
|
|
|
Cloud-init is the defacto multi-distribution package that handles early
|
|
|
|
|
initialization of a cloud instance.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-12-03 18:32:47 +08:00
|
|
|
echo %{_vendor}
|
2019-09-30 10:35:22 -04:00
|
|
|
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
|
|
|
|
|
-e 's|#!/usr/bin/python|#!/usr/bin/python3|' tools/* cloudinit/ssh_util.py
|
2019-12-03 18:32:47 +08:00
|
|
|
sed -i 's/\/etc\/redhat-release/\/etc\/%{_vendor}-release/g' setup.py
|
2019-09-30 10:35:22 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install -- --init-system=systemd
|
2022-03-31 14:22:42 +08:00
|
|
|
python3 tools/render-cloudcfg --variant openeuler > %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
2019-09-30 10:35:22 -04:00
|
|
|
install -d %{buildroot}/var/lib/cloud
|
2019-11-06 19:04:31 +08:00
|
|
|
install -d %{buildroot}/run/%{name}
|
2019-09-30 10:35:22 -04:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/%{name}.conf
|
|
|
|
|
install -D -m 0644 tools/21-cloudinit.conf %{buildroot}/%{_sysconfdir}/rsyslog.d/21-cloudinit.conf
|
|
|
|
|
|
|
|
|
|
%check
|
2021-06-19 11:09:27 +08:00
|
|
|
python3 -m pytest tests/unittests/
|
2019-09-30 10:35:22 -04:00
|
|
|
|
2019-11-06 19:04:31 +08:00
|
|
|
%pre
|
|
|
|
|
|
2019-09-30 10:35:22 -04:00
|
|
|
%preun
|
|
|
|
|
%systemd_preun cloud-config.service cloud-config.target cloud-final.service cloud-init.service cloud-init.target cloud-init-local.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
|
/bin/systemctl enable cloud-config.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl enable cloud-final.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl enable cloud-init.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl enable cloud-init-local.service >/dev/null 2>&1 || :
|
|
|
|
|
elif [ $1 -eq 2 ]; then
|
|
|
|
|
/bin/systemctl is-enabled cloud-config.service >/dev/null 2>&1 &&
|
|
|
|
|
/bin/systemctl reenable cloud-config.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl is-enabled cloud-final.service >/dev/null 2>&1 &&
|
|
|
|
|
/bin/systemctl reenable cloud-final.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl is-enabled cloud-init.service >/dev/null 2>&1 &&
|
|
|
|
|
/bin/systemctl reenable cloud-init.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl is-enabled cloud-init-local.service >/dev/null 2>&1 &&
|
|
|
|
|
/bin/systemctl reenable cloud-init-local.service >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%postun
|
2019-12-03 18:32:47 +08:00
|
|
|
%systemd_postun cloud-config.service cloud-config.target cloud-final.service cloud-init.service cloud-init.target cloud-init-local.service
|
2019-09-30 10:35:22 -04:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc ChangeLog
|
|
|
|
|
%license LICENSE LICENSE-Apache2.0 LICENSE-GPLv3
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg
|
|
|
|
|
%dir %{_sysconfdir}/cloud/cloud.cfg.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg.d/*.cfg
|
|
|
|
|
%doc %{_sysconfdir}/cloud/cloud.cfg.d/README
|
2023-07-12 15:58:59 +08:00
|
|
|
%doc %{_sysconfdir}/cloud/clean.d/README
|
2019-09-30 10:35:22 -04:00
|
|
|
%dir %{_sysconfdir}/rsyslog.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/rsyslog.d/21-cloudinit.conf
|
2023-07-12 15:58:59 +08:00
|
|
|
%{_udevrulesdir}/66-azure-ephemeral.rules
|
2019-09-30 10:35:22 -04:00
|
|
|
%{_unitdir}/cloud-config.service
|
|
|
|
|
%{_unitdir}/cloud-final.service
|
|
|
|
|
%{_unitdir}/cloud-init.service
|
|
|
|
|
%{_unitdir}/cloud-init-local.service
|
|
|
|
|
%{_unitdir}/cloud-config.target
|
|
|
|
|
%{_unitdir}/cloud-init.target
|
|
|
|
|
/usr/lib/systemd/system-generators/cloud-init-generator
|
2022-03-31 14:22:42 +08:00
|
|
|
%{_sysconfdir}/systemd/system/sshd-keygen@.service.d/disable-sshd-keygen-if-cloud-init-active.conf
|
2023-07-12 15:58:59 +08:00
|
|
|
%{_unitdir}/cloud-init-hotplugd.service
|
|
|
|
|
%{_unitdir}/cloud-init-hotplugd.socket
|
2019-09-30 10:35:22 -04:00
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
%{_bindir}/cloud-init*
|
2020-07-31 15:06:51 +08:00
|
|
|
%{_bindir}/cloud-id
|
2019-09-30 10:35:22 -04:00
|
|
|
%{python3_sitelib}/*
|
2019-11-06 19:04:31 +08:00
|
|
|
%dir /run/%{name}
|
2019-09-30 10:35:22 -04:00
|
|
|
%dir /var/lib/cloud
|
2020-07-31 15:06:51 +08:00
|
|
|
%{_datadir}/bash-completion/completions/cloud-init
|
2019-09-30 10:35:22 -04:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc doc/*
|
|
|
|
|
%dir %{_sysconfdir}/cloud/templates
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/cloud/templates/*
|
|
|
|
|
%exclude /usr/share/doc/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-12-14 10:40:25 +08:00
|
|
|
* Thu Dec 14 2023 shixuantong <shixuantong1@huawei.com> - 23.2.2-5
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Don't loosen the permissions of the log file
|
|
|
|
|
|
2023-11-01 17:24:49 +08:00
|
|
|
* Wed Nov 01 2023 shixuantong <shixuantong1@huawei.com> - 23.2.2-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:do not generate dsa
|
|
|
|
|
|
2023-10-10 10:12:41 +08:00
|
|
|
* Tue Oct 10 2023 shixuantong <shixuantong1@huawei.com> - 23.2.2-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Do not write NM_CONTROLLED=no in generated interface config files
|
|
|
|
|
|
2023-08-07 07:47:24 +08:00
|
|
|
* Mon Aug 07 2023 shixuantong <shixuantong1@huawei.com> - 23.2.2-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove unused patch
|
|
|
|
|
|
2023-07-12 15:58:59 +08:00
|
|
|
* Thu Aug 03 2023 shixuantong <shixuantong1@huawei.com> - 23.2.2-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:upgrade version to 23.2.2
|
|
|
|
|
|
2023-05-24 00:03:30 +08:00
|
|
|
* Wed May 24 2023 shixuantong <shixuantong1@huawei.com> - 22.2-10
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- ID:CVE-2023-1786
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2023-1786
|
|
|
|
|
|
2023-05-18 23:30:48 +08:00
|
|
|
* Thu May 18 2023 shixuantong <shixuantong1@huawei.com> - 22.2-9
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Cleanup ephemeral IP routes on exception
|
|
|
|
|
|
2023-05-04 19:36:42 +08:00
|
|
|
* Thu May 4 2023 wangyongcong <m202071390@hust.edu.cn> - 22.2-8
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- ID: CVE-2022-2084
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Fix CVE-2022-2084
|
|
|
|
|
|
2023-04-14 09:22:26 +08:00
|
|
|
* Fri Apr 14 2023 shixuantong <shixuantong1@huawei.com> - 22.2-7
|
|
|
|
|
- Don't change permissions of netrules target
|
|
|
|
|
|
2023-03-14 14:49:04 +08:00
|
|
|
* Tue Mar 14 2023 shixuantong <shixuantong1@huawei.com> - 22.2-6
|
|
|
|
|
- Fix permission of SSH host keys
|
|
|
|
|
|
2023-02-02 16:07:28 +08:00
|
|
|
* Thu Feb 02 2023 shixuantong <shixuantong1@huawei.com> - 22.2-5
|
|
|
|
|
- revert make the same authentication behavior for arm and x86 machine
|
|
|
|
|
|
2022-12-16 09:03:45 +08:00
|
|
|
* Sun Dec 11 2022 wanglimin<wanglimin@xfusion.com> - 22.2-4
|
|
|
|
|
- make the same authentication behavior for arm and x86 machine
|
|
|
|
|
|
2022-11-30 15:43:20 +08:00
|
|
|
* Wed Nov 30 2022 shixuantong <shixuantong1@huawei.com> - 22.2-3
|
|
|
|
|
- rename patch
|
|
|
|
|
|
2022-10-13 10:29:58 +08:00
|
|
|
* Thu Oct 13 2022 fuanan <fuanan3@h-partners.com> - 22.2-2
|
|
|
|
|
- DESC:fix the changelog exception macro
|
|
|
|
|
|
2022-07-28 16:58:38 +08:00
|
|
|
* Wed Aug 3 2022 panxiaohe <panxh.life@foxmail.com> - 22.2-1
|
|
|
|
|
- update to 22.2
|
|
|
|
|
|
2022-03-31 14:22:42 +08:00
|
|
|
* Sat Apr 2 2022 yangzhuangzhuang <yangzhuangzhuang1@h-partners.com> - 22.1-1
|
|
|
|
|
- Type:update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 22.1
|
|
|
|
|
fix test_net.py testcase fail
|
|
|
|
|
add Reauires cloud-init-hotplugd.socket in cloud-init-hotplugd.service file
|
|
|
|
|
|
2021-09-22 10:56:42 +08:00
|
|
|
* Wed Sep 22 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 20.4-3
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- ID:CVE-2021-3429
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix CVE-2021-3429
|
|
|
|
|
|
2021-07-29 09:26:48 +08:00
|
|
|
* Thu Jul 29 2021 Hugel <gengqihu1@huawei.com> - 20.4-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:exclude OVS internal interfaces in get_interfaces
|
|
|
|
|
|
2021-06-26 14:54:03 +08:00
|
|
|
* Sat Jun 26 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 20.4-1
|
|
|
|
|
- Type:update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 20.4
|
|
|
|
|
|
2021-06-19 11:09:27 +08:00
|
|
|
* Sat Jun 19 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 20.3-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:enable make check
|
|
|
|
|
|
2021-05-25 10:42:17 +08:00
|
|
|
* Tue May 25 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 20.3-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix the error level logs displayed for the cloud-init-local service
|
|
|
|
|
|
2020-11-04 10:20:14 +08:00
|
|
|
* Wed Nov 4 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 20.3-1
|
|
|
|
|
- Type:update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 20.3
|
|
|
|
|
|
2020-07-31 15:06:51 +08:00
|
|
|
* Fri Jul 31 2020 Liquor <lirui130@huawei.com> - 19.4-1
|
|
|
|
|
- Type:update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 19.4
|
|
|
|
|
|
2020-06-23 17:08:10 +08:00
|
|
|
* Tue Jun 23 2020 chenditang <chenditang1@huawei.com> - 17.1-13
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add get_linux_distro function to replace platfom.dist
|
|
|
|
|
|
2020-03-14 16:30:33 +08:00
|
|
|
* Sat Mar 14 2020 chengquan <chengquan3@huawei.com> - 17.1-12
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fixbug in self-building
|
|
|
|
|
|
2019-12-25 15:43:33 +08:00
|
|
|
* Mon Dec 23 2019 chengquan <chengquan3@huawei.com> - 17.1-11
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add openEuler into distros
|
|
|
|
|
|
2019-12-03 18:32:47 +08:00
|
|
|
* Thu Oct 31 2019 chengquan <chengquan3@huawei.com> - 17.1-10
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2022-10-13 10:29:58 +08:00
|
|
|
- DESC:fix postun marco and change OS realease
|
2019-12-03 18:32:47 +08:00
|
|
|
|
2019-11-06 19:04:31 +08:00
|
|
|
* Tue Oct 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 17.1-9
|
|
|
|
|
- Package rebuild.
|
|
|
|
|
|
2019-09-30 10:35:22 -04:00
|
|
|
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 17.1-8
|
2019-11-06 19:04:31 +08:00
|
|
|
- Package init.
|