bundle agent homes { } bundle agent permission_homes { # Handle the user home directories on the server vars: "home_files" slist => { "/skole/", "/skole/backup/", "/skole/tjener/home0/", "/srv/nfs4/home0/" }; files: # Make sure directories have proper permissions just in case someone installs # a main server using 'atomic' partitioning scheme (only one partition). debian.server.atomic.installation:: "$(home_files)" create => "true", perms => mog("755","root","root"); commands: # Disable autofs on the main server. debian.server.installation:: "/bin/systemctl disable autofs" contain => in_shell; } bundle agent editline_homes { vars: "fstab" string => "/skole/tjener/home0 /srv/nfs4/home0 none bind 0 0"; "autofs" string => "LDAPURI=ldap://$(edu.ldapserver)"; files: debian.server.installation:: "/etc/fstab" create => "true", edit_line => append_if_no_line("$(fstab)"); # Enable autofs using LDAP unless running the server, # standalone or roaming workstations. debian.!server.!standalone.!roaming.installation:: "/etc/default/autofs" create => "true", edit_line => append_if_no_line("$(autofs)"); }