Skip to content

Commit

Permalink
Refactor database role semantics (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak authored Apr 2, 2024
1 parent d21833c commit 076008c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions molecule/databases/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@ provisioner:
roles:
- name: admins
privs: ALL
type: database
objs: database
- name: read_only
privs: ALL
type: database
objs: database
verifier:
name: ansible
scenario:
Expand Down
5 changes: 2 additions & 3 deletions tasks/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
db: "{{ _database.db_connect | default(postgresql_default_database) }}"
role: "{{ _role.name }}"
privs: "{{ _role.privs | default(omit) }}"
objs: "{{ _role.objs | default(omit) }}"
objs: "{{ _database.name }}"
schema: "{{ _role.schema | default(omit) }}"
type: "{{ _role.type | default(omit) }}"
type: database
grant_option: "{{ _role.grant_option | default(omit) }}"
session_role: "{{ _database.session_role | default(omit) }}"
ssl_mode: "{{ _database.ssl_mode | default(omit) }}"
state: "{{ _role.state | default('present') }}"
vars:
ansible_ssh_pipelining: true
Expand Down

0 comments on commit 076008c

Please sign in to comment.