Skip to content

Source config file if present for GeoServer setttings#420

Merged
chrisbennight merged 1 commit intomasterfrom
GEOWAVE-419-External-Config-File
Jun 10, 2015
Merged

Source config file if present for GeoServer setttings#420
chrisbennight merged 1 commit intomasterfrom
GEOWAVE-419-External-Config-File

Conversation

@spohnan
Copy link
Copy Markdown
Contributor

@spohnan spohnan commented Jun 5, 2015

This will allow us to add GeoServer configs like Xmx2g on an app server node in an external file either manually or with something like Puppet. This will preserve the setting between upgrades and will not modify any RPM installed files.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 62.75% when pulling b593b3d on GEOWAVE-419-External-Config-File into c2843d0 on master.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this file get manage via alternatives?
(I can see arguments for different config files per version, but then I'm not sure what the expectation is re: upgrading - copy over currently linked file?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisbennight The config file would not be managed by RPM and if absent you'd be using the default settings. I'd probably use Puppet to mange the file with something like the following.

# Bump up the memory allowed for GeoServer
  file { '/etc/geowave/geowave.config':
    ensure  => file,
    owner   => 'geowave',
    group   => 'geowave',
    mode    => 644,
    content => 'export JAVA_OPTS="-Xmx2500m -XX:MaxPermSize=128m"',
    require => Package['geowave-core'],
    notify  => Service['geowave'],
  }

@chrisbennight chrisbennight added this to the Current milestone Jun 10, 2015
chrisbennight added a commit that referenced this pull request Jun 10, 2015
Source config file if present for GeoServer setttings
@chrisbennight chrisbennight merged commit d32f627 into master Jun 10, 2015
@spohnan spohnan deleted the GEOWAVE-419-External-Config-File branch June 25, 2015 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants