A module used to create and manage PostgreSQL tablespaces.
ssd-tablespace:
postgres_tablespace.present:
- name: indexes
- directory: /mnt/ssd-data
New in version 2015.8.0.
Ensure that the named tablespace is absent.
The name of the tablespace to remove
System user all operations should be performed on behalf of
Database to act on
Database username if different from config or default
User password if any password for a specified user
Database host if different from config or default
Database port if different from config or default
Ensure that the named tablespace is present with the specified properties.
For more information about all of these options run man 7
create_tablespace
.
The name of the tablespace to create/manage.
The directory where the tablespace will be located, must already exist
A dictionary of options to specify for the tablespace.
Currently, the only tablespace options supported are seq_page_cost
and random_page_cost
. Default values are shown in the example below:
my_space:
postgres_tablespace.present:
- directory: /srv/my_tablespace
- options:
seq_page_cost: 1.0
random_page_cost: 4.0
The database user that will be the owner of the tablespace. Defaults to the user executing the command (i.e. the user option)
System user all operations should be performed on behalf of
Database to act on
Database username if different from config or default
User password if any password for a specified user
Database host if different from config or default
Database port if different from config or default