repleo.postgresql

Ansibleロール - PostgreSQLデータベースインストールロール

ビルドステータス Ansible Galaxy

このロールはPostgreSQLサーバーをインストールし、設定します。また、既存のインストールに新しいデータベースやユーザーを追加することができます。

要件

このロールはAnsible 1.4以上が必要で、プラットフォーム要件はメタデータファイルに記載されています。

ロール変数

このロールに渡すことのできる変数とその簡単な説明は以下の通りです。

databases:
  - name: database_name1
    users:
      - user: user_name1
        password: user_password
        privileges: ALL
        type: database
      - user: user_name2
        password: user_password
        privileges: ALL
        type: database
  - name: database_name2
    users:
     - user: user_name1
       password: user_password
       privileges: ALL
       type: database

  1. データベースを追加せずにPostgreSQLをインストール:

    • { role: repleo.postgresql }
  2. PostgreSQLをインストールし、2つのデータベースを追加:

    • { role: repleo.postgresql, databases: [ { name: testdb1, users:[] }, { name: testdb2, users:[] } ] }
  3. PostgreSQLをインストールし、2つのデータベースを追加し、各データベースのユーザーを設定:

    • { role: repleo.postgresql,
      databases: [ { name: testdb, users: [ { user: testuser1, password: 12345, privileges: ALL, type: database }, { user: testuser2, password: 12345, privileges: ALL, type: database }, ] } ] }

依存関係

なし。

ライセンス

GPL v3 - (c)2016年、Repleo、アムステルフェーン

著者情報

Repleo、アムステルフェーン、オランダ -- www.repleo.nl
Jeroen Arnoldus (jeroen@repleo.nl)

プロジェクトについて

Ansible role for installing and configuring a postgresql database

インストール
ansible-galaxy install repleo.postgresql
ライセンス
gpl-3.0
ダウンロード
753
所有者
Continuous delivery and software development experts