install_support.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. # This is the base configuration for installing the other components
  3. - name: Set logging project
  4. oc_project:
  5. state: present
  6. name: "{{ openshift_logging_namespace }}"
  7. node_selector: "{{ openshift_logging_nodeselector | default(null) }}"
  8. - name: Labelling logging project
  9. oc_label:
  10. state: present
  11. kind: namespace
  12. name: "{{ openshift_logging_namespace }}"
  13. labels:
  14. - key: "{{ item.key }}"
  15. value: "{{ item.value }}"
  16. with_dict: "{{ openshift_logging_labels | default({}) }}"
  17. when:
  18. - openshift_logging_labels is defined
  19. - openshift_logging_labels is dict
  20. - name: Labelling logging project
  21. oc_label:
  22. state: present
  23. kind: namespace
  24. name: "{{ openshift_logging_namespace }}"
  25. labels:
  26. - key: "{{ openshift_logging_label_key }}"
  27. value: "{{ openshift_logging_label_value }}"
  28. when:
  29. - openshift_logging_label_key is defined
  30. - openshift_logging_label_key != ""
  31. - openshift_logging_label_value is defined
  32. - name: Create logging cert directory
  33. file: path={{openshift.common.config_base}}/logging state=directory mode=0755
  34. changed_when: False
  35. check_mode: no
  36. - include: generate_certs.yaml
  37. vars:
  38. generated_certs_dir: "{{openshift.common.config_base}}/logging"
  39. - name: Create temp directory for all our templates
  40. file: path={{mktemp.stdout}}/templates state=directory mode=0755
  41. changed_when: False
  42. check_mode: no