File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 5454 dest : " {{ kayobe_env_config_path }}/kolla/certificates/ca/openbao.crt"
5555 mode : " 0600"
5656 delegate_to : localhost
57+
58+ # NOTE(seunghun1ee): Kolla Ansible reuses internal TLS certificate when
59+ # creating certificate for proxysql
60+ # https://opendev.org/openstack/kolla-ansible/src/branch/stable/2025.1/ansible/roles/certificates/tasks/generate.yml#L169-L183
61+ - name : Generate ProxySQL certificates
62+ when : kolla_enable_proxysql
63+ block :
64+ - name : Copy ProxySQL certificate
65+ no_log : true
66+ ansible.builtin.copy :
67+ dest : " {{ kayobe_env_config_path }}/kolla/certificates/proxysql-cert.pem"
68+ content : |
69+ {{ internal_cert.data.certificate }}
70+ {{ internal_cert.data.issuing_ca }}
71+ mode : " 0600"
72+ delegate_to : localhost
73+
74+ - name : Copy ProxySQL certificate key
75+ no_log : true
76+ ansible.builtin.copy :
77+ dest : " {{ kayobe_env_config_path }}/kolla/certificates/proxysql-key.pem"
78+ content : |
79+ {{ internal_cert.data.private_key }}
80+ mode : " 0600"
81+ delegate_to : localhost
82+
83+ # NOTE(seunghun1ee): ProxySQL only expects root CA to be named ``root.crt`` because of
84+ # https://opendev.org/openstack/kolla-ansible/src/branch/stable/2025.1/ansible/roles/loadbalancer/templates/proxysql/proxysql.json.j2#L36
85+ # Make a duplicate of ``openbao.crt`` named ``root.crt``
86+ - name : Copy root CA for ProxySQL
87+ ansible.builtin.copy :
88+ src : " {{ kayobe_env_config_path }}/openbao/OS-TLS-ROOT.pem"
89+ dest : " {{ kayobe_env_config_path }}/kolla/certificates/ca/root.crt"
90+ mode : " 0600"
91+ delegate_to : localhost
Original file line number Diff line number Diff line change 5454 dest : " {{ kayobe_env_config_path }}/kolla/certificates/ca/vault.crt"
5555 mode : " 0600"
5656 delegate_to : localhost
57+
58+ # NOTE(seunghun1ee): Kolla Ansible reuses internal TLS certificate when
59+ # creating certificate for proxysql
60+ # https://opendev.org/openstack/kolla-ansible/src/branch/stable/2025.1/ansible/roles/certificates/tasks/generate.yml#L169-L183
61+ - name : Generate ProxySQL certificates
62+ when : kolla_enable_proxysql
63+ block :
64+ - name : Copy ProxySQL certificate
65+ no_log : true
66+ ansible.builtin.copy :
67+ dest : " {{ kayobe_env_config_path }}/kolla/certificates/proxysql-cert.pem"
68+ content : |
69+ {{ internal_cert.data.certificate }}
70+ {{ internal_cert.data.issuing_ca }}
71+ mode : " 0600"
72+ delegate_to : localhost
73+
74+ - name : Copy ProxySQL certificate key
75+ no_log : true
76+ ansible.builtin.copy :
77+ dest : " {{ kayobe_env_config_path }}/kolla/certificates/proxysql-key.pem"
78+ content : |
79+ {{ internal_cert.data.private_key }}
80+ mode : " 0600"
81+ delegate_to : localhost
82+
83+ # NOTE(seunghun1ee): ProxySQL only expects root CA to be named ``root.crt`` because of
84+ # https://opendev.org/openstack/kolla-ansible/src/branch/stable/2025.1/ansible/roles/loadbalancer/templates/proxysql/proxysql.json.j2#L36
85+ # Make a duplicate of ``vault.crt`` named ``root.crt``
86+ - name : Copy root CA for ProxySQL
87+ ansible.builtin.copy :
88+ src : " {{ kayobe_env_config_path }}/vault/OS-TLS-ROOT.pem"
89+ dest : " {{ kayobe_env_config_path }}/kolla/certificates/ca/root.crt"
90+ mode : " 0600"
91+ delegate_to : localhost
You can’t perform that action at this time.
0 commit comments