47
47
* [ ` postgresql::server::db ` ] ( #postgresql--server--db ) : Define for conveniently creating a role, database and assigning the correctpermissions.
48
48
* [ ` postgresql::server::default_privileges ` ] ( #postgresql--server--default_privileges ) : Manage a database defaults privileges. Only works with PostgreSQL version 9.6 and above.
49
49
* [ ` postgresql::server::extension ` ] ( #postgresql--server--extension ) : Activate an extension on a postgresql database.
50
- * [ ` postgresql::server::grant ` ] ( #postgresql--server--grant ) : Define for granting permissions to roles.
51
50
* [ ` postgresql::server::grant_role ` ] ( #postgresql--server--grant_role ) : Define for granting membership to a role.
52
51
* [ ` postgresql::server::instance::config ` ] ( #postgresql--server--instance--config ) : Manages the config for a postgresql::server instance
53
52
* [ ` postgresql::server::instance::initdb ` ] ( #postgresql--server--instance--initdb ) : Manages initdb feature for a postgresql::server instance
@@ -348,39 +347,39 @@ Default value: `undef`
348
347
349
348
##### <a name =" -postgresql--globals--initdb_path " ></a >` initdb_path `
350
349
351
- Data type: ` Optional[Variant[String[1], Stdlib::Absolutepath] ] `
350
+ Data type: ` Optional[Stdlib::Absolutepath] `
352
351
353
352
Path to the initdb command.
354
353
355
354
Default value: ` undef `
356
355
357
356
##### <a name =" -postgresql--globals--psql_path " ></a >` psql_path `
358
357
359
- Data type: ` Optional[Variant[String[1], Stdlib::Absolutepath] ] `
358
+ Data type: ` Optional[Stdlib::Absolutepath] `
360
359
361
360
Sets the path to the psql command.
362
361
363
362
Default value: ` undef `
364
363
365
364
##### <a name =" -postgresql--globals--pg_hba_conf_path " ></a >` pg_hba_conf_path `
366
365
367
- Data type: ` Optional[Variant[String[1], Stdlib::Absolutepath] ] `
366
+ Data type: ` Optional[Stdlib::Absolutepath] `
368
367
369
368
Specifies the path to your pg_hba.conf file.
370
369
371
370
Default value: ` undef `
372
371
373
372
##### <a name =" -postgresql--globals--pg_ident_conf_path " ></a >` pg_ident_conf_path `
374
373
375
- Data type: ` Optional[Variant[String[1], Stdlib::Absolutepath] ] `
374
+ Data type: ` Optional[Stdlib::Absolutepath] `
376
375
377
376
Specifies the path to your pg_ident.conf file.
378
377
379
378
Default value: ` undef `
380
379
381
380
##### <a name =" -postgresql--globals--postgresql_conf_path " ></a >` postgresql_conf_path `
382
381
383
- Data type: ` Optional[Variant[String[1], Stdlib::Absolutepath] ] `
382
+ Data type: ` Optional[Stdlib::Absolutepath] `
384
383
385
384
Sets the path to your postgresql.conf file.
386
385
@@ -396,7 +395,7 @@ Default value: `undef`
396
395
397
396
##### <a name =" -postgresql--globals--recovery_conf_path " ></a >` recovery_conf_path `
398
397
399
- Data type: ` Optional[Variant[String[1], Stdlib::Absolutepath] ] `
398
+ Data type: ` Optional[Stdlib::Absolutepath] `
400
399
401
400
Path to your recovery.conf file.
402
401
@@ -1068,39 +1067,39 @@ Default value: `$postgresql::params::ipv6acls`
1068
1067
1069
1068
##### <a name =" -postgresql--server--initdb_path " ></a >` initdb_path `
1070
1069
1071
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
1070
+ Data type: ` Stdlib::Absolutepath `
1072
1071
1073
1072
Specifies the path to the initdb command.
1074
1073
1075
1074
Default value: ` $postgresql::params::initdb_path `
1076
1075
1077
1076
##### <a name =" -postgresql--server--psql_path " ></a >` psql_path `
1078
1077
1079
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
1078
+ Data type: ` Stdlib::Absolutepath `
1080
1079
1081
1080
Specifies the path to the psql command.
1082
1081
1083
1082
Default value: ` $postgresql::params::psql_path `
1084
1083
1085
1084
##### <a name =" -postgresql--server--pg_hba_conf_path " ></a >` pg_hba_conf_path `
1086
1085
1087
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
1086
+ Data type: ` Stdlib::Absolutepath `
1088
1087
1089
1088
Specifies the path to your pg_hba.conf file.
1090
1089
1091
1090
Default value: ` $postgresql::params::pg_hba_conf_path `
1092
1091
1093
1092
##### <a name =" -postgresql--server--pg_ident_conf_path " ></a >` pg_ident_conf_path `
1094
1093
1095
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
1094
+ Data type: ` Stdlib::Absolutepath `
1096
1095
1097
1096
Specifies the path to your pg_ident.conf file.
1098
1097
1099
1098
Default value: ` $postgresql::params::pg_ident_conf_path `
1100
1099
1101
1100
##### <a name =" -postgresql--server--postgresql_conf_path " ></a >` postgresql_conf_path `
1102
1101
1103
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
1102
+ Data type: ` Stdlib::Absolutepath `
1104
1103
1105
1104
Specifies the path to your postgresql.conf file.
1106
1105
@@ -1116,7 +1115,7 @@ Default value: `$postgresql::params::postgresql_conf_mode`
1116
1115
1117
1116
##### <a name =" -postgresql--server--recovery_conf_path " ></a >` recovery_conf_path `
1118
1117
1119
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
1118
+ Data type: ` Stdlib::Absolutepath `
1120
1119
1121
1120
Specifies the path to your recovery.conf file.
1122
1121
@@ -1543,11 +1542,11 @@ Default value: `undef`
1543
1542
1544
1543
##### <a name =" -postgresql--server--config_entry--path " ></a >` path `
1545
1544
1546
- Data type: ` Variant[Boolean, String[1]] `
1545
+ Data type: ` Stdlib::Absolutepath `
1547
1546
1548
1547
Path for postgresql.conf
1549
1548
1550
- Default value: ` false `
1549
+ Default value: ` $postgresql::server::postgresql_conf_path `
1551
1550
1552
1551
### <a name =" postgresql--server--database " ></a >` postgresql::server::database `
1553
1552
@@ -1910,7 +1909,7 @@ Default value: `$postgresql::server::user`
1910
1909
1911
1910
##### <a name =" -postgresql--server--default_privileges--psql_path " ></a >` psql_path `
1912
1911
1913
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
1912
+ Data type: ` Stdlib::Absolutepath `
1914
1913
1915
1914
Specifies the OS user for running psql. Default value: The default user for the module, usually 'postgres'.
1916
1915
@@ -2045,157 +2044,6 @@ Specifies the resource name of the DB being managed. Defaults to the parameter $
2045
2044
2046
2045
Default value: ` $database `
2047
2046
2048
- ### <a name =" postgresql--server--grant " ></a >` postgresql::server::grant `
2049
-
2050
- Define for granting permissions to roles.
2051
-
2052
- #### Parameters
2053
-
2054
- The following parameters are available in the ` postgresql::server::grant ` defined type:
2055
-
2056
- * [ ` role ` ] ( #-postgresql--server--grant--role )
2057
- * [ ` db ` ] ( #-postgresql--server--grant--db )
2058
- * [ ` privilege ` ] ( #-postgresql--server--grant--privilege )
2059
- * [ ` object_type ` ] ( #-postgresql--server--grant--object_type )
2060
- * [ ` object_name ` ] ( #-postgresql--server--grant--object_name )
2061
- * [ ` object_arguments ` ] ( #-postgresql--server--grant--object_arguments )
2062
- * [ ` psql_db ` ] ( #-postgresql--server--grant--psql_db )
2063
- * [ ` psql_user ` ] ( #-postgresql--server--grant--psql_user )
2064
- * [ ` port ` ] ( #-postgresql--server--grant--port )
2065
- * [ ` onlyif_exists ` ] ( #-postgresql--server--grant--onlyif_exists )
2066
- * [ ` connect_settings ` ] ( #-postgresql--server--grant--connect_settings )
2067
- * [ ` ensure ` ] ( #-postgresql--server--grant--ensure )
2068
- * [ ` group ` ] ( #-postgresql--server--grant--group )
2069
- * [ ` psql_path ` ] ( #-postgresql--server--grant--psql_path )
2070
-
2071
- ##### <a name =" -postgresql--server--grant--role " ></a >` role `
2072
-
2073
- Data type: ` String `
2074
-
2075
- Specifies the role or user whom you are granting access to.
2076
-
2077
- ##### <a name =" -postgresql--server--grant--db " ></a >` db `
2078
-
2079
- Data type: ` String `
2080
-
2081
- Specifies the database to which you are granting access.
2082
-
2083
- ##### <a name =" -postgresql--server--grant--privilege " ></a >` privilege `
2084
-
2085
- Data type: ` String `
2086
-
2087
- Specifies the privilege to grant. Valid options: 'ALL', 'ALL PRIVILEGES' or 'object_type' dependent string.
2088
-
2089
- Default value: ` '' `
2090
-
2091
- ##### <a name =" -postgresql--server--grant--object_type " ></a >` object_type `
2092
-
2093
- Data type:
2094
-
2095
- ``` puppet
2096
- Pattern[#/(?i:^COLUMN$)/,
2097
- /(?i:^ALL SEQUENCES IN SCHEMA$)/,
2098
- /(?i:^ALL TABLES IN SCHEMA$)/,
2099
- /(?i:^DATABASE$)/,
2100
- #/(?i:^FOREIGN DATA WRAPPER$)/,
2101
- #/(?i:^FOREIGN SERVER$)/,
2102
- /(?i:^FUNCTION$)/,
2103
- /(?i:^LANGUAGE$)/,
2104
- #/(?i:^PROCEDURAL LANGUAGE$)/,
2105
- /(?i:^TABLE$)/,
2106
- #/(?i:^TABLESPACE$)/,
2107
- /(?i:^SCHEMA$)/,
2108
- /(?i:^SEQUENCE$)/
2109
- #/(?i:^VIEW$)/
2110
- ]
2111
- ```
2112
-
2113
- Specifies the type of object to which you are granting privileges.
2114
- Valid options: 'DATABASE', 'SCHEMA', 'SEQUENCE', 'ALL SEQUENCES IN SCHEMA', 'TABLE' or 'ALL TABLES IN SCHEMA'.
2115
-
2116
- Default value: ` 'database' `
2117
-
2118
- ##### <a name =" -postgresql--server--grant--object_name " ></a >` object_name `
2119
-
2120
- Data type: ` Optional[Variant[Array[String,2,2],String[1]]] `
2121
-
2122
- Specifies name of object_type to which to grant access, can be either a string or a two element array.
2123
- String: 'object_name' Array: [ 'schema_name', 'object_name']
2124
-
2125
- Default value: ` undef `
2126
-
2127
- ##### <a name =" -postgresql--server--grant--object_arguments " ></a >` object_arguments `
2128
-
2129
- Data type: ` Array[String[1],0] `
2130
-
2131
- Specifies any arguments to be passed alongisde the access grant.
2132
-
2133
- Default value: ` [] `
2134
-
2135
- ##### <a name =" -postgresql--server--grant--psql_db " ></a >` psql_db `
2136
-
2137
- Data type: ` String `
2138
-
2139
- Specifies the database to execute the grant against. This should not ordinarily be changed from the default
2140
-
2141
- Default value: ` $postgresql::server::default_database `
2142
-
2143
- ##### <a name =" -postgresql--server--grant--psql_user " ></a >` psql_user `
2144
-
2145
- Data type: ` String `
2146
-
2147
- Sets the OS user to run psql.
2148
-
2149
- Default value: ` $postgresql::server::user `
2150
-
2151
- ##### <a name =" -postgresql--server--grant--port " ></a >` port `
2152
-
2153
- Data type: ` Stdlib::Port `
2154
-
2155
- Port to use when connecting.
2156
-
2157
- Default value: ` $postgresql::server::port `
2158
-
2159
- ##### <a name =" -postgresql--server--grant--onlyif_exists " ></a >` onlyif_exists `
2160
-
2161
- Data type: ` Boolean `
2162
-
2163
- Create grant only if doesn't exist
2164
-
2165
- Default value: ` false `
2166
-
2167
- ##### <a name =" -postgresql--server--grant--connect_settings " ></a >` connect_settings `
2168
-
2169
- Data type: ` Hash `
2170
-
2171
- Specifies a hash of environment variables used when connecting to a remote server.
2172
-
2173
- Default value: ` $postgresql::server::default_connect_settings `
2174
-
2175
- ##### <a name =" -postgresql--server--grant--ensure " ></a >` ensure `
2176
-
2177
- Data type: ` Enum['present', 'absent'] `
2178
-
2179
- Specifies whether to grant or revoke the privilege. Default is to grant the privilege. Valid values: 'present', 'absent'.
2180
-
2181
- Default value: ` 'present' `
2182
-
2183
- ##### <a name =" -postgresql--server--grant--group " ></a >` group `
2184
-
2185
- Data type: ` String `
2186
-
2187
- Sets the OS group to run psql
2188
-
2189
- Default value: ` $postgresql::server::group `
2190
-
2191
- ##### <a name =" -postgresql--server--grant--psql_path " ></a >` psql_path `
2192
-
2193
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2194
-
2195
- Sets the path to psql command
2196
-
2197
- Default value: ` $postgresql::server::psql_path `
2198
-
2199
2047
### <a name =" postgresql--server--grant_role " ></a >` postgresql::server::grant_role `
2200
2048
2201
2049
Define for granting membership to a role.
@@ -2360,23 +2208,23 @@ Default value: `$postgresql::server::ipv6acls`
2360
2208
2361
2209
##### <a name =" -postgresql--server--instance--config--pg_hba_conf_path " ></a >` pg_hba_conf_path `
2362
2210
2363
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2211
+ Data type: ` Stdlib::Absolutepath `
2364
2212
2365
2213
Specifies the path to your pg_hba.conf file.
2366
2214
2367
2215
Default value: ` $postgresql::server::pg_hba_conf_path `
2368
2216
2369
2217
##### <a name =" -postgresql--server--instance--config--pg_ident_conf_path " ></a >` pg_ident_conf_path `
2370
2218
2371
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2219
+ Data type: ` Stdlib::Absolutepath `
2372
2220
2373
2221
Specifies the path to your pg_ident.conf file.
2374
2222
2375
2223
Default value: ` $postgresql::server::pg_ident_conf_path `
2376
2224
2377
2225
##### <a name =" -postgresql--server--instance--config--postgresql_conf_path " ></a >` postgresql_conf_path `
2378
2226
2379
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2227
+ Data type: ` Stdlib::Absolutepath `
2380
2228
2381
2229
Specifies the path to your postgresql.conf file.
2382
2230
@@ -2392,7 +2240,7 @@ Default value: `$postgresql::server::postgresql_conf_mode`
2392
2240
2393
2241
##### <a name =" -postgresql--server--instance--config--recovery_conf_path " ></a >` recovery_conf_path `
2394
2242
2395
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2243
+ Data type: ` Stdlib::Absolutepath `
2396
2244
2397
2245
Specifies the path to your recovery.conf file.
2398
2246
@@ -2609,7 +2457,7 @@ Default value: `$postgresql::server::group`
2609
2457
2610
2458
##### <a name =" -postgresql--server--instance--initdb--initdb_path " ></a >` initdb_path `
2611
2459
2612
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2460
+ Data type: ` Stdlib::Absolutepath `
2613
2461
2614
2462
Specifies the path to the initdb command.
2615
2463
@@ -2749,7 +2597,7 @@ Default value: `$postgresql::server::group`
2749
2597
2750
2598
##### <a name =" -postgresql--server--instance--late_initdb--psql_path " ></a >` psql_path `
2751
2599
2752
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2600
+ Data type: ` Stdlib::Absolutepath `
2753
2601
2754
2602
Specifies the path to the psql command.
2755
2603
@@ -2808,7 +2656,7 @@ Default value: `$postgresql::server::group`
2808
2656
2809
2657
##### <a name =" -postgresql--server--instance--passwd--psql_path " ></a >` psql_path `
2810
2658
2811
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2659
+ Data type: ` Stdlib::Absolutepath `
2812
2660
2813
2661
Specifies the path to the psql command.
2814
2662
@@ -2973,7 +2821,7 @@ Default value: `$postgresql::server::default_database`
2973
2821
2974
2822
##### <a name =" -postgresql--server--instance--service--psql_path " ></a >` psql_path `
2975
2823
2976
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2824
+ Data type: ` Stdlib::Absolutepath `
2977
2825
2978
2826
Specifies the path to the psql command.
2979
2827
@@ -3140,7 +2988,7 @@ Default value: `'150'`
3140
2988
3141
2989
##### <a name =" -postgresql--server--pg_ident_rule--target " ></a >` target `
3142
2990
3143
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
2991
+ Data type: ` Stdlib::Absolutepath `
3144
2992
3145
2993
Provides the target for the rule and is generally an internal only property. Use with caution.
3146
2994
@@ -3360,7 +3208,7 @@ Default value: `undef`
3360
3208
3361
3209
##### <a name =" -postgresql--server--recovery--target " ></a >` target `
3362
3210
3363
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
3211
+ Data type: ` Stdlib::Absolutepath `
3364
3212
3365
3213
Provides the target for the rule, and is generally an internal only property. Use with caution.
3366
3214
@@ -3525,7 +3373,7 @@ Default value: `$postgresql::server::group`
3525
3373
3526
3374
##### <a name =" -postgresql--server--role--psql_path " ></a >` psql_path `
3527
3375
3528
- Data type: ` Variant[String[1], Stdlib::Absolutepath] `
3376
+ Data type: ` Stdlib::Absolutepath `
3529
3377
3530
3378
Sets path to psql command
3531
3379
0 commit comments