-
Notifications
You must be signed in to change notification settings - Fork 8
/
manifest.jps
86 lines (76 loc) · 2.44 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
version: '1.5'
type: install
id: liferay
name: Liferay
baseUrl: https://raw.githubusercontent.com/jelastic-jps/
logo: liferay/master/images/liferay.png
homepage: http://www.liferay.com/
description:
text: liferay/master/texts/description.md
short: Leading Open Source web-based platforms to build portals
success: liferay/master/texts/success.md
categories:
- apps/cms
globals:
DB_USER: "liferay"
DB_PASS: ${fn.password(10)}
skipNodeEmails: true
nodes:
- cloudlets: 32
nodeType: tomcat9
engine: openjdk11
links: sqldb:DB
- cloudlets: 8
count: 2
nodeType: mariadb106
cluster:
scheme: master
db_user: ${globals.DB_USER}
db_pass: ${globals.DB_PASS}
is_proxysql: false
env:
SCHEME: master
DB_USER: ${globals.DB_USER}
DB_PASS: ${globals.DB_PASS}
IS_PROXYSQL: false
onInstall:
- changerights
- createDb
- deployArchive
- restartNodes:
- nodeGroup: cp
actions:
changerights:
cmd[cp]: chmod 777 /opt
user: root
deployArchive:
- cmd [cp]: |-
yum -y install p7zip
jem service stop
user: root
- cmd [cp]: |-
cd /opt
wget --no-check-certificate "https://download.jelastic.com/public.php?service=files&t=5a90929a5199bc71ce26decc79bb0463&download" -O /opt/liferay.7z
7za x liferay.7z -y > /dev/null
mv /opt/liferay-portal /opt/liferay
cp -R /opt/liferay/data /opt
cp -R /opt/liferay/license /opt
cp -R /opt/liferay/osgi /opt
cp -R /opt/liferay/tools /opt
cp -R /opt/liferay/.liferay-home /opt
rm -fR /opt/tomcat/webapps/ROOT/* /opt/liferay.7z
cp -nR /opt/liferay/tomcat/* /opt/tomcat/
cp /opt/liferay/tomcat/conf/catalina.properties /opt/tomcat/conf
cat << EOF > /opt/tomcat/webapps/ROOT/WEB-INF/classes/portal-ext.properties
jdbc.default.driverClassName=org.mariadb.jdbc.Driver
jdbc.default.url=jdbc:mariadb://sqldb.${env.domain}/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=${globals.DB_USER}
jdbc.default.password=${globals.DB_PASS}
schema.run.enabled=true
schema.run.minimal=true
virtual.hosts.valid.hosts=${env.domain}
EOF
cp /opt/tomcat/webapps/ROOT/WEB-INF/classes/portal-ext.properties /opt
createDb:
cmd[${nodes.sqldb.master.id}]:
mariadb -u${globals.DB_USER} -p${globals.DB_PASS} -h DB -e "CREATE DATABASE IF NOT EXISTS lportal;"