goss.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. http:
  2. https://security-master:9200/_cluster/health:
  3. status: 200
  4. timeout: 2000
  5. allow-insecure: true
  6. username: elastic
  7. password: "{{ .Env.ELASTIC_PASSWORD }}"
  8. body:
  9. - "green"
  10. - '"number_of_nodes":3'
  11. - '"number_of_data_nodes":3'
  12. https://localhost:9200/:
  13. status: 200
  14. timeout: 2000
  15. allow-insecure: true
  16. username: elastic
  17. password: "{{ .Env.ELASTIC_PASSWORD }}"
  18. body:
  19. - '"cluster_name" : "security"'
  20. - "You Know, for Search"
  21. https://localhost:9200/_license:
  22. status: 200
  23. timeout: 2000
  24. allow-insecure: true
  25. username: elastic
  26. password: "{{ .Env.ELASTIC_PASSWORD }}"
  27. body:
  28. - "active"
  29. - "basic"
  30. file:
  31. /usr/share/elasticsearch/config/elasticsearch.yml:
  32. exists: true
  33. contains:
  34. - "xpack.security.enabled: true"
  35. - "xpack.security.transport.ssl.enabled: true"
  36. - "xpack.security.transport.ssl.verification_mode: certificate"
  37. - "xpack.security.transport.ssl.keystore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12"
  38. - "xpack.security.transport.ssl.truststore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12"
  39. - "xpack.security.http.ssl.enabled: true"
  40. - "xpack.security.http.ssl.truststore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12"
  41. - "xpack.security.http.ssl.keystore.path: /usr/share/elasticsearch/config/certs/elastic-certificates.p12"