File tree 6 files changed +47
-0
lines changed
6 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ postgresql_cluster_name: "main"
27
27
postgresql_cluster_reset : false
28
28
29
29
postgresql_database_owner : " {{ postgresql_admin_user }}"
30
+
30
31
# Extensions
31
32
postgresql_ext_install_contrib : no
32
33
postgresql_ext_install_dev_headers : no
@@ -39,6 +40,10 @@ postgresql_ext_postgis_deps:
39
40
- " postgresql-{{ postgresql_version }}-postgis-{{ postgresql_ext_postgis_version }}"
40
41
- " postgresql-{{ postgresql_version }}-postgis-scripts"
41
42
43
+ # Foreign Data Wrapper(s)
44
+ postgresql_fdw_mysql : no
45
+ postgresql_fdw_ogr : no
46
+
42
47
# List of databases to be created (optional)
43
48
postgresql_databases : []
44
49
Original file line number Diff line number Diff line change
1
+ ---
2
+ # file: postgresql/tasks/fdw.yml
3
+ # tasks for PostgreSQL Foreign Data Wrappers
4
+
5
+ - name : PostgreSQL | FDW | Load OS specific variables
6
+ include_vars : " {{ lookup('first_found', params) }}"
7
+ vars :
8
+ params :
9
+ files :
10
+ - " {{ ansible_distribution }}.yml"
11
+ - " {{ ansible_os_family }}.yml"
12
+ paths :
13
+ - ../vars
14
+
15
+ - name : PostgreSQL | FDW | MySQL
16
+ package :
17
+ name : " {{ postgresql_fdw_mysql_packages }}"
18
+ state : present
19
+ when : postgresql_fdw_mysql
20
+
21
+ - name : PostgreSQL | FDW | OGR
22
+ package :
23
+ name : " {{ postgresql_fdw_ogr_packages }}"
24
+ state : present
25
+ when : postgresql_fdw_ogr
Original file line number Diff line number Diff line change 21
21
- import_tasks : extensions.yml
22
22
tags : [postgresql, postgresql-extensions]
23
23
24
+ - import_tasks : fdw.yml
25
+ tags : [postgresql, postgresql-fdw]
26
+
24
27
- import_tasks : configure.yml
25
28
tags : [postgresql, postgresql-configure]
26
29
Original file line number Diff line number Diff line change 1
1
---
2
+ # PostgreSQL vars for Debian based distributions
3
+
2
4
postgresql_service_name : " postgresql"
3
5
4
6
postgresql_bin_directory : /usr/bin
7
+
8
+ postgresql_fdw_mysql_packages : " postgresql-{{ postgresql_version }}-mysql-fdw"
9
+ postgresql_fdw_ogr_packages : " postgresql-{{ postgresql_version }}-ogr-fdw"
Original file line number Diff line number Diff line change 1
1
---
2
+ # PostgreSQL vars for RedHat based distributions
3
+ #
2
4
# Using a different cluster name could cause problems with SELinux.
3
5
# See /usr/lib/systemd/system/postgresql-*.service
4
6
postgresql_cluster_name : " data"
@@ -12,3 +14,6 @@ postgresql_bin_directory: "/usr/pgsql-{{postgresql_version}}/bin"
12
14
postgresql_unix_socket_directories :
13
15
- " {{ postgresql_pid_directory }}"
14
16
- /tmp
17
+
18
+ postgresql_fdw_mysql_packages : " mysql_fdw_{{ postgresql_version_terse }}"
19
+ postgresql_fdw_ogr_packages : " ogr_fdw{{ postgresql_version_terse }}"
Original file line number Diff line number Diff line change 1
1
---
2
+ # PostgreSQL vars for Ubuntu Xenial (16.04LTS)
2
3
3
4
postgresql_ext_postgis_deps :
4
5
- libgeos-c1v5
5
6
- " postgresql-{{postgresql_version}}-postgis-{{postgresql_ext_postgis_version}}"
6
7
- " postgresql-{{postgresql_version}}-postgis-scripts"
8
+
9
+ postgresql_fdw_mysql_packages : " postgresql-{{ postgresql_version }}-mysql-fdw"
10
+ postgresql_fdw_ogr_packages : " postgresql-{{ postgresql_version }}-ogr-fdw"
You can’t perform that action at this time.
0 commit comments