summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorVlastimil Holer <vlastimil.holer@gmail.com>2014-01-31 15:40:55 +0100
committerVlastimil Holer <vlastimil.holer@gmail.com>2014-01-31 15:40:55 +0100
commit34fbd44dce07d1d1d92e679fd038610a28470896 (patch)
tree3705f79a86c6d5da697c3ca46af70a3b131c8035 /packages
parent4db247ed76aa1e49919ef58b9f7ae6ec3dfe2296 (diff)
downloadcloud-init-git-34fbd44dce07d1d1d92e679fd038610a28470896.tar.gz
Added config for sudo. Apply sudo config in RPM for Red Hat.
Diffstat (limited to 'packages')
-rw-r--r--packages/redhat/cloud-init.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/redhat/cloud-init.spec.in b/packages/redhat/cloud-init.spec.in
index fa6eb9c5..fd0da97c 100644
--- a/packages/redhat/cloud-init.spec.in
+++ b/packages/redhat/cloud-init.spec.in
@@ -92,6 +92,9 @@ mkdir -p \$RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d
cp -p tools/21-cloudinit.conf \
\$RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d/21-cloudinit.conf
+mkdir -p \$RPM_BUILD_ROOT/%{_sysconfdir}/sudoers.d
+cp -p tools/sudo \$RPM_BUILD_ROOT/%{_sysconfdir}/sudoers.d/cloud-init
+
%clean
rm -rf \$RPM_BUILD_ROOT
@@ -180,6 +183,7 @@ fi
%dir %{_sysconfdir}/cloud/templates
%config(noreplace) %{_sysconfdir}/cloud/templates/*
%config(noreplace) %{_sysconfdir}/rsyslog.d/21-cloudinit.conf
+%config(noreplace) %{_sysconfdir}/sudoers.d/cloud-init
# Python code is here...
%{python_sitelib}/*