|
41 | 41 | * [`postgresql::server::database`](#postgresqlserverdatabase): Define for creating a database.
|
42 | 42 | * [`postgresql::server::database_grant`](#postgresqlserverdatabase_grant): Manage a database grant.
|
43 | 43 | * [`postgresql::server::db`](#postgresqlserverdb): Define for conveniently creating a role, database and assigning the correctpermissions.
|
| 44 | +* [`postgresql::server::default_privileges`](#postgresqlserverdefault_privileges): Manage a database defaults privileges. Only works with PostgreSQL version 9.6 and above. |
44 | 45 | * [`postgresql::server::extension`](#postgresqlserverextension): Activate an extension on a postgresql database.
|
45 | 46 | * [`postgresql::server::grant`](#postgresqlservergrant): Define for granting permissions to roles.
|
46 | 47 | * [`postgresql::server::grant_role`](#postgresqlservergrant_role): Define for granting membership to a role.
|
@@ -1721,6 +1722,130 @@ Sets a user as the owner of the database.
|
1721 | 1722 |
|
1722 | 1723 | Default value: ``undef``
|
1723 | 1724 |
|
| 1725 | +### <a name="postgresqlserverdefault_privileges"></a>`postgresql::server::default_privileges` |
| 1726 | + |
| 1727 | +Manage a database defaults privileges. Only works with PostgreSQL version 9.6 and above. |
| 1728 | + |
| 1729 | +#### Parameters |
| 1730 | + |
| 1731 | +The following parameters are available in the `postgresql::server::default_privileges` defined type: |
| 1732 | + |
| 1733 | +* [`ensure`](#ensure) |
| 1734 | +* [`role`](#role) |
| 1735 | +* [`db`](#db) |
| 1736 | +* [`object_type`](#object_type) |
| 1737 | +* [`privilege`](#privilege) |
| 1738 | +* [`schema`](#schema) |
| 1739 | +* [`psql_db`](#psql_db) |
| 1740 | +* [`psql_user`](#psql_user) |
| 1741 | +* [`psql_path`](#psql_path) |
| 1742 | +* [`port`](#port) |
| 1743 | +* [`connect_settings`](#connect_settings) |
| 1744 | +* [`psql_path`](#psql_path) |
| 1745 | +* [`group`](#group) |
| 1746 | + |
| 1747 | +##### <a name="ensure"></a>`ensure` |
| 1748 | + |
| 1749 | +Data type: `Enum['present', |
| 1750 | + 'absent' |
| 1751 | + ]` |
| 1752 | + |
| 1753 | +Specifies whether to grant or revoke the privilege. |
| 1754 | + |
| 1755 | +Default value: `'present'` |
| 1756 | + |
| 1757 | +##### <a name="role"></a>`role` |
| 1758 | + |
| 1759 | +Data type: `String` |
| 1760 | + |
| 1761 | +Specifies the role or user whom you are granting access to. |
| 1762 | + |
| 1763 | +##### <a name="db"></a>`db` |
| 1764 | + |
| 1765 | +Data type: `String` |
| 1766 | + |
| 1767 | +Specifies the database to which you are granting access. |
| 1768 | + |
| 1769 | +##### <a name="object_type"></a>`object_type` |
| 1770 | + |
| 1771 | +Data type: `Pattern[ |
| 1772 | + /(?i:^FUNCTIONS$)/, |
| 1773 | + /(?i:^ROUTINES$)/, |
| 1774 | + /(?i:^SEQUENCES$)/, |
| 1775 | + /(?i:^TABLES$)/, |
| 1776 | + /(?i:^TYPES$)/ |
| 1777 | + ]` |
| 1778 | + |
| 1779 | +Specify target object type: 'FUNCTIONS', 'ROUTINES', 'SEQUENCES', 'TABLES', 'TYPES'. |
| 1780 | + |
| 1781 | +##### <a name="privilege"></a>`privilege` |
| 1782 | + |
| 1783 | +Data type: `String` |
| 1784 | + |
| 1785 | +Specifies comma-separated list of privileges to grant. Valid options: depends on object type. |
| 1786 | + |
| 1787 | +##### <a name="schema"></a>`schema` |
| 1788 | + |
| 1789 | +Data type: `String` |
| 1790 | + |
| 1791 | +Target schema. Defaults to 'public'. |
| 1792 | + |
| 1793 | +Default value: `'public'` |
| 1794 | + |
| 1795 | +##### <a name="psql_db"></a>`psql_db` |
| 1796 | + |
| 1797 | +Data type: `String` |
| 1798 | + |
| 1799 | +Defines the database to execute the grant against. This should not ordinarily be changed from the default. |
| 1800 | + |
| 1801 | +Default value: `$postgresql::server::default_database` |
| 1802 | + |
| 1803 | +##### <a name="psql_user"></a>`psql_user` |
| 1804 | + |
| 1805 | +Data type: `String` |
| 1806 | + |
| 1807 | +Specifies the OS user for running psql. Default value: The default user for the module, usually 'postgres'. |
| 1808 | + |
| 1809 | +Default value: `$postgresql::server::user` |
| 1810 | + |
| 1811 | +##### <a name="psql_path"></a>`psql_path` |
| 1812 | + |
| 1813 | +Data type: `String` |
| 1814 | + |
| 1815 | +Specifies the OS user for running psql. Default value: The default user for the module, usually 'postgres'. |
| 1816 | + |
| 1817 | +Default value: `$postgresql::server::psql_path` |
| 1818 | + |
| 1819 | +##### <a name="port"></a>`port` |
| 1820 | + |
| 1821 | +Data type: `Integer` |
| 1822 | + |
| 1823 | +Specifies the port to access the server. Default value: The default user for the module, usually '5432'. |
| 1824 | + |
| 1825 | +Default value: `$postgresql::server::port` |
| 1826 | + |
| 1827 | +##### <a name="connect_settings"></a>`connect_settings` |
| 1828 | + |
| 1829 | +Data type: `Hash` |
| 1830 | + |
| 1831 | +Specifies a hash of environment variables used when connecting to a remote server. |
| 1832 | + |
| 1833 | +Default value: `$postgresql::server::default_connect_settings` |
| 1834 | + |
| 1835 | +##### <a name="psql_path"></a>`psql_path` |
| 1836 | + |
| 1837 | +Specifies the path to the psql command. |
| 1838 | + |
| 1839 | +Default value: `$postgresql::server::psql_path` |
| 1840 | + |
| 1841 | +##### <a name="group"></a>`group` |
| 1842 | + |
| 1843 | +Data type: `String` |
| 1844 | + |
| 1845 | + |
| 1846 | + |
| 1847 | +Default value: `$postgresql::server::group` |
| 1848 | + |
1724 | 1849 | ### <a name="postgresqlserverextension"></a>`postgresql::server::extension`
|
1725 | 1850 |
|
1726 | 1851 | Activate an extension on a postgresql database.
|
|
0 commit comments