salt.states.glassfish

Manage Glassfish/Payara server .. versionadded:: 2016.11.0

Management of glassfish using its RESTful API You can setup connection parameters like this

- server:
  - ssl: true
  - url: localhost
  - port: 4848
  - user: admin
  - password: changeit
salt.states.glassfish.connection_factory_absent(name, both=True, server=None)

Ensures the transaction factory is absent.

name

Name of the connection factory

both

Delete both the pool and the resource, defaults to true

salt.states.glassfish.connection_factory_present(name, restype='connection_factory', description='', enabled=True, min_size=1, max_size=250, resize_quantity=2, idle_timeout=300, wait_timeout=60, reconnect_on_failure=False, transaction_support='', connection_validation=False, server=None)

Ensures that the Connection Factory is present

name

Name of the connection factory

restype

Type of the connection factory, can be either connection_factory, queue_connection_factory` or ``topic_connection_factory, defaults to connection_factory

description

Description of the connection factory

enabled

Is the connection factory enabled? defaults to true

min_size

Minimum and initial number of connections in the pool, defaults to 1

max_size

Maximum number of connections that can be created in the pool, defaults to 250

resize_quantity

Number of connections to be removed when idle_timeout expires, defaults to 2

idle_timeout

Maximum time a connection can remain idle in the pool, in seconds, defaults to 300

wait_timeout

Maximum time a caller can wait before timeout, in seconds, defaults to 60

reconnect_on_failure

Close all connections and reconnect on failure (or reconnect only when used), defaults to false

transaction_support

Level of transaction support, can be either XATransaction, LocalTransaction or NoTransaction

connection_validation

Connection validation is required, defaults to false

salt.states.glassfish.destination_absent(name, server=None)

Ensures that the JMS Destination doesn't exists

name

Name of the JMS Destination

salt.states.glassfish.destination_present(name, physical, restype='queue', description='', enabled=True, server=None)

Ensures that the JMS Destination Resource (queue or topic) is present

name

The JMS Queue/Topic name

physical

The Physical destination name

restype

The JMS Destination resource type, either queue or topic, defaults is queue

description

A description of the resource

enabled

Defaults to True

salt.states.glassfish.jdbc_datasource_absent(name, both=True, server=None)

Ensures the JDBC Datasource doesn't exists

name

Name of the datasource

both

Delete both the pool and the resource, defaults to true

salt.states.glassfish.jdbc_datasource_present(name, description='', enabled=True, restype='datasource', vendor='mysql', sql_url='', sql_user='', sql_password='', min_size=8, max_size=32, resize_quantity=2, idle_timeout=300, wait_timeout=60, non_transactional=False, transaction_isolation='', isolation_guaranteed=True, server=None)

Ensures that the JDBC Datasource exists

name

Name of the datasource

description

Description of the datasource

enabled

Is the datasource enabled? defaults to true

restype

Resource type, can be datasource, xa_datasource, connection_pool_datasource or driver, defaults to datasource

vendor

SQL Server type, currently supports mysql, postgresql and mssql, defaults to mysql

sql_url

URL of the server in jdbc form

sql_user

Username for the server

sql_password

Password for that username

min_size

Minimum and initial number of connections in the pool, defaults to 8

max_size

Maximum number of connections that can be created in the pool, defaults to 32

resize_quantity

Number of connections to be removed when idle_timeout expires, defaults to 2

idle_timeout

Maximum time a connection can remain idle in the pool, in seconds, defaults to 300

wait_timeout

Maximum time a caller can wait before timeout, in seconds, defaults to 60

non_transactional

Return non-transactional connections

transaction_isolation

Defaults to the JDBC driver default

isolation_guaranteed

All connections use the same isolation level

salt.states.glassfish.system_properties_absent(name, server=None)

Ensures that the system property doesn't exists

name

Name of the system property

salt.states.glassfish.system_properties_present(server=None, **kwargs)

Ensures that the system properties are present

properties

The system properties