| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,13 @@ |
| 0 |
+diff -uNr cloud-init-0.7.6-orig/config/cloud.cfg.d/05_logging.cfg cloud-init-0.7.6/config/cloud.cfg.d/05_logging.cfg |
|
| 1 |
+--- cloud-init-0.7.6-orig/config/cloud.cfg.d/05_logging.cfg 2015-06-17 21:27:10.378051186 -0700 |
|
| 2 |
+@@ -54,7 +54,8 @@ |
|
| 3 |
+ |
|
| 4 |
+ log_cfgs: |
|
| 5 |
+ # These will be joined into a string that defines the configuration |
|
| 6 |
+- - [ *log_base, *log_syslog ] |
|
| 7 |
++# Suppress log_syslog to allow logging to /var/log/cloud-init.log |
|
| 8 |
++# - [ *log_base, *log_syslog ] |
|
| 9 |
+ # These will be joined into a string that defines the configuration |
|
| 10 |
+ - [ *log_base, *log_file ] |
|
| 11 |
+ # A file path can also be used |
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 | 1 |
Name: cloud-init |
| 2 | 2 |
Version: 0.7.6 |
| 3 |
-Release: 2%{?dist}
|
|
| 3 |
+Release: 3%{?dist}
|
|
| 4 | 4 |
Summary: Cloud instance init scripts |
| 5 | 5 |
Group: System Environment/Base |
| 6 | 6 |
License: GPLv3 |
| ... | ... |
@@ -10,6 +10,7 @@ Source1: cloud-photon.cfg |
| 10 | 10 |
|
| 11 | 11 |
Patch0: photon-distro.patch |
| 12 | 12 |
Patch1: systemd-service.patch |
| 13 |
+Patch2: cloud-init-log.patch |
|
| 13 | 14 |
|
| 14 | 15 |
BuildRequires: python2 |
| 15 | 16 |
BuildRequires: python2-libs |
| ... | ... |
@@ -33,6 +34,7 @@ ssh keys and to let the user run various scripts. |
| 33 | 33 |
%setup -q -n %{name}-%{version}
|
| 34 | 34 |
%patch0 -p1 |
| 35 | 35 |
%patch1 -p1 |
| 36 |
+%patch2 -p1 |
|
| 36 | 37 |
find systemd -name cloud*.service | xargs sed -i s/StandardOutput=journal+console/StandardOutput=journal/g |
| 37 | 38 |
|
| 38 | 39 |
%build |
| ... | ... |
@@ -90,6 +92,8 @@ fi |
| 90 | 90 |
|
| 91 | 91 |
|
| 92 | 92 |
%changelog |
| 93 |
+* Thu Jun 18 2015 Vinay Kulkarni <kulkarniv@vmware.com> |
|
| 94 |
+- Add patch to enable logging to /var/log/cloud-init.log |
|
| 93 | 95 |
* Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> |
| 94 | 96 |
- Update according to UsrMove. |
| 95 | 97 |
* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> |