@@ -953,15 +953,16 @@ create the PuppetDB postgresql database
953
953
The following parameters are available in the ` puppetdb::database::postgresql ` class:
954
954
955
955
* [ ` listen_addresses ` ] ( #-puppetdb--database--postgresql--listen_addresses )
956
- * [ ` puppetdb_server ` ] ( #-puppetdb--database--postgresql--puppetdb_server )
957
956
* [ ` database_name ` ] ( #-puppetdb--database--postgresql--database_name )
958
957
* [ ` database_username ` ] ( #-puppetdb--database--postgresql--database_username )
959
958
* [ ` database_password ` ] ( #-puppetdb--database--postgresql--database_password )
960
- * [ ` database_port ` ] ( #-puppetdb--database--postgresql--database_port )
961
- * [ ` manage_database ` ] ( #-puppetdb--database--postgresql--manage_database )
962
959
* [ ` manage_server ` ] ( #-puppetdb--database--postgresql--manage_server )
960
+ * [ ` test_url ` ] ( #-puppetdb--database--postgresql--test_url )
963
961
* [ ` manage_package_repo ` ] ( #-puppetdb--database--postgresql--manage_package_repo )
964
962
* [ ` postgres_version ` ] ( #-puppetdb--database--postgresql--postgres_version )
963
+ * [ ` puppetdb_server ` ] ( #-puppetdb--database--postgresql--puppetdb_server )
964
+ * [ ` database_port ` ] ( #-puppetdb--database--postgresql--database_port )
965
+ * [ ` manage_database ` ] ( #-puppetdb--database--postgresql--manage_database )
965
966
* [ ` postgresql_ssl_on ` ] ( #-puppetdb--database--postgresql--postgresql_ssl_on )
966
967
* [ ` postgresql_ssl_key_path ` ] ( #-puppetdb--database--postgresql--postgresql_ssl_key_path )
967
968
* [ ` postgresql_ssl_cert_path ` ] ( #-puppetdb--database--postgresql--postgresql_ssl_cert_path )
@@ -974,81 +975,93 @@ The following parameters are available in the `puppetdb::database::postgresql` c
974
975
975
976
Data type: ` Any `
976
977
977
-
978
+ The ` listen_address ` is a comma-separated list of hostnames or IP addresses on
979
+ which the postgres server should listen for incoming connections. This defaults
980
+ to ` localhost ` . This parameter maps directly to PostgreSQL's ` listen_addresses `
981
+ config option. Use a ` * ` to allow connections on any accessible address.
978
982
979
983
Default value: ` $puppetdb::params::database_host `
980
984
981
- ##### <a name =" -puppetdb--database--postgresql--puppetdb_server " ></a >` puppetdb_server `
982
-
983
- Data type: ` Any `
984
-
985
-
986
-
987
- Default value: ` $puppetdb::params::puppetdb_server `
988
-
989
985
##### <a name =" -puppetdb--database--postgresql--database_name " ></a >` database_name `
990
986
991
987
Data type: ` Any `
992
988
993
-
989
+ Sets the name of the database. Defaults to ` puppetdb ` .
994
990
995
991
Default value: ` $puppetdb::params::database_name `
996
992
997
993
##### <a name =" -puppetdb--database--postgresql--database_username " ></a >` database_username `
998
994
999
995
Data type: ` Any `
1000
996
1001
-
997
+ Creates a user for access the database. Defaults to ` puppetdb ` .
1002
998
1003
999
Default value: ` $puppetdb::params::database_username `
1004
1000
1005
1001
##### <a name =" -puppetdb--database--postgresql--database_password " ></a >` database_password `
1006
1002
1007
1003
Data type: ` Any `
1008
1004
1009
-
1005
+ Sets the password for the database user above. Defaults to ` puppetdb ` .
1010
1006
1011
1007
Default value: ` $puppetdb::params::database_password `
1012
1008
1013
- ##### <a name =" -puppetdb--database--postgresql--database_port " ></a >` database_port `
1009
+ ##### <a name =" -puppetdb--database--postgresql--manage_server " ></a >` manage_server `
1014
1010
1015
1011
Data type: ` Any `
1016
1012
1013
+ Conditionally manages the PostgreSQL server via ` postgresql::server ` . Defaults
1014
+ to ` true ` . If set to ` false ` , this class will create the database and user via
1015
+ ` postgresql::server::db ` but not attempt to install or manage the server itself.
1017
1016
1017
+ Default value: ` $puppetdb::params::manage_dbserver `
1018
1018
1019
- Default value: ` $ puppetdb::params::database_port `
1019
+ ##### < a name = " - puppetdb--database--postgresql--test_url " ></ a > ` test_url `
1020
1020
1021
- ##### <a name =" -puppetdb--database--postgresql--manage_database " ></a >` manage_database `
1021
+ The URL to use for testing if the PuppetDB instance is running. Defaults to
1022
+ ` /pdb/meta/v1/version ` .
1023
+
1024
+ ##### <a name =" -puppetdb--database--postgresql--manage_package_repo " ></a >` manage_package_repo `
1022
1025
1023
1026
Data type: ` Any `
1024
1027
1028
+ If ` true ` , the official postgresql.org repo will be added and postgres won't
1029
+ be installed from the regular repository. Defaults to ` true ` .
1025
1030
1031
+ Default value: ` $puppetdb::params::manage_pg_repo `
1026
1032
1027
- Default value: ` $ puppetdb::params::manage_database `
1033
+ ##### < a name = " - puppetdb--database--postgresql--postgres_version " ></ a > ` postgres_version `
1028
1034
1029
- ##### <a name =" -puppetdb--database--postgresql--manage_server " ></a >` manage_server `
1035
+ Data type: ` Any `
1036
+
1037
+ If the postgresql.org repo is installed, you can install several versions of
1038
+ postgres. Defaults to ` 11 ` with PuppetDB version 7.0.0 or newer, and ` 9.6 ` in older versions.
1039
+
1040
+ Default value: ` $puppetdb::params::postgres_version `
1041
+
1042
+ ##### <a name =" -puppetdb--database--postgresql--puppetdb_server " ></a >` puppetdb_server `
1030
1043
1031
1044
Data type: ` Any `
1032
1045
1033
1046
1034
1047
1035
- Default value: ` $puppetdb::params::manage_dbserver `
1048
+ Default value: ` $puppetdb::params::puppetdb_server `
1036
1049
1037
- ##### <a name =" -puppetdb--database--postgresql--manage_package_repo " ></a >` manage_package_repo `
1050
+ ##### <a name =" -puppetdb--database--postgresql--database_port " ></a >` database_port `
1038
1051
1039
1052
Data type: ` Any `
1040
1053
1041
1054
1042
1055
1043
- Default value: ` $puppetdb::params::manage_pg_repo `
1056
+ Default value: ` $puppetdb::params::database_port `
1044
1057
1045
- ##### <a name =" -puppetdb--database--postgresql--postgres_version " ></a >` postgres_version `
1058
+ ##### <a name =" -puppetdb--database--postgresql--manage_database " ></a >` manage_database `
1046
1059
1047
1060
Data type: ` Any `
1048
1061
1049
1062
1050
1063
1051
- Default value: ` $puppetdb::params::postgres_version `
1064
+ Default value: ` $puppetdb::params::manage_database `
1052
1065
1053
1066
##### <a name =" -puppetdb--database--postgresql--postgresql_ssl_on " ></a >` postgresql_ssl_on `
1054
1067
0 commit comments