diff options
author | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2019-07-23 15:02:00 +0200 |
---|---|---|
committer | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2019-07-24 12:05:27 +0200 |
commit | 07adef3d6e19737962ad63b9eae36f18ccab02bb (patch) | |
tree | 3f8dd68de5c7397631505225065699b47be6fab8 /test/security/k8s | |
parent | bbf79d7cd7a2a0abd6cbed029ee90fc9d119f3ef (diff) |
k8s: Add "vagrant" user to "docker" group in virtual environment
Node customization scripts do that for "ubuntu" user only (added by
default on OpenStack images). Vagrant boxes use "vagrant" user [1]
instead.
[1] https://www.vagrantup.com/docs/boxes/base.html#quot-vagrant-quot-user
Issue-ID: SECCOM-235
Change-Id: Ic4f832aa9a37230503e3c5bd29f8ae5fcd3883db
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s')
-rw-r--r-- | test/security/k8s/vagrant/dublin/Vagrantfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/security/k8s/vagrant/dublin/Vagrantfile b/test/security/k8s/vagrant/dublin/Vagrantfile index dc5580944..abef9f8a1 100644 --- a/test/security/k8s/vagrant/dublin/Vagrantfile +++ b/test/security/k8s/vagrant/dublin/Vagrantfile @@ -41,10 +41,12 @@ Vagrant.configure('2') do |config| if machine[:name] == 'control' config.vm.provision :shell, path: "../../tools/dublin/imported/openstack-k8s-controlnode.sh" + config.vm.provision :shell, inline: "usermod -aG docker vagrant" # script above adds "ubuntu" user only end if machine[:name] == 'worker' config.vm.provision :shell, path: "../../tools/dublin/imported/openstack-k8s-workernode.sh" + config.vm.provision :shell, inline: "usermod -aG docker vagrant" # script above adds "ubuntu" user only end if machine[:name] == 'operator' |