diff --git a/system/admin/gislab-adduser b/system/admin/gislab-adduser index f878b47a..e6767972 100644 --- a/system/admin/gislab-adduser +++ b/system/admin/gislab-adduser @@ -105,6 +105,9 @@ gislab_info "Adding user account" # create LDAP account (without creating home directory - CREATEHOMES="no") ldapadduser $GISLAB_USER gislabusers +# add user to VirtualBox file sharing group +gislab-moduser -a vboxsf $GISLAB_USER + # add user to supplementary group(s) if [ -n "$opt_groups" ]; then gislab-moduser -a $opt_groups $GISLAB_USER diff --git a/system/roles/client-desktop/tasks/main.yml b/system/roles/client-desktop/tasks/main.yml index 6dfb1548..c81f51e6 100644 --- a/system/roles/client-desktop/tasks/main.yml +++ b/system/roles/client-desktop/tasks/main.yml @@ -345,10 +345,15 @@ executable: /bin/bash -# install VirtualBox Guest additions +# Install VirtualBox Guest additions # Latest kernel version supported by VirtualBox Guest additions on Ubuntu 12.04 # is version 3.8. For manual installation run following command: # $ dkms install -m virtualbox-guest/ -k / + +# We always reinstall (--reinstall) packages to fix broken cross-compilation, +# happening when modules are rebuild on system upgrade by DKMS trigger without +# proper configuration of BUILD_TARGET_ARCH variable. + - name: Install VirtualBox Guest additions shell: > if [ '{{ GISLAB_CLIENT_ARCHITECTURE }}' == 'amd64' ]; then @@ -358,13 +363,20 @@ fi && chroot {{ root_dir }}/root - apt-get --no-install-recommends {{ apt_get_opts }} install {{ item }} + apt-get + --reinstall + --no-install-recommends {{ apt_get_opts }} install {{ item }} with_items: - virtualbox-guest-dkms virtualbox-guest-x11 virtualbox-guest-utils args: executable: /bin/bash when: GISLAB_CLIENT_VIRTUALBOX_SUPPORT +- name: Remove local VirtualBox file sharing group (vboxsf) + shell: > + chroot {{ root_dir }}/root + groupdel vboxsf || true + # remove not needed packages - name: Remove packages diff --git a/system/roles/service-ldap/templates/ldap/gislab-tree.ldif.j2 b/system/roles/service-ldap/templates/ldap/gislab-tree.ldif.j2 index f69538fc..376302b5 100644 --- a/system/roles/service-ldap/templates/ldap/gislab-tree.ldif.j2 +++ b/system/roles/service-ldap/templates/ldap/gislab-tree.ldif.j2 @@ -50,3 +50,9 @@ objectClass: posixGroup cn: gislabusers gidNumber: 3001 description: GIS.lab Users Group + +dn: cn=vboxsf,ou=Groups,dc=gis,dc=lab +objectClass: posixGroup +cn: vboxsf +gidNumber: 3100 +description: VirtualBox File Sharing Group