generate_deploymentconfigs.yaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. - name: Generate kibana deploymentconfig
  3. template: src=kibana.j2 dest={{mktemp.stdout}}/logging-kibana-dc.yaml
  4. vars:
  5. component: kibana
  6. deploy_name: "logging-{{component}}"
  7. image: "{{openshift_logging_image_prefix}}logging-kibana:{{openshift_logging_image_version}}"
  8. proxy_image: "{{openshift_logging_image_prefix}}logging-auth-proxy:{{openshift_logging_image_version}}"
  9. es_host: logging-es
  10. es_port: "{{openshift_logging_es_port}}"
  11. check_mode: no
  12. changed_when: no
  13. - name: Generate OPS kibana deploymentconfig
  14. template: src=kibana.j2 dest={{mktemp.stdout}}/logging-kibana-ops-dc.yaml
  15. vars:
  16. component: kibana-ops
  17. deploy_name: "logging-{{component}}"
  18. image: "{{openshift_logging_image_prefix}}logging-kibana:{{openshift_logging_image_version}}"
  19. proxy_image: "{{openshift_logging_image_prefix}}logging-auth-proxy:{{openshift_logging_image_version}}"
  20. es_host: logging-es-ops
  21. es_port: "{{openshift_logging_es_ops_port}}"
  22. check_mode: no
  23. changed_when: no
  24. - name: Generate elasticsearch deploymentconfig
  25. template: src=es.j2 dest={{mktemp.stdout}}/logging-es-dc.yaml
  26. vars:
  27. component: es
  28. deploy_name_prefix: "logging-{{component}}"
  29. deploy_name: "{{deploy_name_prefix}}-abc123"
  30. image: "{{openshift_logging_image_prefix}}logging-elasticsearch:{{openshift_logging_image_version}}"
  31. es_cluster_name: "{{component}}"
  32. check_mode: no
  33. changed_when: no
  34. - name: Generate OPS elasticsearch deploymentconfig
  35. template: src=es.j2 dest={{mktemp.stdout}}/logging-es-ops-dc.yaml
  36. vars:
  37. component: es-ops
  38. deploy_name_prefix: "logging-{{component}}"
  39. deploy_name: "{{deploy_name_prefix}}-abc123"
  40. image: "{{openshift_logging_image_prefix}}logging-elasticsearch:{{openshift_logging_image_version}}"
  41. es_cluster_name: "{{component}}"
  42. check_mode: no
  43. changed_when: no
  44. - name: Generate curator deploymentconfig
  45. template: src=curator.j2 dest={{mktemp.stdout}}/logging-curator-dc.yaml
  46. vars:
  47. component: curator
  48. deploy_name: "logging-{{component}}"
  49. image: "{{openshift_logging_image_prefix}}logging-curator:{{openshift_logging_image_version}}"
  50. check_mode: no
  51. changed_when: no
  52. - name: Generate OPS curator deploymentconfig
  53. template: src=curator.j2 dest={{mktemp.stdout}}/logging-curator-ops-dc.yaml
  54. vars:
  55. component: curator-ops
  56. deploy_name: "logging-{{component}}"
  57. image: "{{openshift_logging_image_prefix}}logging-curator:{{openshift_logging_image_version}}"
  58. openshift_logging_es_host: logging-es-ops
  59. check_mode: no
  60. changed_when: no