Class: Ansible::Ruby::Modules::Postgresql_user

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb

Overview

Add or remove PostgreSQL users (roles) from a remote host and, optionally, grant the users access to an existing database or tables. The fundamental function of the module is to create, or delete, roles from a PostgreSQL cluster. Privilege assignment, or removal, is an optional step, which works on one database at a time. This allows for the module to be called several times in the same module to modify the permissions on different databases, or to grant permissions to already existing users. A user cannot be removed until all the privileges have been stripped from the user. In such situation, if the module tries to remove the user it will fail. To avoid this from happening the fail_on_user option signals the module to try to remove the user, but if not possible keep going; the module will report if changes happened and separately if the user was removed or not.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#conn_limitObject?



79
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 79

attribute :conn_limit

#dbString?



22
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 22

attribute :db

#encrypted:yes, ...



60
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 60

attribute :encrypted

#expiresString?



64
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 64

attribute :expires

#fail_on_user:yes, ...



26
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 26

attribute :fail_on_user

#login_hostString?



41
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 41

attribute :login_host

#login_passwordObject?



38
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 38

attribute :login_password

#login_unix_socketObject?



45
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 45

attribute :login_unix_socket

#login_userString?



34
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 34

attribute :login_user

#nameString



14
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 14

attribute :name

#no_password_changes:yes, ...



68
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 68

attribute :no_password_changes

#passwordString?



18
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 18

attribute :password

#portInteger?



30
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 30

attribute :port

#privString?



48
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 48

attribute :priv

#role_attr_flags:"[NO]SUPERUSER", ...



52
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 52

attribute :role_attr_flags

#ssl_mode:disable, ...



72
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 72

attribute :ssl_mode

#ssl_rootcertObject?



76
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 76

attribute :ssl_rootcert

#state:present, ...



56
# File 'lib/ansible/ruby/modules/generated/database/postgresql/postgresql_user.rb', line 56

attribute :state