Skip to content

Commit

Permalink
Add basename parameters for configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Mar 26, 2024
1 parent 2eb48e2 commit e4b7f37
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
39 changes: 21 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,27 @@ The following is the list of end-user serviceable parameters:

Global PostgreSQL configuration

| Parameter | Default | Type | Description | Required |
|:-----------------------------|---------:|:-------|:-------------------------------------------|:---------|
| postgresql_release | 16 | string | Target PostgreSQL major release | false |
| postgresql_user | postgres | string | OS user for postgres daemon | false |
| postgresql_group | postgres | string | OS group for postgres daemon | false |
| postgresql_package_state | present | string | PostgreSQL package state | false |
| postgresql_service_state | started | string | PostgreSQL service state | false |
| postgresql_service_enabled | true | bool | Start PostgreSQL on boot | false |
| postgresql_roles | [] | list | List of PostgreSQL roles | false |
| postgresql_databases | [] | list | List of PostgreSQL databases | false |
| postgresql_hba_entries | [] | list | List of HBA entries | false |
| postgresql_ident_entries | [] | list | List of ident entries | false |
| postgresql_initdb | true | list | Toggle flag for database initialization | false |
| postgresql_conf_main_manage | true | list | Toggle flag for postgresql.conf management | false |
| postgresql_conf_hba_manage | true | list | Toggle flag for pg_hba.conf management | false |
| postgresql_conf_ident_manage | true | list | Toggle flag for pg_ident.conf management | false |
| postgresql_role_manage | true | list | Toggle flag for role management | false |
| postgresql_datrabase_manage | true | list | Toggle flag for database management | false |
| Parameter | Default | Type | Description | Required |
|:-----------------------------|----------------:|:-------|:-------------------------------------------|:---------|
| postgresql_release | 16 | string | Target PostgreSQL major release | false |
| postgresql_user | postgres | string | OS user for postgres daemon | false |
| postgresql_group | postgres | string | OS group for postgres daemon | false |
| postgresql_package_state | present | string | PostgreSQL package state | false |
| postgresql_service_state | started | string | PostgreSQL service state | false |
| postgresql_service_enabled | true | bool | Start PostgreSQL on boot | false |
| postgresql_roles | [] | list | List of PostgreSQL roles | false |
| postgresql_databases | [] | list | List of PostgreSQL databases | false |
| postgresql_hba_entries | [] | list | List of HBA entries | false |
| postgresql_ident_entries | [] | list | List of ident entries | false |
| postgresql_initdb | true | list | Toggle flag for database initialization | false |
| postgresql_conf_main_file | postgresql.conf | string | Main config file basename | false |
| postgresql_conf_ident_file | pg_ident.conf | string | Ident config file basename | false |
| postgresql_conf_hba_file | pg_hba.conf | string | HBA config file basename | false |
| postgresql_conf_main_manage | true | list | Toggle flag for postgresql.conf management | false |
| postgresql_conf_hba_manage | true | list | Toggle flag for pg_hba.conf management | false |
| postgresql_conf_ident_manage | true | list | Toggle flag for pg_ident.conf management | false |
| postgresql_role_manage | true | list | Toggle flag for role management | false |
| postgresql_datrabase_manage | true | list | Toggle flag for database management | false |

Please refer to the [defaults directory](/defaults/main/) for an up to date list of input parameters.

Expand Down
6 changes: 3 additions & 3 deletions tasks/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
_postgresql_conf_main_manage: "{{ postgresql_conf_main_manage | default(True) }}"
_postgresql_conf_hba_manage: "{{ postgresql_conf_hba_manage | default(True) }}"
_postgresql_conf_ident_manage: "{{ postgresql_conf_ident_manage | default(True) }}"
_postgresql_conf_main: "{{ _conf_confdir }}/postgresql.conf"
_postgresql_conf_ident: "{{ _conf_confdir }}/pg_ident.conf"
_postgresql_conf_hba: "{{ _conf_confdir }}/pg_hba.conf"
_postgresql_conf_main: "{{ _conf_confdir }}/{{ postgresql_conf_main_file | default('postgresql.conf') }}"
_postgresql_conf_ident: "{{ _conf_confdir }}/{{ postgresql_conf_ident_file | default('pg_ident.conf') }}"
_postgresql_conf_hba: "{{ _conf_confdir }}/{{ postgresql_conf_hba_file | default('pg_hba.conf') }}"
_postgresql_conf_ansible: "{{ _conf_include }}/{{ __postgresql_conf_ansible }}"
_postgresql_conf_pgaudit: "{{ _conf_include }}/{{ __postgresql_conf_pgaudit }}"
_postgresql_conf_pgcron: "{{ _conf_include }}/{{ __postgresql_conf_pgcron }}"
Expand Down

0 comments on commit e4b7f37

Please sign in to comment.