This repository has been archived by the owner on Oct 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL-based Fedora object persistence (Issue 1244) (#8)
* support SQL-based persistence * support SQL-based object persistence * use templates instead of default repository.json * add missing quotes * use ansible variables in repository.json instead of tomcat JAVA_OPTS * remove outdated note
- Loading branch information
1 parent
4a6ff88
commit 10a919e
Showing
9 changed files
with
168 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
|
||
- name: Create Fedora DB (mysql) | ||
mysql_db: | ||
name: "{{ fcrepo_db_name }}" | ||
state: present | ||
register: fcrepo_db_exists | ||
|
||
- name: Create Fedora DB User (mysql) | ||
mysql_user: | ||
name: "{{ fcrepo_db_user }}" | ||
password: "{{ fcrepo_db_password }}" | ||
state: present | ||
priv: "{{fcrepo_db_name}}.*:ALL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
|
||
- name: Create Fedora DB User (pgsql) | ||
postgresql_user: | ||
name: "{{ fcrepo_db_user }}" | ||
password: "{{ fcrepo_db_password }}" | ||
|
||
- name: Create Fedora DB (pgsql) | ||
postgresql_db: | ||
name: "{{ fcrepo_db_name }}" | ||
state: present | ||
owner: "{{ fcrepo_db_user }}" | ||
register: fcrepo_db_exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name" : "repo", | ||
"jndiName" : "", | ||
"workspaces" : { | ||
"predefined" : ["default"], | ||
"default" : "default", | ||
"allowCreation" : true, | ||
"cacheSize" : 10000 | ||
}, | ||
"storage" : { | ||
"persistence": { | ||
"type" : "db", | ||
"connectionUrl": "jdbc:mysql://{{ fcrepo_db_host }}:{{ fcrepo_db_port }}/{{ fcrepo_db_name }}?createDatabaseIfNotExist=true", | ||
"driver" : "com.mysql.jdbc.Driver", | ||
"username" : "{{ fcrepo_db_user }}", | ||
"password" : "{{ fcrepo_db_password }}" | ||
}, | ||
"binaryStorage" : { | ||
"type" : "file", | ||
"directory" : "{{ fcrepo_binary_directory }}", | ||
"minimumBinarySizeInBytes" : 4096 | ||
} | ||
}, | ||
"security" : { | ||
"anonymous" : { | ||
"roles" : ["readonly","readwrite","admin"], | ||
"useOnFailedLogin" : false | ||
}, | ||
"providers" : [ | ||
{ "classname" : "org.fcrepo.auth.common.BypassSecurityServletAuthenticationProvider" } | ||
] | ||
}, | ||
"garbageCollection" : { | ||
"threadPool" : "modeshape-gc", | ||
"initialTime" : "00:00", | ||
"intervalInHours" : 24 | ||
}, | ||
"node-types" : ["fedora-node-types.cnd", "file:/opt/fcrepo/configs/claw.cnd"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name" : "repo", | ||
"jndiName" : "", | ||
"workspaces" : { | ||
"predefined" : ["default"], | ||
"default" : "default", | ||
"allowCreation" : true, | ||
"cacheSize" : 10000 | ||
}, | ||
"storage" : { | ||
"persistence": { | ||
"type" : "db", | ||
"connectionUrl": "jdbc:postgresql://{{ fcrepo_db_host }}:{{ fcrepo_db_port }}/{{ fcrepo_db_name }}", | ||
"driver" : "org.postgresql.Driver", | ||
"username" : "{{ fcrepo_db_user }}", | ||
"password" : "{{ fcrepo_db_password }}" | ||
}, | ||
"binaryStorage" : { | ||
"type" : "file", | ||
"directory" : "{{ fcrepo_binary_directory }}", | ||
"minimumBinarySizeInBytes" : 4096 | ||
} | ||
}, | ||
"security" : { | ||
"anonymous" : { | ||
"roles" : ["readonly","readwrite","admin"], | ||
"useOnFailedLogin" : false | ||
}, | ||
"providers" : [ | ||
{ "classname" : "org.fcrepo.auth.common.BypassSecurityServletAuthenticationProvider" } | ||
] | ||
}, | ||
"garbageCollection" : { | ||
"threadPool" : "modeshape-gc", | ||
"initialTime" : "00:00", | ||
"intervalInHours" : 24 | ||
}, | ||
"node-types" : ["fedora-node-types.cnd", "file:/opt/fcrepo/configs/claw.cnd"] | ||
} |