Currently everything is using the teuthology_user. I think it'd be
smart to have ansible use a separate user than teuthology. This way if
something happens to the teuthology user then ansible can just recreate
it.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
---
+# cobbler sets up the user that ansible will use
+ansible_user: cm
+
kickstarts:
- cephlab_trusty.preseed
- cephlab_rhel.ks
## {{ ansible_managed }}
-#set $user = 'ubuntu'
+#set $user = '{{ ansible_user }}'
#set $home = '/home/' + $user
#set $auth_keys = $home + '/.ssh/authorized_keys'
groupadd sudo
-useradd -G sudo ubuntu
+useradd -G sudo $user
passwd -d $user
cat >> /etc/sudoers.d/cephlab_sudo << EOF