From 0aadbf1f8bbf93c233972b418951667d22ba301c Mon Sep 17 00:00:00 2001 From: "Julian C. Dunn" Date: Wed, 3 Jul 2013 18:45:15 -0400 Subject: [PATCH] [BENTO-56] Fix missing vagrant user in the sudoers file --- definitions/.suse/session.rb | 1 + definitions/.suse/sudoers.sh | 3 +++ definitions/sles-11-sp2-i386/sudoers.sh | 1 + definitions/sles-11-sp2/sudoers.sh | 1 + 4 files changed, 6 insertions(+) create mode 100644 definitions/.suse/sudoers.sh create mode 120000 definitions/sles-11-sp2-i386/sudoers.sh create mode 120000 definitions/sles-11-sp2/sudoers.sh diff --git a/definitions/.suse/session.rb b/definitions/.suse/session.rb index 041649d21..c1b3e1762 100644 --- a/definitions/.suse/session.rb +++ b/definitions/.suse/session.rb @@ -13,6 +13,7 @@ :os_type_id => 'OpenSUSE_64', :postinstall_files => [ "vagrant.sh", "sshd.sh", + "sudoers.sh", "cleanup.sh", "minimize.sh" ], :shutdown_cmd => "/sbin/halt -h -p" }) diff --git a/definitions/.suse/sudoers.sh b/definitions/.suse/sudoers.sh new file mode 100644 index 000000000..eb80f3f88 --- /dev/null +++ b/definitions/.suse/sudoers.sh @@ -0,0 +1,3 @@ +# update sudoers - can't do this in autoinst.xml +echo -e "\nupdate sudoers ..." +echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers diff --git a/definitions/sles-11-sp2-i386/sudoers.sh b/definitions/sles-11-sp2-i386/sudoers.sh new file mode 120000 index 000000000..18d9cf04d --- /dev/null +++ b/definitions/sles-11-sp2-i386/sudoers.sh @@ -0,0 +1 @@ +../.suse/sudoers.sh \ No newline at end of file diff --git a/definitions/sles-11-sp2/sudoers.sh b/definitions/sles-11-sp2/sudoers.sh new file mode 120000 index 000000000..18d9cf04d --- /dev/null +++ b/definitions/sles-11-sp2/sudoers.sh @@ -0,0 +1 @@ +../.suse/sudoers.sh \ No newline at end of file