]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
teuthology: use variable for user name 448/head
authorKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Thu, 14 Mar 2019 18:00:03 +0000 (19:00 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Thu, 14 Mar 2019 18:08:14 +0000 (19:08 +0100)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
roles/teuthology/tasks/main.yml
roles/teuthology/templates/teuthology-worker.init

index d5cdb28ae13164cfd92d7b7f7f5168c9036b66a2..3a276f3d7c6b116bb6ee77ae7741a3f3d1b5ffe9 100644 (file)
 - name: Ship teuthology user's crontab update script
   template:
     src: update-crontab.sh
-    dest: /home/teuthology/bin/update-crontab.sh
+    dest: "/home/{{ teuthology_scheduler_user }}/bin/update-crontab.sh"
     mode: 0775
-    owner: teuthology
-    group: teuthology
+    owner: "{{ teuthology_scheduler_user }}"
+    group: "{{ teuthology_scheduler_user }}"
   tags:
     - crontab
 
index 590b4616c343b00c590a8eecb6277d6afc45849c..63d9ec9045c11bb61ad211cdc1d0e5ec9761110e 100644 (file)
@@ -35,7 +35,7 @@ export NWORKERS=20
 
 [ -f /etc/default/teuthology ] && source /etc/default/teuthology
 
-user=${TEUTHOLOGY_USERNAME:-teuthworker}
+user=${TEUTHOLOGY_USERNAME:-"{{ teuthology_execution_user }}"}
 export HOME=/home/$user
 export WORKER_HOME=$HOME/src/teuthology_master
 #/usr/share/nginx/html