9e742dc2175456cad28bf5a9846eec55bbdd0769
This rewrite brings a lot of improvements and new functionality to the *postgresql-server* role. The most noticeable change is the introduction of the `postgresql_config_dir` variable, which can be used to specify a different location for the PostgreSQL server configuration files, separate from the data storage directory. By default, the variable is set to `/etc/postgresql`. For some situations, it may be necessary to disable this functionality, which can be accomplished by setting the value of `postgresql_config_dir` to the same path as `pgdata_dir`. Note also that the `postgresql-setup` tool, and the corresponding `postgresql-check-db-dir` script, which are included in the Fedora/Red Hat distribution of PostgreSQL, do not support having separate configuration and data directories, so their use has to be disabled. Another significant improvement is to how the `postgresql.conf` file is generated. Any setting can be set now, using the `postgresql_config` variable; any key in this dictionary will be written to the configuration file. Note that configuration file syntax requires single quotes around string values, so these have to be included in the YAML value. To support deploying standby servers, the role now supports running a command to restore from a backup instead of running `initdb`. Additionally, the `postgresql_standby` variable can be set to `true` to create the `recovery.signal` file, configuring the server as a standby.
Description
Ansible configuration policy for the private network/home lab of Dustin C. Hatch
http://dustin.hatch.name/
Languages
Jinja
86.2%
Python
6.6%
Shell
4.6%
Groovy
2.6%