Skip to content

5.3.0 Release Mergeback #959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ amount of control over your security settings.

**Tasks:**

* [`sql`](#tasks)

### Classes

#### postgresql::client
Expand Down Expand Up @@ -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`

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
38 changes: 30 additions & 8 deletions readmes/README_ja_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* [定義できるタイプ](#defined-types)
* [タイプ](#types)
* [関数](#functions)
* [タスク](#tasks)
5. [制約事項 - OSの互換性など](#limitations)
6. [開発 - モジュール貢献についてのガイド](#development)
* [コントリビュータ - モジュール貢献者の一覧](#contributors)
Expand Down Expand Up @@ -318,7 +319,7 @@ exec { 'rake db:migrate':
}
```

## 参考
## リファレンス

postgresqlモジュールには、サーバー設定用に多数のオプションがあります。以下の設定をすべて使うことはないかもしれませんが、これらを使用することで、セキュリティ設定をかなり制御することができます。

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -421,7 +426,7 @@ PostgreSQL docsパッケージリソースが存在する必要があるかど

デフォルト値: OSによって異なります。

##### `confdir`
##### `confdir` 

ターゲットプラットフォームのデフォルトのPostgreSQL設定ディレクトリをオーバーライドします。

Expand Down Expand Up @@ -957,7 +962,7 @@ PostgreSQLサービスのデフォルトのリロードコマンドをオーバ

##### `service_restart_on_change`

設定変更をアクティブにするにはサービスの再起動が必要な設定エントリが変更された場合に、PostgreSQLサービスを再起動する際のデフォルト動作をオーバーライドします。
設定変更をアクティブにするためにサービスの再起動が必要な設定エントリが変更された場合に、PostgreSQLサービスを再起動する際のデフォルト動作をオーバーライドします。

デフォルト値: `true`。

Expand All @@ -969,7 +974,7 @@ PostgreSQLサービスのデフォルトのステータスチェックコマン

##### `user`

ファイルシステム内のPostgreSQL関連ファイルのデフォルトのPostgreSQLスーパーユーザおよびオーナーをオーバーライドします
ファイルシステム内のPostgreSQL関連ファイルのデフォルトのPostgreSQLスーパーユーザおよび所有者をオーバーライドします

デフォルト値: 'postgres'。

Expand Down Expand Up @@ -1037,7 +1042,7 @@ PostgreSQLのCOMMENTコマンドを使用して、データベースについて

##### `connect_settings`

リモートサーバーに接続する際に使用される環境変数のハッシュを指定します
リモートサーバーへの接続時に使用する環境変数のハッシュを指定します

デフォルト値: ローカルのPostgresインスタンスに接続します。

Expand Down Expand Up @@ -1149,7 +1154,7 @@ PostgreSQLのCOMMENTコマンドを使用して、データベースについて

#### `connect_settings`

リモートサーバーに接続する際に使用される環境変数のハッシュを指定します
リモートサーバーへの接続時に使用する環境変数のハッシュを指定します

デフォルト値: ローカルのPostgresインスタンスに接続します。

Expand Down Expand Up @@ -1189,6 +1194,10 @@ PostgreSQL拡張を管理します。

拡張を有効化するデータベースを指定します。

##### `schema`

拡張を有効化するスキーマを指定します。

##### `ensure`

拡張を有効化するか無効化するかを指定します。
Expand Down Expand Up @@ -1484,7 +1493,16 @@ PostgreSQLコマンド'REASSIGN OWNED'をデータベースに対して実行し
**注意して使用してください。**

#### postgresql::server::role
PostgreSQLのロールまたはユーザを作成します。

PostgreSQLのロールまたはユーザを作成もしくは削除します。

##### `ensure`

ロールを作成するか削除するかを指定します。

'present'を指定するとロールが作成され、'absent'を指定するとロールが削除されます。

デフォルト値: 'present'。

##### `connection_limit`
ロールが同時に接続可能な数を指定します。
Expand Down Expand Up @@ -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で動作します。
Expand All @@ -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のサポート

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down