Factor out database objects and generalize for reuse in Patroni
Create database objects, including roles, extensions, and functions in a separate recipe. Generalize and guard them to be used with both `postgresql::enable` and `patroni::enable` recipes.
Showing
- files/gitlab-cookbooks/gitlab/libraries/helpers/base_pg_helper.rb 5 additions, 1 deletion...tlab-cookbooks/gitlab/libraries/helpers/base_pg_helper.rb
- files/gitlab-cookbooks/patroni/recipes/enable.rb 9 additions, 40 deletionsfiles/gitlab-cookbooks/patroni/recipes/enable.rb
- files/gitlab-cookbooks/patroni/templates/default/patroni.yaml.erb 0 additions, 1 deletion...tlab-cookbooks/patroni/templates/default/patroni.yaml.erb
- files/gitlab-cookbooks/patroni/templates/default/post-bootstrap.erb 0 additions, 50 deletions...ab-cookbooks/patroni/templates/default/post-bootstrap.erb
- files/gitlab-cookbooks/postgresql/recipes/database_objects.rb 64 additions, 0 deletions...s/gitlab-cookbooks/postgresql/recipes/database_objects.rb
- files/gitlab-cookbooks/postgresql/recipes/enable.rb 1 addition, 38 deletionsfiles/gitlab-cookbooks/postgresql/recipes/enable.rb
- spec/chef/gitlab-ee/recipes/patroni_spec.rb 10 additions, 23 deletionsspec/chef/gitlab-ee/recipes/patroni_spec.rb
Loading
Please register or sign in to comment