diff --git a/playbooks/roles/zuul-executor/tasks/main.yaml b/playbooks/roles/zuul-executor/tasks/main.yaml index da0545f2a8..6063188665 100644 --- a/playbooks/roles/zuul-executor/tasks/main.yaml +++ b/playbooks/roles/zuul-executor/tasks/main.yaml @@ -74,6 +74,14 @@ pip3 install --upgrade --upgrade-strategy=only-if-needed "ara<1.0.0" fi +- name: Write key for talking to nodepool nodes + copy: + content: '{{ nodepool_test_node_ssh_private_key_contents }}' + dest: /var/lib/zuul/ssh/nodepool_id_rsa + mode: 0400 + owner: zuul + group: zuul + - name: Create Zuul Executor directories file: state: directory diff --git a/playbooks/zuul/run-base.yaml b/playbooks/zuul/run-base.yaml index 33d151befa..560835af08 100644 --- a/playbooks/zuul/run-base.yaml +++ b/playbooks/zuul/run-base.yaml @@ -59,6 +59,7 @@ - group_vars/control-plane-clouds.yaml - group_vars/afs-client.yaml - group_vars/zuul.yaml + - group_vars/zuul-executor.yaml - group_vars/zuul-merger.yaml - group_vars/zuul-scheduler.yaml - group_vars/zuul-web.yaml diff --git a/playbooks/zuul/templates/group_vars/zuul-executor.yaml.j2 b/playbooks/zuul/templates/group_vars/zuul-executor.yaml.j2 new file mode 100644 index 0000000000..0bfb9160b5 --- /dev/null +++ b/playbooks/zuul/templates/group_vars/zuul-executor.yaml.j2 @@ -0,0 +1,28 @@ +nodepool_test_node_ssh_private_key_contents: | + -----BEGIN OPENSSH PRIVATE KEY----- + b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn + NhAAAAAwEAAQAAAQEAvOe+uah8mdEF+/BQxDr3J6o0f5M7BS8L0kVy73SkOBuu/fJASlq+ + NfKkJlfKWWP9CQBCgW74woIhjrfE9RZxIsxtPX0RXPmYGaEvYQezOxWAEANpxR98Upw4CW + CZdlZTUXgVTtFaiZE4REaRlbmCMN4DmlXHq+83X8UGI60IR6uG9CrrcCS93q08vZrAbrOg + 6cYU2LY0tUkIaDJTIAieHsm7R+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