Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Infrastructure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EIT-SWE
Infrastructure
Commits
3185fa5b
Commit
3185fa5b
authored
Oct 20, 2017
by
MICHAEL EUGENE ZALEWSKI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz-scheduler creates the datasource in wildfly
parent
39ff70fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
roles/quartz_scheduler/files/quartz-ds.cli
roles/quartz_scheduler/files/quartz-ds.cli
+22
-0
roles/quartz_scheduler/tasks/main.yml
roles/quartz_scheduler/tasks/main.yml
+20
-0
No files found.
roles/quartz_scheduler/files/quartz-ds.cli
0 → 100644
View file @
3185fa5b
connect
if (outcome == failed) of /subsystem=datasources/data-source=quartz-ds:read-resource
\
/subsystem=datasources/data-source=quartz-ds:add( \
jndi-name=java:jboss/datasources/quartz-ds, \
jta=true, \
enabled=true, \
use-ccm=false, \
\
driver-name=postgresql92-jdbc.jar, \
driver-class=org.postgresql.Driver, \
\
connection-url=jdbc:postgresql://localhost:5432/DB_NAME, \
user-name=DB_USER, \
password=DB_PASS, \
\
share-prepared-statements=false, \
validate-on-match=false, \
background-validation=false \
)
end-if
roles/quartz_scheduler/tasks/main.yml
View file @
3185fa5b
...
...
@@ -34,3 +34,23 @@
command
:
"
psql
-U
vagrant
-w
-f
{{
item
}}
-d
{{
db_name
}}"
with_items
:
-
~/quartz_tables_postgres.sql
-
name
:
Copy Quartz Datasource CLI
copy
:
src=../files/quartz-ds.cli
dest=~
mode=0775
-
name
:
Update database name in Quartz Datasource CLI
replace
:
path
:
~/quartz-ds.cli
regexp
:
"
{{
item.regexp
}}"
replace
:
"
{{
item.replace
}}"
with_items
:
-
{
regexp
:
'
DB_NAME'
,
replace
:
"
{{
db_name
}}"
}
-
{
regexp
:
'
DB_USER'
,
replace
:
"
{{
db_user
}}"
}
-
{
regexp
:
'
DB_PASS'
,
replace
:
"
{{
db_user_pw
}}"
}
-
name
:
Install Quartz Datasource
shell
:
chdir=~ {{ ansible_local.build_vars.wildfly.wildfly_prog_directory }}/jboss-cli.sh --file="{{ item }}"
with_items
:
-
quartz-ds.cli
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment