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/README.md b/README.md index d791c3ed39..a0a5e701fd 100644 --- a/README.md +++ b/README.md @@ -411,6 +411,8 @@ amount of control over your security settings. **Tasks:** +* [`sql`](#tasks) + ### Classes #### postgresql::client @@ -1668,10 +1670,10 @@ Creates or drops a role or user in PostgreSQL. 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` @@ -2067,6 +2069,7 @@ arbitrary SQL against a database. Please refer to to [the Bolt documentation](https://puppet.com/docs/bolt/latest/bolt.html) on how to execute a task. + ## Limitations Works with versions of PostgreSQL from 8.1 through 9.5. @@ -2084,6 +2087,7 @@ Other systems might be compatible, but are not being actively tested. 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 PostGIS is currently considered an unsupported feature, as it doesn't work on 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", diff --git a/readmes/README_ja_JP.md b/readmes/README_ja_JP.md index e079ed5cf0..6517e36a4e 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` ロールが同時に接続可能な数を指定します。 @@ -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のサポート 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