Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Added tmpdir parameter to java args. Is needed for CIS hardened servers #38

Merged
merged 1 commit into from
Feb 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class { 'puppetserver':
'xms' => '4g',
'xmx' => '6g',
'maxpermsize' => '512m',
'tmpdir' => '/tmp',
},

'webserver' => {
Expand Down Expand Up @@ -81,6 +82,13 @@ puppetserver::config::java_arg { '-Xms':
}
```

Special note on the tmpdir java_arg. The puppet-server installation requires a tmp dir with a mode of 1777 and a tmp folder which is NOT mounted with the noexec parameter.
Otherwise the installation will fail with this strange error message:
```
Caused by: org.jruby.embed.EvalFailedException: (Error) Cannot determine basic system flavour
```
For more details, see [here](https://github.com/puppetlabs/puppetserver/blob/master/documentation/known_issues.markdown).

### puppetserver::config::puppetserver

A Puppetserver configuration entry.
Expand Down
5 changes: 5 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
type => 'java_arg',
;

'java_args/tmpdir':
setting => '-Djava.io.tmpdir=',
type => 'java_arg',
;

'webserver/port':
setting => 'webserver.conf/webserver/port',
type => 'puppetserver',
Expand Down