diff --git a/distros/opensuse/16.0/http/profile.jsonnet b/distros/opensuse/16.0/http/profile.jsonnet index d686f33..d0dcd5b 100644 --- a/distros/opensuse/16.0/http/profile.jsonnet +++ b/distros/opensuse/16.0/http/profile.jsonnet @@ -59,10 +59,11 @@ local memory = agama.findByID(agama.lshw, 'memory').size; }] }, scripts: { - pre: [], post: [ { name: 'configure-vagrant', + chroot: true, body: ||| + #!/bin/sh # Configure the insecure Vagrant SSH key mkdir -p /home/vagrant/.ssh curl -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub @@ -71,7 +72,7 @@ local memory = agama.findByID(agama.lshw, 'memory').size; # Start services systemctl enable sshd # Configure sudo access for the vagrant user - cat < EOF > /etc/sudoers/sudoers.d/00_vagrant + cat << EOF > /etc/sudoers.d/00_vagrant Defaults:vagrant !requiretty vagrant ALL=(ALL) NOPASSWD: ALL root ALL=(ALL) NOPASSWD: ALL