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.

23 lines
791 B

  1. # -*- ispell-local-dictionary: "english" -*-
  2. * Usage
  3. By default, =postgres= charm won't need any options in general.
  4. However, services using =postgres= through relations will typically
  5. want to set some options (if the default behavior is not enough).
  6. #+begin_src yaml
  7. myservice:
  8. relations:
  9. postgres-database:
  10. postgres:
  11. dbname: foo ## default uses the name of querying service (here: 'myservice')
  12. user: mydbuser ## default uses the name of querying service (here: 'myservice')
  13. password: bar ## if not set, a random password will be generated
  14. extensions: ## default is empty list
  15. - unaccent
  16. - pg_trgm
  17. init-sql: !bash-stdout | ## default is empty
  18. zcat "$BASE_CHARM_PATH/src/init.sql.gz"
  19. #+end_src