Manage Glassfish/Payara server .. versionadded:: Carbon
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 of the connection factory
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 of the connection factory
Type of the connection factory, can be either connection_factory
,
queue_connection_factory` or ``topic_connection_factory
,
defaults to connection_factory
Description of the connection factory
Is the connection factory enabled? defaults to true
Minimum and initial number of connections in the pool, defaults to 1
Maximum number of connections that can be created in the pool, defaults to 250
Number of connections to be removed when idle_timeout expires, defaults to 2
Maximum time a connection can remain idle in the pool, in seconds, defaults to 300
Maximum time a caller can wait before timeout, in seconds, defaults to 60
Close all connections and reconnect on failure (or reconnect only when used), defaults to false
Level of transaction support, can be either XATransaction
, LocalTransaction
or NoTransaction
Connection validation is required, defaults to false
salt.states.glassfish.
destination_absent
(name, server=None)¶Ensures that the JMS Destination doesn't exists
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
The JMS Queue/Topic name
The Physical destination name
The JMS Destination resource type, either queue
or topic
, defaults is queue
A description of the resource
Defaults to True
salt.states.glassfish.
jdbc_datasource_absent
(name, both=True, server=None)¶Ensures the JDBC Datasource doesn't exists
Name of the datasource
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 of the datasource
Description of the datasource
Is the datasource enabled? defaults to true
Resource type, can be datasource
, xa_datasource
,
connection_pool_datasource
or driver
, defaults to datasource
SQL Server type, currently supports mysql
,
postgresql
and mssql
, defaults to mysql
URL of the server in jdbc form
Username for the server
Password for that username
Minimum and initial number of connections in the pool, defaults to 8
Maximum number of connections that can be created in the pool, defaults to 32
Number of connections to be removed when idle_timeout expires, defaults to 2
Maximum time a connection can remain idle in the pool, in seconds, defaults to 300
Maximum time a caller can wait before timeout, in seconds, defaults to 60
Return non-transactional connections
Defaults to the JDBC driver default
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 of the system property
salt.states.glassfish.
system_properties_present
(server=None, **kwargs)¶Ensures that the system properties are present
The system properties