forked from saltstack-formulas/nexus-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar-v3.example
97 lines (97 loc) · 3.64 KB
/
pillar-v3.example
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
# Requires: https://github.com/saltstack-formulas/nexus-formula
nexus:
java:
#JAVA_HOME for bin/keytool
home: '/usr/lib/java'
download:
#version is only used for creating the directories.
version: '3.11.0-01'
#add the http download path
httppath: 'https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.11.0-01-unix.tar.gz'
#add the hash, you can use ASC, SHA1, and MD5 as provided via sonatype
hash: 'http://download.sonatype.com/nexus/3/latest-unix.tar.gz.sha1'
#add the path where the nexus archiv should be downloaded and extracted to.
hostpath: '/tmp/download'
#add if copylivedata is used as a state
datacopy:
#the user used for scp access
originuser: 'root'
#the origin host to copy the data from
originhost: 'nexus-inc-01'
#the origin path where the data is from e.g. /opt/sonatype-work
originpath: '/srv/nexus-data'
#add the install path
install:
# only add e.g. /opt no trailing /
path: '/opt'
# add the datapath /opt/sonatype-work no trailing /
datapath: '/srv/sonatype-work'
plugins:
nexus_repository_apt:
# The plugin's path to download to the minion, this can be hosted on either the salt master server (salt://), the salt minion local file system (/), or on an HTTP or FTP server (http(s)://, ftp://)
path: '/tmp/nexus-repository-apt-1.0.5.jar'
version:'1.0.5'
user:
# generate a system user with the name 'nexus'
name: 'nexus'
# generate a system group with the name 'nexus'
group: 'nexus'
# add the environmentvariable for NEXUS_HOME to the symlink
environmentvariable: 'NEXUS_HOME="/opt/nexus"'
# generate the home folder.
home: '/home/nexus'
file:
nexus:
# Limits on the number of file descriptors
limit: '65536'
# change the 'nexus.properties' file in /opt/sonatype-work/etc/nexus.properties
properties:
# non https port
applicationport: '8081'
# https port, if set, automatically will start with https
# applicationportssl: '8443'
# sets applicationhost
applicationhost: '0.0.0.0'
# sets nexuscontextpath
nexuscontextpath: '/'
jetty:
# configure the jetty file
https:
# add the keystorename without '.jks'
keystorepath: "keystore"
# add the keystorepassword which is used for the self signed certificate
keystorepassword: 'dummy'
# add the keystoremanagerpassword, which is used for creating new certificates in the java keystore
keymanagerpassword: 'dummy'
# add truststorepath
truststorepath: "truststore"
# add truststorepassword
truststorepassword: 'dummy'
# following informations used for generating self signed certificate
certificate:
commonname: 'dummy'
ou: 'dummy'
organisation: 'dummy'
country: 'ZZ'
# set run option in 'nexus.rc'
rc:
runasuser: 'nexus'
# configure java options in 'nexus.vmoptions'
vmoptions:
addjavavariables:
- 'Xms1200M'
- 'Xmx1200M'
- 'XX:MaxDirectMemorySize=2G'
- 'XX:+UnlockDiagnosticVMOptions'
- 'XX:+UnsyncloadClass'
- 'XX:+LogVMOutput'
- 'XX:LogFile=../sonatype-work/nexus3/log/jvm.log'
- 'Djava.net.preferIPv4Stack=true'
- 'Dkaraf.home=.'
- 'Dkaraf.base=.'
- 'Dkaraf.etc=etc/karaf'
- 'Djava.util.logging.config.file=etc/karaf/java.util.logging.properties'
- 'Dkaraf.data=../sonatype-work/nexus3'
- 'Djava.io.tmpdir=../sonatype-work/nexus3/tmp'
- 'Dkaraf.startLocalConsole=false'
- 'Djava.util.prefs.userRoot=/home/nexus/.java'