vagrant-box-factory
64 строки · 2.4 Кб
1---
2# RHEL/CentOS only. Set a repository to use for PostgreSQL installation.
3postgresql_enablerepo: ""4
5# Set postgresql state when configuration changes are made. Recommended values:
6# `restarted` or `reloaded`
7postgresql_restarted_state: "restarted"8
9postgresql_python_library: python-psycopg210postgresql_user: postgres11postgresql_group: postgres12
13postgresql_unix_socket_directories:14- /var/run/postgresql15
16postgresql_service_state: started17postgresql_service_enabled: true18
19# Global configuration options that will be set in postgresql.conf.
20postgresql_global_config_options:21- option: unix_socket_directories22value: '{{ postgresql_unix_socket_directories | join(",") }}'23
24# Host based authentication (hba) entries to be added to the pg_hba.conf. This
25# variable's defaults reflect the defaults that come with a fresh installation.
26postgresql_hba_entries:27- {type: local, database: all, user: postgres, auth_method: peer}28- {type: local, database: all, user: all, auth_method: peer}29- {type: host, database: all, user: all, address: '127.0.0.1/32', auth_method: md5}30- {type: host, database: all, user: all, address: '::1/128', auth_method: md5}31
32# Debian only. Used to generate the locales used by PostgreSQL databases.
33postgresql_locales:34- 'en_US.UTF-8'35
36# Databases to ensure exist.
37postgresql_databases: []38# - name: exampledb # required; the rest are optional
39# lc_collate: # defaults to 'en_US.UTF-8'
40# lc_ctype: # defaults to 'en_US.UTF-8'
41# encoding: # defaults to 'UTF-8'
42# template: # defaults to 'template0'
43# login_host: # defaults to 'localhost'
44# login_password: # defaults to not set
45# login_user: # defaults to '{{ postgresql_user }}'
46# login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
47# port: # defaults to not set
48# owner: # defaults to postgresql_user
49# state: # defaults to 'present'
50
51# Users to ensure exist.
52postgresql_users: []53# - name: jdoe #required; the rest are optional
54# password: # defaults to not set
55# encrypted: # defaults to not set
56# priv: # defaults to not set
57# role_attr_flags: # defaults to not set
58# db: # defaults to not set
59# login_host: # defaults to 'localhost'
60# login_password: # defaults to not set
61# login_user: # defaults to '{{ postgresql_user }}'
62# login_unix_socket: # defaults to 1st of postgresql_unix_socket_directories
63# port: # defaults to not set
64# state: # defaults to 'present'
65