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.

58 lines
1.4 KiB

  1. test-db-database:
  2. postgres_database.present:
  3. - name: tildes_test
  4. - owner: tildes
  5. - require:
  6. - postgres_user: tildes
  7. test-db-enable-citext:
  8. postgres_extension.present:
  9. - name: citext
  10. - maintenance_db: tildes_test
  11. - require:
  12. - postgres_database: tildes_test
  13. test-db-enable-ltree:
  14. postgres_extension.present:
  15. - name: ltree
  16. - maintenance_db: tildes_test
  17. - require:
  18. - postgres_database: tildes_test
  19. test-db-enable-intarray:
  20. postgres_extension.present:
  21. - name: intarray
  22. - maintenance_db: tildes_test
  23. - require:
  24. - postgres_database: tildes_test
  25. test-db-enable-pg_trgm:
  26. postgres_extension.present:
  27. - name: pg_trgm
  28. - maintenance_db: tildes_test
  29. - require:
  30. - postgres_database: tildes_test
  31. test-db-enable-plpython3u:
  32. postgres_extension.present:
  33. - name: plpython3u
  34. - maintenance_db: tildes_test
  35. - require:
  36. - postgres_database: tildes_test
  37. test-db-pg_hba-lines:
  38. file.accumulated:
  39. - name: pg_hba_lines
  40. - filename: /etc/postgresql/{{ pillar['postgresql_version'] }}/main/pg_hba.conf
  41. - text:
  42. - 'local tildes_test tildes trust'
  43. - require_in:
  44. - file: /etc/postgresql/{{ pillar['postgresql_version'] }}/main/pg_hba.conf
  45. test-db-pgbouncer-lines:
  46. file.accumulated:
  47. - name: pgbouncer_db_lines
  48. - filename: /etc/pgbouncer/pgbouncer.ini
  49. - text: 'tildes_test ='
  50. - require_in:
  51. - file: /etc/pgbouncer/pgbouncer.ini