| 1 |
# Tempest runs under an unpriviledged user, thus the user cannot read |
| 2 |
# /etc/octavia/.ssh/ created by the Octavia devstack plugin. As work-around, |
| 3 |
# a new SSH key is generated and given read access to all users. |
| 4 |
# See also OCTAVIA_USE_PREGENERATED_SSH_KEY and |
| 5 |
# OCTAVIA_PREGENERATED_SSH_KEY_PATH set in the |
| 6 |
# octavia-v2-act-stdby-dsvm-scenario job definition |
| 7 |
- hosts: all |
| 8 |
name: Octavia DSVM jobs pre-run playbook |
| 9 |
tasks: |
| 10 |
- name: Generate Octavia RSA key |
| 11 |
shell: ssh-keygen -t rsa -f /tmp/octavia_ssh_key -q -N "" |
| 12 |
- name: Allow read permissions to other users |
| 13 |
file: |
| 14 |
path: /tmp/octavia_ssh_key |
| 15 |
state: file |
| 16 |
mode: 0644 |