Skip to content
Snippets Groups Projects
Commit 2d8e5dcf authored by František Dvořák's avatar František Dvořák
Browse files

Hadoop: enable login using Kerberos

parent c266172e
Branches
No related tags found
No related merge requests found
...@@ -51,3 +51,5 @@ write_files: ...@@ -51,3 +51,5 @@ write_files:
runcmd: runcmd:
- cd /etc/puppet/code && HOME=/root librarian-puppet install --verbose - cd /etc/puppet/code && HOME=/root librarian-puppet install --verbose
- mkdir /data 2>/dev/null || true - mkdir /data 2>/dev/null || true
- egrep '^\s*GSSAPIAuthentication\s+yes' /etc/ssh/sshd_config || echo 'GSSAPIAuthentication yes' >> /etc/ssh/sshd_config
- service ssh reload
...@@ -51,3 +51,5 @@ write_files: ...@@ -51,3 +51,5 @@ write_files:
runcmd: runcmd:
- cd /etc/puppet/code && HOME=/root librarian-puppet install --verbose - cd /etc/puppet/code && HOME=/root librarian-puppet install --verbose
- mkdir /data 2>/dev/null || true - mkdir /data 2>/dev/null || true
- egrep '^\s*GSSAPIAuthentication\s+yes' /etc/ssh/sshd_config || echo 'GSSAPIAuthentication yes' >> /etc/ssh/sshd_config
- service ssh reload
...@@ -51,3 +51,5 @@ write_files: ...@@ -51,3 +51,5 @@ write_files:
runcmd: runcmd:
- cd /etc/puppet/code && HOME=/root librarian-puppet install --verbose - cd /etc/puppet/code && HOME=/root librarian-puppet install --verbose
- mkdir /data 2>/dev/null || true - mkdir /data 2>/dev/null || true
- egrep '^\s*GSSAPIAuthentication\s+yes' /etc/ssh/sshd_config || echo 'GSSAPIAuthentication yes' >> /etc/ssh/sshd_config
- service ssh reload
...@@ -44,6 +44,7 @@ cp -vp hadoop-adduser.sh $BODI_CHROOT_PATH/usr/local/sbin/ ...@@ -44,6 +44,7 @@ cp -vp hadoop-adduser.sh $BODI_CHROOT_PATH/usr/local/sbin/
cp -vp scripts/*.sh $BODI_CHROOT_PATH/usr/local/sbin/ cp -vp scripts/*.sh $BODI_CHROOT_PATH/usr/local/sbin/
cp -vp ../single.pp ../single2.pp $BODI_CHROOT_PATH/root/ cp -vp ../single.pp ../single2.pp $BODI_CHROOT_PATH/root/
cp -vp motd $BODI_CHROOT_PATH/etc/motd cp -vp motd $BODI_CHROOT_PATH/etc/motd
egrep '^\s*GSSAPIAuthentication\s+yes' $BODI_CHROOT_PATH/etc/ssh/sshd_config || echo 'GSSAPIAuthentication yes' >> $BODI_CHROOT_PATH/etc/ssh/sshd_config
# tests # tests
mkdir -p $BODI_CHROOT_PATH/opt/hadoop-tests mkdir -p $BODI_CHROOT_PATH/opt/hadoop-tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment