diff options
author | Paul B <paul@bonaud.fr> | 2019-01-25 13:38:57 +0100 |
---|---|---|
committer | Paul B <paul@bonaud.fr> | 2019-01-29 11:42:40 +0100 |
commit | dd54b74860fd9db85807619109b000b16b9bf52e (patch) | |
tree | 76d260e8794efa0d4bc68fdae79303414dd7a5c8 /test/main.yml | |
parent | 4d626d5a5c05f4676c0a403929de775404f9e63c (diff) | |
download | ansible-postgresql-role-dd54b74860fd9db85807619109b000b16b9bf52e.tar.gz ansible-postgresql-role-dd54b74860fd9db85807619109b000b16b9bf52e.tar.zst ansible-postgresql-role-dd54b74860fd9db85807619109b000b16b9bf52e.zip |
tests: adding a database creation with extensions
Diffstat (limited to 'test/main.yml')
-rw-r--r-- | test/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/main.yml b/test/main.yml index 6258199..bc9d27c 100644 --- a/test/main.yml +++ b/test/main.yml | |||
@@ -49,12 +49,25 @@ | |||
49 | archive_enabled: True | 49 | archive_enabled: True |
50 | barman_directory: "{{ postgres_barman_directory }}" | 50 | barman_directory: "{{ postgres_barman_directory }}" |
51 | users: | 51 | users: |
52 | - username: tester | ||
53 | password: tester | ||
52 | - username: barman | 54 | - username: barman |
53 | password: "secret_cocktail" | 55 | password: "secret_cocktail" |
54 | permissions: 'SUPERUSER' | 56 | permissions: 'SUPERUSER' |
55 | - username: replicator | 57 | - username: replicator |
56 | password: "secret_repli" | 58 | password: "secret_repli" |
57 | permissions: 'REPLICATION' | 59 | permissions: 'REPLICATION' |
60 | databases: | ||
61 | - dbname: test_database | ||
62 | owner: tester | ||
63 | extensions: | ||
64 | - description: PostGis | ||
65 | apt_deps: | ||
66 | - "postgresql-{{ postgres_version }}-postgis" | ||
67 | names: | ||
68 | - postgis | ||
69 | - postgis_topology | ||
70 | - btree_gist | ||
58 | 71 | ||
59 | with_items: | 72 | with_items: |
60 | - postgres_one | 73 | - postgres_one |