You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-16Lines changed: 37 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,33 +18,37 @@ To install:
18
18
ansible-galaxy install ANXS.postgresql
19
19
```
20
20
21
+
21
22
#### Dependencies
22
23
23
24
- ANXS.monit ([Galaxy](https://galaxy.ansible.com/list#/roles/502)/[GH](https://github.com/ANXS/monit)) if you want monit protection (in that case, you should set `monit_protection: true`)
-:grey_question: - will work in the future (help out if you can)
37
40
-:interrobang: - maybe works, not tested
38
41
-:no_entry: - PostgreSQL has reached EOL
39
42
43
+
40
44
#### Variables
41
45
42
46
```yaml
43
47
# Basic settings
44
48
postgresql_version: 9.6
45
-
postgresql_encoding: 'UTF-8'
46
-
postgresql_locale: 'en_US.UTF-8'
47
-
postgresql_ctype: 'en_US.UTF-8'
49
+
postgresql_encoding: "UTF-8"
50
+
postgresql_locale: "en_US.UTF-8"
51
+
postgresql_ctype: "en_US.UTF-8"
48
52
49
53
postgresql_admin_user: "postgres"
50
54
postgresql_default_auth_method: "trust"
@@ -62,9 +66,9 @@ postgresql_databases:
62
66
hstore: yes # flag to install the hstore extension on this database (yes/no)
63
67
uuid_ossp: yes # flag to install the uuid-ossp extension on this database (yes/no)
64
68
citext: yes # flag to install the citext extension on this database (yes/no)
65
-
encoding: 'UTF-8'# override global {{ postgresql_encoding }} variable per database
66
-
lc_collate: 'en_GB.UTF-8'# override global {{ postgresql_locale }} variable per database
67
-
lc_ctype: 'en_GB.UTF-8'# override global {{ postgresql_ctype }} variable per database
69
+
encoding: "UTF-8"# override global {{ postgresql_encoding }} variable per database
70
+
lc_collate: "en_GB.UTF-8"# override global {{ postgresql_locale }} variable per database
71
+
lc_ctype: "en_GB.UTF-8"# override global {{ postgresql_ctype }} variable per database
68
72
69
73
# List of database extensions to be created (optional)
70
74
postgresql_database_extensions:
@@ -87,10 +91,11 @@ postgresql_user_privileges:
87
91
role_attr_flags: "CREATEDB"# role attribute flags
88
92
```
89
93
90
-
There's a lot more knobs and bolts to set, which you can find in the defaults/main.yml
94
+
There's a lot more knobs and bolts to set, which you can find in the [defaults/main.yml](./defaults/main.yml)
91
95
92
96
93
97
#### Testing
98
+
94
99
This project comes with a Vagrantfile, this is a fast and easy way to test changes to the role, fire it up with `vagrant up`
95
100
96
101
See [vagrant docs](https://docs.vagrantup.com/v2/) for getting setup with vagrant
@@ -101,14 +106,30 @@ If you want to toy with the test play, see [tests/playbook.yml](./tests/playbook
101
106
102
107
If you are contributing, please first test your changes within the vagrant environment, (using the targeted distribution), and if possible, ensure your change is covered in the tests found in [.travis.yml](./.travis.yml)
103
108
109
+
104
110
#### License
105
111
106
112
Licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
0 commit comments