summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/tasks/generate_certificates.yaml
blob: b71e352631b4ee55eb80bbb49cce844d0486a4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
---
- name: generate ca certificate chain
  command: >
    {{ openshift_client_binary }} adm ca create-signer-cert
    --config={{ mktemp.stdout }}/admin.kubeconfig
    --key='{{ mktemp.stdout }}/ca.key'
    --cert='{{ mktemp.stdout }}/ca.crt'
    --serial='{{ mktemp.stdout }}/ca.serial.txt'
    --name="metrics-signer@{{lookup('pipe','date +%s')}}"

- include_tasks: generate_hawkular_certificates.yaml