oasis_roles.jbosseap
このロールは非推奨となりました: oasis_roles.system のバージョンをご利用ください
Red Hat JBoss EAP
このロールは、Red Hat JBoss EAPをインストールおよび構成します。現在、"standalone" モードのみがサポートされています。すべての構成変更は、jboss-cliを介して行われます。
要件
Ansible 2.4 以上
Red Hat Enterprise Linux 7 もしくはそれに相当するもの(古いバージョンでは未テスト)
有効なRed Hatサブスクリプション
ロール変数
現在、以下の変数がサポートされています。
一般
jbosseap_jboss_server_config: standalone
- 使用する構成ファイル(.xml拡張子なし)jbosseap_clean_config: False
- クリーン/初期構成でEAPを起動し、すべての変更を適用するjbosseap_jboss_home
- EAPインストールのホームディレクトリjbosseap_jboss_config_dir
- 構成ディレクトリのパスjbosseap_jboss_user
- OSユーザーjbosseap_jboss_group
- OSグループjbosseap_cli_batch_dir
- 作成した.cliスクリプトを保存するパスjbosseap_cli_files
- 作成するすべての.cliファイルのリスト(jbosseap_clean_config: Trueにする際に必要)jbosseap_java_opts
- Javaオプションのリスト (JAVA_OPTS)jbosseap_datasource_packages
- データソースを有効にするためにインストールするシステムパッケージのリスト (例: mysql-connector-java, postgresql-jdbcなど)
システムプロパティ, <system-properties></system-properties>
jbosseap_system_properties:
- name: prop1
value: prop1val1
ロギング, <subsystem xmlns="urn:jboss:domain:logging">
jbosseap_logging:
logger:
- category: com.foo
level: DEBUG
formatter:
- name: myformatter
pattern: XXX
custom_handler:
- name: myhandler
class: com.bla
module: com.aa
formatter: XXX
level: XXX
properties: '("name1" => "val1"),("name2" => "val2")'
ウェブ, <subsystem xmlns="urn:jboss:domain:web">
jbosseap_web:
valve:
- name: myvalve
module: com.bla
class: com.bla
params: '("name1" => "val1"),("name2" => "val2")'
virtual_server:
- name: default-host
enable-welcome-root: 'true'
JDBCドライバ
jbosseap_jdbc_drivers:
- file: file1.jar
データソース, <subsystem xmlns="urn:jboss:domain:datasources">
必要に応じて、リテラルのtrue/falseをシングルクオートで囲んでください。
jbosseap_datasources:
- DS:
name: MyDS
connection_url: jdbc:mysql://localhost:3306/dbname
connection_properties:
- name: prop1
value: val1
jndi_name: java:jboss/datasources/MyDS
driver_name: mysql.jdbc.Driver_5_1
jta: 'true'
connectable: 'true'
use_java_context: 'true'
spy: 'true'
use_ccm: 'true'
statistics_enabled: 'true'
driver_class: com.mydriver.jdbc.Driver
datasource_class: com.datasoure.class
new_connection_sql: select 1
transaction_isolation: TRANSACTION_XX
url_delimiter: XXX
url_selector_strategy_class_name: XXX
pool:
min_pool_size: XXX
max_pool_size: XXX
prefill: True
use_strict_min: 'true'
flush_strategy: XXX
allow_multiple_users: 'true'
security:
user_name: XXX
password: XXX
security_domain: XXX
reauth_plugin_class_name: XXX
reauth_plugin_properties: XXX
validation:
valid_connection_checker_class_name: XXX
valid_connection_checker_properties: XXX
check_valid_connection_sql: XXX
validate_on_match: 'true'
background_validation: 'false'
background_validation_millis: XXX
use_fast_fail: 'true'
stale_connection_checker_class_name: XXX
stale_connection_checker_properties: XXX
exception_sorter_class_name: XXX
exception_sorter_properties: XXX
timeout:
blocking_timeout_millis: XXX
idle_timeout_minutes: XXX
set_tx_query_timeout: XXX
query_timeout: XXX
use_try_lock: XXX
allocation_retry: XXX
allocation_retry_wait_millis: XXX
statement:
track_statements: 'true'
prepared_statement_cache_size: XXX
share_prepared_statements: 'true'
依存関係
なし
例プレイブック
- hosts: jbosseap-servers
roles:
- role: jbosseap
jbosseap_jdbc_drivers:
- file: mysql-connector-java-5.1.37-bin.jar
- file: postgresql-9.4.1207.jar
jbosseap_datasources:
- borg:
name: MysqlDS
connection_url: jdbc:mysql://localhost:3306/borg
connection_properties:
- name: autoReconnect
value: 'true'
- name: useUnicode
value: 'true'
- name: characterEncoding
value: UTF-8
- name: maxReconnects
value: 999999
jndi_name: java:jboss/datasources/MysqlDS
driver_name: mysql-connector-java-5.1.37-bin.jar
driver_class: com.mysql.jdbc.Driver
use_java_context: 'true'
transaction_isolation: TRANSACTION_READ_COMMITTED
pool:
min_pool_size: 10
max_pool_size: 100
prefill: 'true'
security:
user_name: borg
password: ***
validation:
validate_on_match: 'true'
valid_connection_checker_class_name: org.MySQLValidConnectionChecker
exception_sorter_class_name: org.MySQLExceptionSorter
statement:
prepared_statement_cache_size: 32
share_prepared_statements: 'true'
ライセンス
BSD
著者情報
Greg Hellings ghelling@redhat.com