system-config/playbooks/roles/zuul-user/tasks/main.yaml
Ian Wienand 52850ddb63 404 periodic job: minor fixes
* Remove a stray trailing ' from the key
* update the key url to use https
* fix the log path to scrape

Change-Id: I580b63f08147494a937d44f4f6637947221c8937
2020-02-26 14:28:03 +11:00

23 lines
930 B
YAML

- name: Create zuul user
user:
name: zuul
comment: User for running remote zuul jobs
shell: /bin/bash
- name: Install sudo permissions for zuul
copy:
src: zuul.sudo
dest: '/etc/sudoers.d/zuul'
owner: root
group: root
mode: 0440
when: zuul_user_enable_sudo
- name: Install system-config per-project key for zuul
authorized_key:
user: zuul
state: present
key: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDcXd/QJDEprSLh6N6bULnhchf9M+uzYBEJ2b51Au67FON+5M6VEj5Ut+DlkEPhabOP+tSv9Cn1HpmpBjdEOXdmBj6JS7G/gBb4w28oZDyNjrPT2ebpRw/XnVEkGfikR2J+j3o7CV+ybhLDalXm2TUDReVXnONUq3YzZbjRzoYs0xxrxyss47vZP0xFpsAt9jCMAJW2k6H589VUY38k9LFyhZUZ72FB6eJ68B9GN0TimBYm2DqvupBGQrRhkP8OZ0WoBV8PulKXaHVFdmfBNHB7E7FLlZKuiM6nkV4bOWMGOB/TF++wXBK86t9po3pWCM7+kr72xGRTE+6LuZ2z1K+h
comment: Zuul key from https://zuul.opendev.org/api/tenant/openstack/project-ssh-key/opendev/system-config.pub at 2020-02-26