From 07a09bd2c4207223cb573a15614607c14b344dbb Mon Sep 17 00:00:00 2001 From: David Swan Date: Thu, 15 Feb 2018 15:48:40 +0000 Subject: [PATCH 1/4] 5.3.0 Pre Release --- CHANGELOG.md | 22 ++++++++++++++++++++++ metadata.json | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1cc5ca675..a05fed5008 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,26 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). +## Supported Release [5.3.0] +### Summary +Implements rubocop changes within the module, alongside other smaller changes. + +#### Added +- ensure=>absent added to postgresql::server:role. +- Support added for Fedora 27. +- scram-sha-256 added as a valid ph_hba_rule auth method. +- 9.6 settings inherited for later PgSQL versions on FreeBSD. +- A require has been added for puppet. + +#### Changed +- Changes made to avoid the useless loading of files by augeas. +- Modulesync changes. +- psql_path defaulted to postgresql::server::psql_path. +- Rubocop changes have been made. + +#### Removed +- Debian 9 support deprecated. + ## Supported Release 5.2.1 ### Summary Bug fix for issue introduced in 5.2.0 @@ -956,3 +976,5 @@ Notable features: * Remove trailing commas. (e6af5e5) 2012-08-16 - Version 0.2.0 released + +[5.3.0]:https://github.com/puppetlabs/puppetlabs-apache/compare/5.2.1...5.3.0 diff --git a/metadata.json b/metadata.json index e448752d88..dc4ff78a57 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-postgresql", - "version": "5.2.1", + "version": "5.3.0", "author": "Inkling/Puppet Labs", "summary": "Offers support for basic management of PostgreSQL databases.", "license": "Apache-2.0", From ff9c1ada8e9746c2307315645108347b18ee194c Mon Sep 17 00:00:00 2001 From: jbondpdx Date: Thu, 15 Feb 2018 10:54:13 -0800 Subject: [PATCH 2/4] add task listing to README, edit --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff041947de..0ac059bee7 100644 --- a/README.md +++ b/README.md @@ -368,6 +368,8 @@ The postgresql module comes with many options for configuring the server. While **Tasks:** +* [`sql`](#tasks) + ### Classes #### postgresql::client @@ -1491,16 +1493,17 @@ Provides the target for the rule, and is generally an internal only property. **Use with caution.** #### postgresql::server::role + Creates or drops a role or user in PostgreSQL. ##### `ensure` Specify whether to create or drop the role. -Specifying `present` will create the role. -Specifying `absent` will drop the role. +Specifying 'present' creates the role. +Specifying 'absent' drops the role. -Default value: `present`. +Default value: 'present'. ##### `connection_limit` Specifies how many concurrent connections the role can make. @@ -1846,7 +1849,7 @@ This internal function converts a list of `pg_hba.conf` based ACLs (passed in as ### Tasks -The Postgresql module has an example task that allows a user to execute arbitary SQL against a database. Please refer to to the [PE documentation](https://puppet.com/docs/pe/2017.3/orchestrator/running_tasks.html) or [Bolt documentation](https://puppet.com/docs/bolt/latest/bolt.html) on how to execute a task. +The postgresql module `sql` example task executes arbitary SQL against a database. Please refer to to the [PE documentation](https://puppet.com/docs/pe/2017.3/orchestrator/running_tasks.html) or [Bolt documentation](https://puppet.com/docs/bolt/latest/bolt.html) on how to execute a task. ## Limitations @@ -1862,7 +1865,7 @@ Other systems might be compatible, but are not being actively tested. ### Apt module support -While this module supports both 1.x and 2.x versions of the 'puppetlabs-apt' module, it does not support 'puppetlabs-apt' 2.0.0 or 2.0.1. +While this module supports both 1.x and 2.x versions of the `puppetlabs-apt` module, it does not support `puppetlabs-apt` 2.0.0 or 2.0.1. ### PostGIS support From d8c22a72ce74dcb6a518bcdd3b006a458fbfecf2 Mon Sep 17 00:00:00 2001 From: Paula McMaw Date: Mon, 19 Feb 2018 09:37:11 +0000 Subject: [PATCH 3/4] Dont setup tasks on LTS --- spec/spec_helper_acceptance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 4a5d3edd41..7f7252cf57 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -87,7 +87,7 @@ def psql(psql_cmd, user = 'postgres', exit_codes = [0, 1], &block) # Configure all nodes in nodeset c.before :suite do - run_puppet_access_login(user: 'admin') if pe_install? + run_puppet_access_login(user: 'admin') if pe_install? && puppet_version =~ %r{(5\.\d\.\d)} # Set up selinux if appropriate. if fact('osfamily') == 'RedHat' && fact('selinux') == 'true' pp = <<-EOS From b842daa6c4c0dcd37d4468e4352f373f789ca6c7 Mon Sep 17 00:00:00 2001 From: transifex-bot Date: Fri, 23 Feb 2018 10:36:56 -0800 Subject: [PATCH 4/4] Updating translations for readmes/README_ja_JP.md --- readmes/README_ja_JP.md | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/readmes/README_ja_JP.md b/readmes/README_ja_JP.md index de69428dc9..ff679d7c4b 100644 --- a/readmes/README_ja_JP.md +++ b/readmes/README_ja_JP.md @@ -20,6 +20,7 @@ * [定義できるタイプ](#defined-types) * [タイプ](#types) * [関数](#functions) + * [タスク](#tasks) 5. [制約事項 - OSの互換性など](#limitations) 6. [開発 - モジュール貢献についてのガイド](#development) * [コントリビュータ - モジュール貢献者の一覧](#contributors) @@ -318,7 +319,7 @@ exec { 'rake db:migrate': } ``` -## 参考 +## リファレンス postgresqlモジュールには、サーバー設定用に多数のオプションがあります。以下の設定をすべて使うことはないかもしれませんが、これらを使用することで、セキュリティ設定をかなり制御することができます。 @@ -365,6 +366,10 @@ postgresqlモジュールには、サーバー設定用に多数のオプショ * [postgresql_password](#function-postgresql_password) * [postgresql_acls_to_resources_hash](#function-postgresql_acls_to_resources_hashacl_array-id-order_offset) +**タスク:** + +* [`sql`](#tasks) + ### クラス #### postgresql::client @@ -421,7 +426,7 @@ PostgreSQL docsパッケージリソースが存在する必要があるかど デフォルト値: OSによって異なります。 -##### `confdir` +##### `confdir`  ターゲットプラットフォームのデフォルトのPostgreSQL設定ディレクトリをオーバーライドします。 @@ -957,7 +962,7 @@ PostgreSQLサービスのデフォルトのリロードコマンドをオーバ ##### `service_restart_on_change` -設定変更をアクティブにするにはサービスの再起動が必要な設定エントリが変更された場合に、PostgreSQLサービスを再起動する際のデフォルト動作をオーバーライドします。 +設定変更をアクティブにするためにサービスの再起動が必要な設定エントリが変更された場合に、PostgreSQLサービスを再起動する際のデフォルト動作をオーバーライドします。 デフォルト値: `true`。 @@ -969,7 +974,7 @@ PostgreSQLサービスのデフォルトのステータスチェックコマン ##### `user` -ファイルシステム内のPostgreSQL関連ファイルのデフォルトのPostgreSQLスーパーユーザおよびオーナーをオーバーライドします。 +ファイルシステム内のPostgreSQL関連ファイルのデフォルトのPostgreSQLスーパーユーザおよび所有者をオーバーライドします。 デフォルト値: 'postgres'。 @@ -1037,7 +1042,7 @@ PostgreSQLのCOMMENTコマンドを使用して、データベースについて ##### `connect_settings` -リモートサーバーに接続する際に使用される環境変数のハッシュを指定します。 +リモートサーバーへの接続時に使用する環境変数のハッシュを指定します。 デフォルト値: ローカルのPostgresインスタンスに接続します。 @@ -1149,7 +1154,7 @@ PostgreSQLのCOMMENTコマンドを使用して、データベースについて #### `connect_settings` -リモートサーバーに接続する際に使用される環境変数のハッシュを指定します。 +リモートサーバーへの接続時に使用する環境変数のハッシュを指定します。 デフォルト値: ローカルのPostgresインスタンスに接続します。 @@ -1189,6 +1194,10 @@ PostgreSQL拡張を管理します。 拡張を有効化するデータベースを指定します。 +##### `schema` + +拡張を有効化するスキーマを指定します。 + ##### `ensure` 拡張を有効化するか無効化するかを指定します。 @@ -1484,7 +1493,16 @@ PostgreSQLコマンド'REASSIGN OWNED'をデータベースに対して実行し **注意して使用してください。** #### postgresql::server::role -PostgreSQLのロールまたはユーザを作成します。 + +PostgreSQLのロールまたはユーザを作成もしくは削除します。 + +##### `ensure` + +ロールを作成するか削除するかを指定します。 + +'present'を指定するとロールが作成され、'absent'を指定するとロールが削除されます。 + +デフォルト値: 'present'。 ##### `connection_limit` ロールが同時に接続可能な数を指定します。 @@ -1796,7 +1814,7 @@ Unixソケットとident認証を使用するとき、このユーザとして 接続するときに使用するポートを定義します。 -デフォルト値: '' +デフォルト値: '' ##### `run_as` @@ -1828,6 +1846,10 @@ puppet apply --execute 'notify { 'test': message => postgresql_password('usernam **この関数は、モジュールによる内部的な使用のみ可能です。** +### タスク + +postgresqlモジュールの'sqlサンプルタスクは、データベースに対して任意のSQLを実行します。タスクの実行方法については、[Puppet Enterpriseマニュアル](https://puppet.com/docs/pe/2017.3/orchestrator/running_tasks.html)または[Boltマニュアル](https://puppet.com/docs/bolt/latest/bolt.html)を参照してください。 + ## 制約事項 PostgreSQLのバージョン8.1~9.5で動作します。 @@ -1842,7 +1864,7 @@ PostgreSQLのバージョン8.1~9.5で動作します。 ### Aptモジュールのサポート -このモジュールは1.xと2.x両方のバージョンの'puppetlabs-apt'モジュールをサポートしていますが、'puppetlabs-apt'の2.0.0と2.0.1はサポートしていません。 +このモジュールは1.xと2.x両方のバージョンの`puppetlabs-apt` モジュールをサポートしていますが、2.0.0と2.0.1の`puppetlabs-apt`はサポートしていません。 ### PostGISのサポート