-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmanifest.jps
106 lines (92 loc) · 3 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
type: install
id: magnolia
version: 1.7
name: Magnolia CMS
logo: /images/view.png
homepage: http://www.magnolia-cms.com/
baseUrl: https://raw.githubusercontent.com/jelastic-jps/magnolia-cms/master
globals:
dumpsUrl: https://github.com/jelastic-jps/magnolia-cms/raw/master/dumps
description: Magnolia is an open-source Java CMS that delivers smartphone simplicity on an enterprise-scale.
The mobile-inspired HTML5 user interface works through customisable, task-focused Apps,
a notification stream called the Pulse, and a system of Favorites for quickly accessing the workspace.
categories:
- apps/cms
- apps/content-management
ssl: true
engine: openjdk11
nodes:
- cloudlets: 32
fixedCloudlets: 8
nodeType: tomcat9
- cloudlets: 8
fixedCloudlets: 2
nodeType: mariadb10
settings:
fields:
- name: demo
type: checkbox
caption: Include Magnolia CMS demo content
value: true
hideLabel: false
hidden: false
onInstall:
- upload
- set-SQL-settings
- deployApp
- set-magnolica-conf
- restart
actions:
upload:
upload:
- nodeGroup: cp
sourcePath: ${baseUrl}/libs/mysql-connector-java-8.0.23.jar
destPath: "/opt/tomcat/lib/mysql-connector-java-8.0.23.jar"
set-SQL-settings:
prepareSqlDatabase:
- nodeGroup: sqldb
loginCredentials:
user: root
password: "${nodes.sqldb.password}"
newDatabaseName: magnolia
newDatabaseUser:
name: magnolia
password: "${user.appPassword}"
cmd[sqldb]: mysql -u root -p${nodes.sqldb.password} -e "grant all privileges on *.* to 'magnolia'@'%'"
deployApp:
- if ('${settings.demo}' == 'true'):
deploy:
archive: ${globals.dumpsUrl}/magnolia-community-demo-webapp-6.2.8.war
name: magnolia-community-demo-webapp-6.2.8.war
context: ROOT
- else:
deploy:
archive: ${globals.dumpsUrl}/magnolia-community-webapp-6.2.8.war
name: magnolia-community-webapp-6.2.8.war
context: ROOT
set-magnolica-conf:
- replaceInFile:
nodeGroup: cp
path: /opt/tomcat/webapps/ROOT/WEB-INF/config/default/magnolia.properties
replacements:
- pattern: jackrabbit-bundle-h2-search.xml
replacement: jackrabbit-bundle-mysql-search.xml
- replaceInFile:
nodeGroup: cp
path: /opt/tomcat/webapps/ROOT/WEB-INF/config/repo-conf/jackrabbit-bundle-mysql-search.xml
replacements:
- pattern: mysql://localhost:3306
replacement: mysql://${nodes.sqldb.address}
- pattern: value="root"
replacement: value="magnolia"
- pattern: value="password"
replacement: value="${user.appPassword}"
- pattern: value="root"
replacement: value="magnolia"
- cmd[cp]: rm /opt/tomcat/webapps/ROOT/WEB-INF/lib/derby-10.14.2.0.jar
restart:
- restartNodes:
nodeGroup: sqldb
- restartNodes:
nodeGroup: cp
success: /text/success-text.md