[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-build/master] Bug 23384: Add user boklm on build-sunet-a.torproject.net



commit 1f108e3d3ddcfeff88c613f99983afc2e41cc273
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Mon Sep 4 15:39:14 2017 +0200

    Bug 23384: Add user boklm on build-sunet-a.torproject.net
---
 tools/ansible/roles/tbb-team/defaults/main.yml |  3 +++
 tools/ansible/roles/tbb-team/files/boklm.pub   |  1 +
 tools/ansible/roles/tbb-team/tasks/main.yml    | 15 +++++++++++++++
 tools/ansible/tbb-build.yml                    |  1 +
 4 files changed, 20 insertions(+)

diff --git a/tools/ansible/roles/tbb-team/defaults/main.yml b/tools/ansible/roles/tbb-team/defaults/main.yml
new file mode 100644
index 0000000..b76fc26
--- /dev/null
+++ b/tools/ansible/roles/tbb-team/defaults/main.yml
@@ -0,0 +1,3 @@
+---
+tbb_team_members:
+    - boklm
diff --git a/tools/ansible/roles/tbb-team/files/boklm.pub b/tools/ansible/roles/tbb-team/files/boklm.pub
new file mode 100644
index 0000000..471f271
--- /dev/null
+++ b/tools/ansible/roles/tbb-team/files/boklm.pub
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuY6Clt4tqljhnQAfIAq2RcuB3UgQ1odLtYc+AlnwcgWgYoqByGXT52YnYd44MQ0rPpXGh6M5MeXGF33OOLkBm8QeFHiev4njq/14A5qMIH+xV4T/ft1vEE3PTuarzyhv/Qp1s0dt4/XibzMPND5zFQJUFsTON6WYix0cwBOa80W46P56jPca56kTnL045N8MJNFA4ELby68QaMMK0lEzupgLtzRnqc123paZr3FAgCOxNlYC83ftAsDuVNCzbp0+i3W0ZWBbqVo+wWbty7WJK4TjuQszS2oP+d5xxktXUVyVXu2xm0BV0kXgh6lV4ixDPKQsZrlUYalFN5QIQWwzb q-wo
diff --git a/tools/ansible/roles/tbb-team/tasks/main.yml b/tools/ansible/roles/tbb-team/tasks/main.yml
new file mode 100644
index 0000000..9beaf0b
--- /dev/null
+++ b/tools/ansible/roles/tbb-team/tasks/main.yml
@@ -0,0 +1,15 @@
+---
+- name: Add tbb-team users
+  user:
+      name: "{{ item }}"
+      state: present
+      groups: tbb-build
+      shell: /bin/bash
+  with_items: tbb_team_members
+
+- name: Add ssh keys to authorized_keys
+  authorized_key:
+      user: "{{ item }}"
+      state: present
+      key: "{{ lookup('file', item + '.pub') }}"
+  with_items: tbb_team_members
diff --git a/tools/ansible/tbb-build.yml b/tools/ansible/tbb-build.yml
index dc5dfe5..e74e665 100644
--- a/tools/ansible/tbb-build.yml
+++ b/tools/ansible/tbb-build.yml
@@ -4,3 +4,4 @@
   roles:
       - role: tbb-builder
       - role: useful-packages
+      - role: tbb-team

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits