RETIRED, Fuel CCP - Horizon deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.7 KiB

  1. dsl_version: 0.1.0
  2. service:
  3. name: horizon
  4. ports:
  5. - {{ horizon.port }}
  6. containers:
  7. - name: horizon
  8. image: horizon
  9. probes:
  10. readiness:
  11. type: "httpGet"
  12. port: {{ horizon.port.cont }}
  13. path: "/"
  14. volumes:
  15. - name: horizon-logs
  16. path: "/var/log/ccp/horizon"
  17. type: host
  18. readOnly: False
  19. pre:
  20. - name: chown-logs-dir
  21. command: "sudo /bin/chown horizon:horizon /var/log/ccp/horizon"
  22. daemon:
  23. dependencies:
  24. - keystone
  25. - memcached
  26. files:
  27. - horizon-local-settings
  28. - openstack-dashboard-conf
  29. # {% if security.tls.enabled %}
  30. - ca_cert
  31. # {% endif %}
  32. command: daemon.sh
  33. # {% if security.tls.enabled %}
  34. - name: nginx
  35. image: nginx
  36. daemon:
  37. files:
  38. - servers
  39. - upstreams
  40. - server-cert
  41. - server-key
  42. command: nginx
  43. # {% endif %}
  44. files:
  45. horizon-local-settings:
  46. path: /etc/openstack-dashboard/local_settings
  47. content: local_settings.j2
  48. openstack-dashboard-conf:
  49. path: /etc/apache2/conf-enabled/openstack-dashboard.conf
  50. content: openstack-dashboard.conf.j2
  51. # {% if security.tls.enabled %}
  52. servers:
  53. path: /etc/nginx/conf.d/servers.conf
  54. content: servers.conf.j2
  55. perm: "0400"
  56. upstreams:
  57. path: /etc/nginx/conf.d/upstreams.conf
  58. content: upstreams.conf.j2
  59. perm: "0400"
  60. ca_cert:
  61. path: /opt/ccp/etc/tls/ca.pem
  62. content: ca-cert.pem.j2
  63. server-cert:
  64. path: /opt/ccp/etc/tls/server-cert.pem
  65. content: server-cert.pem.j2
  66. perm: "0400"
  67. server-key:
  68. path: /opt/ccp/etc/tls/server-key.pem
  69. content: server-key.pem.j2
  70. perm: "0400"
  71. # {% endif %}