summaryrefslogtreecommitdiff
path: root/share/debian-edu-config/tools/gosa-create-host-itzks
blob: 40dcd2edcfac262f7071ee2ac0dc639372cb7ffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

set -e

HOST="${1}"

# call Debian Edu's gosa-create-host
/usr/share/debian-edu-config/tools/gosa-create-host ${@}

# During creation of a host, we should ideally call update-dlw-krb5-keytabs-itzks
# here already. However, it is not possible to add a NIS netgroup tab to a 
# GOsa² system before the system object (and the additional DNS bits) has/have
# been created. So, calling the update-dlw-krb5-keytabs-itzks script
# makes no sense here...

# FIXME: And: it would be really helpful to have POST-action hooks available for
# NIS netgroups... In case people don't edit hosts individually, but prefer
# mass-adding hosts to the diskless-workstation-hosts NIS netgroup.

# ITZkS: assure that host keytabs are readable by puppet
chown :puppet /var/lib/debian-edu/host-keytabs/*.keytab
chmod 0640 /var/lib/debian-edu/host-keytabs/*.keytab

exit 0