Skip to content

Commit

Permalink
Fix file limit for Nexus 3 deployments
Browse files Browse the repository at this point in the history
The release of Nexus 3.4.0 includes a statement that the file descriptor
limit for Nexus 3 needs to be set to 65536. Future revisions fo Nexus 3
will likely fail to start if the descriptor is less than this.

Additionally fix linting issue that is causing validation to fail

Signed-off-by: Andrew Grimberg <[email protected]>
  • Loading branch information
tykeal committed Aug 17, 2017
1 parent 7dffd13 commit bf5c8fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
owner => 'root',
group => 'root',
content => template('nexus/nexus.systemd.erb'),
} ->
service { 'nexus':
}
-> service { 'nexus':
ensure => running,
name => 'nexus',
enable => true,
Expand Down
3 changes: 2 additions & 1 deletion templates/nexus.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ After=network.target

[Service]
Type=forking
LimitNOFILE=65536
ExecStart=<%= scope.lookupvar('nexus::service::nexus_script') %> start
ExecStop=<%= scope.lookupvar('nexus::service::nexus_script') %> stop
User=<%= scope.lookupvar('nexus::service::nexus_user') %>
Group=<%= scope.lookupvar('nexus::service::nexus_group') %>
Restart=on-abort

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit bf5c8fc

Please sign in to comment.