-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinit.pp
More file actions
112 lines (96 loc) · 2.39 KB
/
init.pp
File metadata and controls
112 lines (96 loc) · 2.39 KB
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
107
108
109
110
111
112
# Class: glassfish
#
# This module manages glassfish
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
class glassfish {
Domain {
user => 'gfish',
asadminuser => 'admin',
passwordfile => '/home/gfish/.aspass',
}
domain {
'mydomain':
ensure => present;
'devdomain':
ensure => present,
portbase => '5000',
profile => 'devel';
'myolddomain':
ensure => absent;
}
Systemproperty {
user => 'gfish',
asadminuser => 'admin',
passwordfile => '/home/gfish/.aspass',
}
systemproperty {
'search-url':
ensure => present,
portbase => '5000',
value => 'http://www.google.com',
require => Domain['devdomain'];
}
Jdbcconnectionpool {
ensure => present,
user => 'gfish',
asadminuser => 'admin',
passwordfile => '/home/gfish/.aspass',
datasourceclassname => 'com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource',
resourcetype => 'javax.sql.ConnectionPoolDataSource',
require => Glassfish['mydomain'],
}
jdbcconnectionpool {
'MyPool':
properties => 'password=mYPasS:user=myuser:url=jdbc\:mysql\://host.ex.com\:3306/mydatabase:useUnicode=true:characterEncoding=utf8:characterResultSets=utf:autoReconnect=true:autoReconnectForPools=true';
}
Jdbcresource {
ensure => present,
user => 'gfish',
passwordfile => '/home/gfish/.aspass',
}
jdbcresource {
'jdbc/MyPool':
connectionpool => 'MyPool',
}
Application {
ensure => present,
user => 'gfish',
passwordfile => '/home/gfish/.aspass',
}
application {
'pluto':
source => '/home/gfish/pluto.war';
'myhello':
source => '/home/gfish/hello.war',
require => Application['pluto'];
}
Jvmoption {
ensure => present,
user => 'gfish',
passwordfile => '/home/gfish/.aspass',
}
jvmoption {
['-DjvmRoute=01', '-server']:
}
Authrealm {
ensure => present,
user => 'gfish',
asadminuser => 'admin',
passwordfile => '/Users/larstobi/.aspass',
}
authrealm {
'agentRealm':
ensure => present,
classname => 'com.sun.identity.agents.appserver.v81.AmASRealm',
properties => ['jaas-context=agentRealm:foo=bar'],
require => Domain['mydomain'];
}
}