Adding final ESXI deployment code
This commit is contained in:
7
ESXi/Packer/scripts/sudoers.sh
Normal file
7
ESXi/Packer/scripts/sudoers.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh -eux
|
||||
|
||||
sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=sudo' /etc/sudoers;
|
||||
|
||||
# Set up password-less sudo for the vagrant user
|
||||
echo 'vagrant ALL=(ALL) NOPASSWD:ALL' >/etc/sudoers.d/99_vagrant;
|
||||
chmod 440 /etc/sudoers.d/99_vagrant;
|
||||
Reference in New Issue
Block a user