diff options
-rw-r--r-- | packages/redhat/cloud-init.spec.in | 4 | ||||
-rw-r--r-- | tools/sudo | 3 |
2 files changed, 7 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}/* diff --git a/tools/sudo b/tools/sudo new file mode 100644 index 00000000..af2f3317 --- /dev/null +++ b/tools/sudo @@ -0,0 +1,3 @@ +Cmnd_Alias CI = /bin/bash +root ALL=(nobody) NOPASSWD: CI +Defaults!CI !requiretty |