Skip to content
Snippets Groups Projects
Unverified Commit a3be59d0 authored by Imran Iqbal's avatar Imran Iqbal Committed by GitHub
Browse files

Merge pull request #112 from myii/feat/add-debian-8_fix-issues_merge-test-suites

feat: merge test suites into single `default` suite
parents 41edff6c 50262c3c
No related branches found
No related tags found
No related merge requests found
Showing
with 713 additions and 142 deletions
...@@ -20,6 +20,9 @@ AllCops: ...@@ -20,6 +20,9 @@ AllCops:
- test/integration/**/serverspec/* - test/integration/**/serverspec/*
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config` # Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`
Lint/EmptyWhen:
Exclude:
- test/integration/default/controls/config_spec.rb
Style/FormatStringToken: Style/FormatStringToken:
Exclude: Exclude:
- test/integration/tomcat_install/controls/yaml_dump_spec.rb - test/integration/default/controls/yaml_dump_spec.rb
...@@ -58,43 +58,42 @@ jobs: ...@@ -58,43 +58,42 @@ jobs:
## Define the rest of the matrix based on Kitchen testing ## Define the rest of the matrix based on Kitchen testing
# Make sure the instances listed below match up with # Make sure the instances listed below match up with
# the `platforms` defined in `kitchen.yml` # the `platforms` defined in `kitchen.yml`
- env: INSTANCE=tomcat-install-debian-10-master-py3 - env: INSTANCE=default-debian-10-master-py3
- env: INSTANCE=tomcat-install-ubuntu-1804-master-py3 - env: INSTANCE=default-ubuntu-1804-master-py3
# - env: INSTANCE=tomcat-extend-ubuntu-1804-master-py3 # - env: INSTANCE=default-centos-8-master-py3
# - env: INSTANCE=tomcat-install-centos-8-master-py3 - env: INSTANCE=default-fedora-31-master-py3
- env: INSTANCE=tomcat-install-fedora-31-master-py3 - env: INSTANCE=default-opensuse-leap-151-master-py3
- env: INSTANCE=tomcat-install-opensuse-leap-151-master-py3 # - env: INSTANCE=default-amazonlinux-2-master-py3
# - env: INSTANCE=tomcat-install-amazonlinux-2-master-py3 # - env: INSTANCE=default-arch-base-latest-master-py2
# - env: INSTANCE=tomcat-install-arch-base-latest-master-py2 # - env: INSTANCE=default-debian-10-3000-1-py3
# - env: INSTANCE=tomcat-install-debian-10-3000-1-py3 # - env: INSTANCE=default-ubuntu-1804-3000-1-py3
# - env: INSTANCE=tomcat-install-ubuntu-1804-3000-1-py3 # - env: INSTANCE=default-centos-8-3000-1-py3
# - env: INSTANCE=tomcat-install-centos-8-3000-1-py3 # - env: INSTANCE=default-fedora-31-3000-1-py3
# - env: INSTANCE=tomcat-install-fedora-31-3000-1-py3 # - env: INSTANCE=default-opensuse-leap-151-3000-1-py3
# - env: INSTANCE=tomcat-install-opensuse-leap-151-3000-1-py3 - env: INSTANCE=default-amazonlinux-2-3000-1-py3
- env: INSTANCE=tomcat-install-amazonlinux-2-3000-1-py3 # - env: INSTANCE=default-arch-base-latest-3000-1-py2
# - env: INSTANCE=tomcat-install-arch-base-latest-3000-1-py2 # - env: INSTANCE=default-debian-10-2019-2-py3
# - env: INSTANCE=tomcat-install-debian-10-2019-2-py3 - env: INSTANCE=default-debian-9-2019-2-py3
- env: INSTANCE=tomcat-install-debian-9-2019-2-py3 # - env: INSTANCE=default-ubuntu-1804-2019-2-py3
# - env: INSTANCE=tomcat-install-ubuntu-1804-2019-2-py3 # - env: INSTANCE=default-ubuntu-1604-2019-2-py3
# - env: INSTANCE=tomcat-install-ubuntu-1604-2019-2-py3 # - env: INSTANCE=default-centos-8-2019-2-py3
# - env: INSTANCE=tomcat-install-centos-8-2019-2-py3 - env: INSTANCE=default-centos-7-2019-2-py3
- env: INSTANCE=tomcat-install-centos-7-2019-2-py3 # - env: INSTANCE=default-fedora-31-2019-2-py3
# - env: INSTANCE=tomcat-install-fedora-31-2019-2-py3 # - env: INSTANCE=default-opensuse-leap-151-2019-2-py3
# - env: INSTANCE=tomcat-install-opensuse-leap-151-2019-2-py3 # - env: INSTANCE=default-amazonlinux-2-2019-2-py3
# - env: INSTANCE=tomcat-install-amazonlinux-2-2019-2-py3 # - env: INSTANCE=default-ubuntu-1804-2019-2-py2
# - env: INSTANCE=tomcat-install-ubuntu-1804-2019-2-py2 # - env: INSTANCE=default-amazonlinux-1-2019-2-py2
# - env: INSTANCE=tomcat-install-amazonlinux-1-2019-2-py2 # - env: INSTANCE=default-arch-base-latest-2019-2-py2
# - env: INSTANCE=tomcat-install-arch-base-latest-2019-2-py2 # - env: INSTANCE=default-centos-7-2018-3-py3
# - env: INSTANCE=tomcat-install-centos-7-2018-3-py3 # - env: INSTANCE=default-fedora-30-2018-3-py3
# - env: INSTANCE=tomcat-install-fedora-30-2018-3-py3 # - env: INSTANCE=default-debian-9-2018-3-py2
# - env: INSTANCE=tomcat-install-debian-9-2018-3-py2 - env: INSTANCE=default-debian-8-2018-3-py2
# - env: INSTANCE=tomcat-install-debian-8-2018-3-py2 # - env: INSTANCE=default-ubuntu-1804-2018-3-py2
# - env: INSTANCE=tomcat-install-ubuntu-1804-2018-3-py2 # - env: INSTANCE=default-ubuntu-1604-2018-3-py2
# - env: INSTANCE=tomcat-install-ubuntu-1604-2018-3-py2 # - env: INSTANCE=default-centos-6-2018-3-py2
# - env: INSTANCE=tomcat-install-centos-6-2018-3-py2 # - env: INSTANCE=default-opensuse-leap-151-2018-3-py2
# - env: INSTANCE=tomcat-install-opensuse-leap-151-2018-3-py2 # - env: INSTANCE=default-amazonlinux-1-2018-3-py2
# - env: INSTANCE=tomcat-install-amazonlinux-1-2018-3-py2 # - env: INSTANCE=default-arch-base-latest-2018-3-py2
# - env: INSTANCE=tomcat-install-arch-base-latest-2018-3-py2
## Define the release stage that runs `semantic-release` ## Define the release stage that runs `semantic-release`
- stage: 'release' - stage: 'release'
......
...@@ -84,12 +84,12 @@ Configures Tomcat name-based virtual hosts using data from Pillar. ...@@ -84,12 +84,12 @@ Configures Tomcat name-based virtual hosts using data from Pillar.
``tomcat.expires`` ``tomcat.expires``
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^
Configures Tomcat simple TCP cluster using data from Pillar. Enables Tomcats' ExpiresFilter using data from Pillar.
``tomcat.cluster`` ``tomcat.cluster``
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^
Enables Tomcats' ExpiresFilter using data from Pillar. Configures Tomcat simple TCP cluster using data from Pillar.
``tomcat.context`` ``tomcat.context``
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^
......
...@@ -173,28 +173,15 @@ verifier: ...@@ -173,28 +173,15 @@ verifier:
- cli - cli
suites: suites:
- name: tomcat_install - name: default
provisioner: provisioner:
state_top: state_top:
base: base:
'*': '*':
- tomcat.yaml_dump - tomcat.yaml_dump
- tomcat - tomcat
pillars: - tomcat.native
top.sls: - tomcat.config
base:
'*':
- tomcat
pillars_from_files:
tomcat.sls: pillar.example
verifier:
inspec_tests:
- path: test/integration/tomcat_install
- name: tomcat_extend
provisioner:
state_top:
base:
'*':
- tomcat.manager - tomcat.manager
- tomcat.vhosts - tomcat.vhosts
- tomcat.expires - tomcat.expires
...@@ -207,6 +194,9 @@ suites: ...@@ -207,6 +194,9 @@ suites:
- tomcat - tomcat
pillars_from_files: pillars_from_files:
tomcat.sls: pillar.example tomcat.sls: pillar.example
dependencies:
- name: comparison_files
path: ./test/salt
verifier: verifier:
inspec_tests: inspec_tests:
- path: test/integration/tomcat_extend - path: test/integration/default
# InSpec Profile: `tomcat_extend` # InSpec Profile: `default`
This shows the implementation of the `tomcat_extend` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md). This shows the implementation of the `default` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
## Verify a profile ## Verify a profile
InSpec ships with built-in features to verify a profile structure. InSpec ships with built-in features to verify a profile structure.
```bash ```bash
$ inspec check tomcat_extend $ inspec check default
Summary Summary
------- -------
Location: tomcat_extend Location: default
Profile: profile Profile: profile
Controls: 4 Controls: 4
Timestamp: 2019-06-24T23:09:01+00:00 Timestamp: 2019-06-24T23:09:01+00:00
...@@ -28,7 +28,7 @@ Warnings ...@@ -28,7 +28,7 @@ Warnings
To run all **supported** controls on a local machine use `inspec exec /path/to/profile`. To run all **supported** controls on a local machine use `inspec exec /path/to/profile`.
```bash ```bash
$ inspec exec tomcat_extend $ inspec exec default
.. ..
Finished in 0.0025 seconds (files took 0.12449 seconds to load) Finished in 0.0025 seconds (files took 0.12449 seconds to load)
...@@ -40,7 +40,7 @@ Finished in 0.0025 seconds (files took 0.12449 seconds to load) ...@@ -40,7 +40,7 @@ Finished in 0.0025 seconds (files took 0.12449 seconds to load)
To run one control from the profile use `inspec exec /path/to/profile --controls name`. To run one control from the profile use `inspec exec /path/to/profile --controls name`.
```bash ```bash
$ inspec exec tomcat_extend --controls package $ inspec exec default --controls package
. .
Finished in 0.0025 seconds (files took 0.12449 seconds to load) Finished in 0.0025 seconds (files took 0.12449 seconds to load)
......
# frozen_string_literal: true
# Prepare platform "finger" and base path to file comparison directory
platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
comparison_files_dir = '/tmp/kitchen/srv/salt/comparison_files'
# Default values for `control 'Tomcat main config'`
main_config_file = '/etc/sysconfig/tomcat'
# Default values for `control 'Tomcat Catalina temp dir'`
catalina_tmpdir = '/var/cache/tomcat/temp'
catalina_tmpdir_user_and_group = 'tomcat'
# Default values for `control 'Tomcat `server.xml` config'`
conf_dir = '/etc/tomcat'
server_xml_user_and_group = 'tomcat'
# Override by platform
case platform[:family]
when 'debian'
main_config_file = '/etc/default/tomcat8'
catalina_tmpdir = '/var/cache/tomcat8/temp'
catalina_tmpdir_user_and_group = 'tomcat8'
conf_dir = '/etc/tomcat8'
server_xml_user_and_group = 'tomcat8'
case platform_finger
when 'debian-10'
main_config_file = '/etc/default/tomcat9'
catalina_tmpdir = '/var/cache/tomcat9/temp'
catalina_tmpdir_user_and_group = 'tomcat'
conf_dir = '/etc/tomcat9'
server_xml_user_and_group = 'tomcat'
when 'debian-9'
when 'debian-8'
main_config_file = '/etc/default/tomcat7'
catalina_tmpdir = '/var/cache/tomcat7/temp'
catalina_tmpdir_user_and_group = 'tomcat7'
conf_dir = '/etc/tomcat7'
server_xml_user_and_group = 'tomcat7'
when 'ubuntu-18'
when 'ubuntu-16'
end
when 'redhat'
case platform_finger
when 'centos-8'
when 'centos-7'
when 'centos-6'
when 'amazon-2'
when 'amazon-2018'
end
when 'fedora'
case platform_finger
when 'fedora-31'
when 'fedora-30'
end
when 'suse'
case platform_finger
when 'opensuse-15'
server_xml_user_and_group = 'root'
end
when 'linux'
case platform_finger
when 'arch-5'
end
end
control 'Tomcat main config' do
title 'should contain the lines'
# Prepare comparison file
main_config_path = "#{comparison_files_dir}/main_config/#{platform_finger}"
main_config = file(main_config_path).content
describe file(main_config_file) do
it { should be_file }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its('content') { should include main_config }
end
end
control 'Tomcat Catalina temp dir' do
title 'should be prepared with the settings'
describe file(catalina_tmpdir) do
it { should be_directory }
it { should be_owned_by catalina_tmpdir_user_and_group }
it { should be_grouped_into catalina_tmpdir_user_and_group }
its('mode') { should cmp '0755' }
end
end
control 'Tomcat `server.xml` config' do
title 'should contain the lines'
server_xml_file = "#{conf_dir}/server.xml"
server_xml_path = "#{comparison_files_dir}/server_xml/#{platform_finger}.xml"
server_xml = file(server_xml_path).content
# Need the hostname to be used for `tomcat.cluster`
server_xml = server_xml.gsub(
'HOSTNAME_PLACEHOLDER',
file('/etc/hostname').content.chomp
)
describe file(server_xml_file) do
it { should be_file }
it { should be_owned_by server_xml_user_and_group }
it { should be_grouped_into server_xml_user_and_group }
its('mode') { should cmp '0644' }
unless %w[debian-9].include?(platform_finger)
its('content') { should include server_xml }
end
end
end
# frozen_string_literal: true # frozen_string_literal: true
# Prepare platform "finger"
platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
control 'Tomcat packages' do control 'Tomcat packages' do
title 'should be installed' title 'should be installed'
...@@ -7,11 +10,13 @@ control 'Tomcat packages' do ...@@ -7,11 +10,13 @@ control 'Tomcat packages' do
packages = packages =
case platform[:family] case platform[:family]
when 'debian' when 'debian'
case platform[:release] case platform_finger
when /^10/ when 'debian-10'
%w[tomcat9 haveged] %w[tomcat9 haveged]
else when 'debian-9', 'ubuntu-18', 'ubuntu-16'
%w[tomcat8 haveged] %w[tomcat8 haveged]
when 'debian-8'
%w[tomcat7 haveged]
end end
when 'redhat', 'fedora', 'suse' when 'redhat', 'fedora', 'suse'
%w[tomcat] %w[tomcat]
......
# frozen_string_literal: true # frozen_string_literal: true
# Prepare platform "finger"
platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
control 'Tomcat services' do control 'Tomcat services' do
impact 0.5 impact 0.5
title 'should be installed, enabled and running' title 'should be installed, enabled and running'
...@@ -8,11 +11,13 @@ control 'Tomcat services' do ...@@ -8,11 +11,13 @@ control 'Tomcat services' do
services = services =
case platform[:family] case platform[:family]
when 'debian' when 'debian'
case platform[:release] case platform_finger
when /^10/ when 'debian-10'
%w[tomcat9 haveged] %w[tomcat9 haveged]
else when 'debian-9', 'ubuntu-18', 'ubuntu-16'
%w[tomcat8 haveged] %w[tomcat8 haveged]
when 'debian-8'
%w[tomcat7 haveged]
end end
when 'redhat', 'fedora', 'suse' when 'redhat', 'fedora', 'suse'
%w[tomcat] %w[tomcat]
......
# frozen_string_literal: true # frozen_string_literal: true
# Prepare platform "finger"
platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
control 'Tomcat `map.jinja` YAML dump' do control 'Tomcat `map.jinja` YAML dump' do
title 'should contain the lines' title 'should contain the lines'
...@@ -7,8 +10,8 @@ control 'Tomcat `map.jinja` YAML dump' do ...@@ -7,8 +10,8 @@ control 'Tomcat `map.jinja` YAML dump' do
yaml_dump += yaml_dump +=
case platform[:family] case platform[:family]
when 'debian' when 'debian'
case platform[:release] case platform_finger
when /^10/ when 'debian-10'
conf_dir = '/etc/tomcat9' conf_dir = '/etc/tomcat9'
group = 'tomcat' group = 'tomcat'
main_config = '/etc/default/tomcat9' main_config = '/etc/default/tomcat9'
...@@ -21,7 +24,7 @@ control 'Tomcat `map.jinja` YAML dump' do ...@@ -21,7 +24,7 @@ control 'Tomcat `map.jinja` YAML dump' do
catalina_home = '/usr/share/tomcat9' catalina_home = '/usr/share/tomcat9'
catalina_pid = '/var/run/tomcat9.pid' catalina_pid = '/var/run/tomcat9.pid'
catalina_tmpdir = '/var/cache/tomcat9/temp' catalina_tmpdir = '/var/cache/tomcat9/temp'
else when 'debian-9', 'ubuntu-18', 'ubuntu-16'
conf_dir = '/etc/tomcat8' conf_dir = '/etc/tomcat8'
group = 'tomcat8' group = 'tomcat8'
main_config = '/etc/default/tomcat8' main_config = '/etc/default/tomcat8'
...@@ -34,6 +37,19 @@ control 'Tomcat `map.jinja` YAML dump' do ...@@ -34,6 +37,19 @@ control 'Tomcat `map.jinja` YAML dump' do
catalina_home = '/usr/share/tomcat8' catalina_home = '/usr/share/tomcat8'
catalina_pid = '/var/run/tomcat8.pid' catalina_pid = '/var/run/tomcat8.pid'
catalina_tmpdir = '/var/cache/tomcat8/temp' catalina_tmpdir = '/var/cache/tomcat8/temp'
when 'debian-8'
conf_dir = '/etc/tomcat7'
group = 'tomcat7'
main_config = '/etc/default/tomcat7'
manager_pkg = 'tomcat7-admin'
pkg = 'tomcat7'
service = 'tomcat7'
user = 'tomcat7'
ver = 7
catalina_base = '/var/lib/tomcat7'
catalina_home = '/usr/share/tomcat7'
catalina_pid = '/var/run/tomcat7.pid'
catalina_tmpdir = '/var/cache/tomcat7/temp'
end end
<<~YAML_DUMP.chomp <<~YAML_DUMP.chomp
arch: amd64 arch: amd64
...@@ -209,6 +225,12 @@ control 'Tomcat `map.jinja` YAML dump' do ...@@ -209,6 +225,12 @@ control 'Tomcat `map.jinja` YAML dump' do
with_haveged: true with_haveged: true
YAML_DUMP YAML_DUMP
when 'redhat', 'fedora' when 'redhat', 'fedora'
case platform[:family]
when 'redhat'
ver = 7
when 'fedora'
ver = 9
end
<<~YAML_DUMP.chomp <<~YAML_DUMP.chomp
arch: amd64 arch: amd64
authbind: 'no' authbind: 'no'
...@@ -379,7 +401,7 @@ control 'Tomcat `map.jinja` YAML dump' do ...@@ -379,7 +401,7 @@ control 'Tomcat `map.jinja` YAML dump' do
&quot;%{User-Agent}i&quot; %D' &quot;%{User-Agent}i&quot; %D'
- className: org.apache.catalina.authenticator.SingleSignOn - className: org.apache.catalina.authenticator.SingleSignOn
user: tomcat user: tomcat
ver: 7 ver: #{ver}
with_haveged: false with_haveged: false
YAML_DUMP YAML_DUMP
when 'suse' when 'suse'
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: ft=yaml # vim: ft=yaml
--- ---
name: tomcat_install name: default
title: tomcat formula title: tomcat formula
maintainer: SaltStack Formulas maintainer: SaltStack Formulas
license: Apache-2.0 license: Apache-2.0
......
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: tomcat_extend
title: tomcat formula
maintainer: SaltStack Formulas
license: Apache-2.0
summary: Verify that the extended tomcat configuration takes place correctly
supports:
- platform-name: debian
- platform-name: ubuntu
- platform-name: centos
- platform-name: fedora
- platform-name: opensuse
- platform-name: suse
- platform-name: freebsd
- platform-name: amazon
- platform-name: arch
# InSpec Profile: `tomcat_install`
This shows the implementation of the `tomcat_install` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
## Verify a profile
InSpec ships with built-in features to verify a profile structure.
```bash
$ inspec check tomcat_install
Summary
-------
Location: tomcat_install
Profile: profile
Controls: 4
Timestamp: 2019-06-24T23:09:01+00:00
Valid: true
Errors
------
Warnings
--------
```
## Execute a profile
To run all **supported** controls on a local machine use `inspec exec /path/to/profile`.
```bash
$ inspec exec tomcat_install
..
Finished in 0.0025 seconds (files took 0.12449 seconds to load)
8 examples, 0 failures
```
## Execute a specific control from a profile
To run one control from the profile use `inspec exec /path/to/profile --controls name`.
```bash
$ inspec exec tomcat_install --controls package
.
Finished in 0.0025 seconds (files took 0.12449 seconds to load)
1 examples, 0 failures
```
See an [example control here](https://github.com/inspec/inspec/blob/master/examples/profile/controls/example.rb).
# This file is managed by salt. Manual changes risk being overwritten.
# # Modify the values passed to the tomcat pillar instead.
# Service-specific configuration file for tomcat. This will be sourced by
# the SysV init script after the global configuration file
# /etc/tomcat/tomcat.conf, thus allowing values to be overridden in
# a per-service manner.
#
# NEVER change the init script itself. To change values for all services make
# your changes in /etc/tomcat/tomcat.conf
#
# To change values for a specific service make your edits here.
# To create a new service create a link from /etc/init.d/<your new service> to
# /etc/init.d/tomcat (do not copy the init script) and make a copy of the
# /etc/sysconfig/tomcat file to /etc/sysconfig/<your new service> and change
# the property values so the two services won't conflict. Register the new
# service in the system as usual (see chkconfig and similars).
#
# Where your java installation lives
JAVA_HOME=/usr/lib/jvm/jre
CATALINA_BASE="/usr/share/tomcat"
CATALINA_HOME="/usr/share/tomcat"
CATALINA_TMPDIR="/var/cache/tomcat/temp"
CATALINA_PID="/var/run/tomcat.pid"
# You can pass some parameters to java here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
#if CLASSPATH is defined in JAVA_OPTS it may no longer munge with the default CLASSPATH
#replace and customize if necessary
#CLASSPATH=/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
# Use JAVA_OPTS to set java.library.path for libtcnative.so
#JAVA_OPTS="-Djava.library.path=/usr/lib64"
# What user should run tomcat
TOMCAT_USER=tomcat
# What group should run tomcat
TOMCAT_GROUP=tomcat
# You can change your tomcat locale here
#LANG="en_US"
# Run tomcat under the Java Security Manager
SECURITY_MANAGER="false"
# Time to wait in seconds, before killing process
#SHUTDOWN_WAIT="30"
# Whether to annoy the user with "attempting to shut down" messages or not
#SHUTDOWN_VERBOSE="false"
# Connector port is 8080 for this tomcat instance
#CONNECTOR_PORT="8080"
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# This file is managed by salt. Manual changes risk being overwritten.
# # Modify the values passed to the tomcat pillar instead.
# Service-specific configuration file for tomcat. This will be sourced by
# the SysV init script after the global configuration file
# /etc/tomcat/tomcat.conf, thus allowing values to be overridden in
# a per-service manner.
#
# NEVER change the init script itself. To change values for all services make
# your changes in /etc/tomcat/tomcat.conf
#
# To change values for a specific service make your edits here.
# To create a new service create a link from /etc/init.d/<your new service> to
# /etc/init.d/tomcat (do not copy the init script) and make a copy of the
# /etc/sysconfig/tomcat file to /etc/sysconfig/<your new service> and change
# the property values so the two services won't conflict. Register the new
# service in the system as usual (see chkconfig and similars).
#
# Where your java installation lives
JAVA_HOME=/usr/lib/jvm/jre
CATALINA_BASE="/usr/share/tomcat"
CATALINA_HOME="/usr/share/tomcat"
CATALINA_TMPDIR="/var/cache/tomcat/temp"
CATALINA_PID="/var/run/tomcat.pid"
# You can pass some parameters to java here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
#if CLASSPATH is defined in JAVA_OPTS it may no longer munge with the default CLASSPATH
#replace and customize if necessary
#CLASSPATH=/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
# Use JAVA_OPTS to set java.library.path for libtcnative.so
#JAVA_OPTS="-Djava.library.path=/usr/lib64"
# What user should run tomcat
TOMCAT_USER=tomcat
# What group should run tomcat
TOMCAT_GROUP=tomcat
# You can change your tomcat locale here
#LANG="en_US"
# Run tomcat under the Java Security Manager
SECURITY_MANAGER="false"
# Time to wait in seconds, before killing process
#SHUTDOWN_WAIT="30"
# Whether to annoy the user with "attempting to shut down" messages or not
#SHUTDOWN_VERBOSE="false"
# Connector port is 8080 for this tomcat instance
#CONNECTOR_PORT="8080"
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# This file is managed by salt. Manual changes risk being overwritten.
# Modify the values in the tomcat pillar instead.
# Run Tomcat as this user ID. Not setting this or leaving it blank will use the
# default of tomcat8.
TOMCAT9_USER=tomcat
# Run Tomcat as this group ID. Not setting this or leaving it blank will use
# the default of tomcat8.
TOMCAT9_GROUP=tomcat
# The home directory of the Java development kit (JDK). You need at least
# JDK version 7. If JAVA_HOME is not set, some common directories for
# OpenJDK and the Oracle JDK are tried.
JAVA_HOME=/usr/lib/jvm/default-java
CATALINA_BASE="/var/lib/tomcat9"
CATALINA_HOME="/usr/share/tomcat9"
CATALINA_TMPDIR="/var/cache/tomcat9/temp"
CATALINA_PID="/var/run/tomcat9.pid"
# You may pass JVM startup parameters to Java here. If unset, the default
# options will be: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
#
# Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
# response time). If you use that option and you run Tomcat on a machine with
# exactly one CPU chip that contains one or two cores, you should also add
# the "-XX:+CMSIncrementalMode" option.
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
# To enable remote debugging uncomment the following line.
# You will then be able to use a java debugger on port 8000.
#JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
# Java compiler to use for translating JavaServer Pages (JSPs). You can use all
# compilers that are accepted by Ant's build.compiler property.
JSP_COMPILER=javac
# Use the Java security manager? (yes/no, default: no)
TOMCAT9_SECURITY=no
# Number of days to keep logfiles in /var/log/tomcat8. Default is 14 days.
#LOGFILE_DAYS=14
# Whether to compress logfiles older than today's
#LOGFILE_COMPRESS=1
# Location of the JVM temporary directory
# WARNING: This directory will be destroyed and recreated at every startup !
JVM_TMP=/tmp/tomcat
# If you run Tomcat on port numbers that are all higher than 1023, then you
# do not need authbind. It is used for binding Tomcat to lower port numbers.
# (yes/no, default: no)
AUTHBIND=no
# This file is managed by salt. Manual changes risk being overwritten.
# Modify the values in the tomcat pillar instead.
# Run Tomcat as this user ID. Not setting this or leaving it blank will use the
# default of tomcat8.
TOMCAT7_USER=tomcat7
# Run Tomcat as this group ID. Not setting this or leaving it blank will use
# the default of tomcat8.
TOMCAT7_GROUP=tomcat7
# The home directory of the Java development kit (JDK). You need at least
# JDK version 7. If JAVA_HOME is not set, some common directories for
# OpenJDK and the Oracle JDK are tried.
JAVA_HOME=/usr/lib/jvm/default-java
CATALINA_BASE="/var/lib/tomcat7"
CATALINA_HOME="/usr/share/tomcat7"
CATALINA_TMPDIR="/var/cache/tomcat7/temp"
CATALINA_PID="/var/run/tomcat7.pid"
# You may pass JVM startup parameters to Java here. If unset, the default
# options will be: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
#
# Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
# response time). If you use that option and you run Tomcat on a machine with
# exactly one CPU chip that contains one or two cores, you should also add
# the "-XX:+CMSIncrementalMode" option.
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
# To enable remote debugging uncomment the following line.
# You will then be able to use a java debugger on port 8000.
#JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
# Java compiler to use for translating JavaServer Pages (JSPs). You can use all
# compilers that are accepted by Ant's build.compiler property.
JSP_COMPILER=javac
# Use the Java security manager? (yes/no, default: no)
TOMCAT7_SECURITY=no
# Number of days to keep logfiles in /var/log/tomcat8. Default is 14 days.
#LOGFILE_DAYS=14
# Whether to compress logfiles older than today's
#LOGFILE_COMPRESS=1
# Location of the JVM temporary directory
# WARNING: This directory will be destroyed and recreated at every startup !
JVM_TMP=/tmp/tomcat
# If you run Tomcat on port numbers that are all higher than 1023, then you
# do not need authbind. It is used for binding Tomcat to lower port numbers.
# (yes/no, default: no)
AUTHBIND=no
# This file is managed by salt. Manual changes risk being overwritten.
# Modify the values in the tomcat pillar instead.
# Run Tomcat as this user ID. Not setting this or leaving it blank will use the
# default of tomcat8.
TOMCAT8_USER=tomcat8
# Run Tomcat as this group ID. Not setting this or leaving it blank will use
# the default of tomcat8.
TOMCAT8_GROUP=tomcat8
# The home directory of the Java development kit (JDK). You need at least
# JDK version 7. If JAVA_HOME is not set, some common directories for
# OpenJDK and the Oracle JDK are tried.
JAVA_HOME=/usr/lib/jvm/default-java
CATALINA_BASE="/var/lib/tomcat8"
CATALINA_HOME="/usr/share/tomcat8"
CATALINA_TMPDIR="/var/cache/tomcat8/temp"
CATALINA_PID="/var/run/tomcat8.pid"
# You may pass JVM startup parameters to Java here. If unset, the default
# options will be: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
#
# Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
# response time). If you use that option and you run Tomcat on a machine with
# exactly one CPU chip that contains one or two cores, you should also add
# the "-XX:+CMSIncrementalMode" option.
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
# To enable remote debugging uncomment the following line.
# You will then be able to use a java debugger on port 8000.
#JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
# Java compiler to use for translating JavaServer Pages (JSPs). You can use all
# compilers that are accepted by Ant's build.compiler property.
JSP_COMPILER=javac
# Use the Java security manager? (yes/no, default: no)
TOMCAT8_SECURITY=no
# Number of days to keep logfiles in /var/log/tomcat8. Default is 14 days.
#LOGFILE_DAYS=14
# Whether to compress logfiles older than today's
#LOGFILE_COMPRESS=1
# Location of the JVM temporary directory
# WARNING: This directory will be destroyed and recreated at every startup !
JVM_TMP=/tmp/tomcat
# If you run Tomcat on port numbers that are all higher than 1023, then you
# do not need authbind. It is used for binding Tomcat to lower port numbers.
# (yes/no, default: no)
AUTHBIND=no
# This file is managed by salt. Manual changes risk being overwritten.
# # Modify the values passed to the tomcat pillar instead.
# Service-specific configuration file for tomcat. This will be sourced by
# the SysV init script after the global configuration file
# /etc/tomcat/tomcat.conf, thus allowing values to be overridden in
# a per-service manner.
#
# NEVER change the init script itself. To change values for all services make
# your changes in /etc/tomcat/tomcat.conf
#
# To change values for a specific service make your edits here.
# To create a new service create a link from /etc/init.d/<your new service> to
# /etc/init.d/tomcat (do not copy the init script) and make a copy of the
# /etc/sysconfig/tomcat file to /etc/sysconfig/<your new service> and change
# the property values so the two services won't conflict. Register the new
# service in the system as usual (see chkconfig and similars).
#
# Where your java installation lives
JAVA_HOME=/usr/lib/jvm/jre
CATALINA_BASE="/usr/share/tomcat"
CATALINA_HOME="/usr/share/tomcat"
CATALINA_TMPDIR="/var/cache/tomcat/temp"
CATALINA_PID="/var/run/tomcat.pid"
# You can pass some parameters to java here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
#if CLASSPATH is defined in JAVA_OPTS it may no longer munge with the default CLASSPATH
#replace and customize if necessary
#CLASSPATH=/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
# Use JAVA_OPTS to set java.library.path for libtcnative.so
#JAVA_OPTS="-Djava.library.path=/usr/lib64"
# What user should run tomcat
TOMCAT_USER=tomcat
# What group should run tomcat
TOMCAT_GROUP=tomcat
# You can change your tomcat locale here
#LANG="en_US"
# Run tomcat under the Java Security Manager
SECURITY_MANAGER="false"
# Time to wait in seconds, before killing process
#SHUTDOWN_WAIT="30"
# Whether to annoy the user with "attempting to shut down" messages or not
#SHUTDOWN_VERBOSE="false"
# Connector port is 8080 for this tomcat instance
#CONNECTOR_PORT="8080"
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# This file is managed by salt. Manual changes risk being overwritten.
# # Modify the values passed to the tomcat pillar instead.
# Service-specific configuration file for tomcat. This will be sourced by
# the SysV init script after the global configuration file
# /etc/tomcat/tomcat.conf, thus allowing values to be overridden in
# a per-service manner.
#
# NEVER change the init script itself. To change values for all services make
# your changes in /etc/tomcat/tomcat.conf
#
# To change values for a specific service make your edits here.
# To create a new service create a link from /etc/init.d/<your new service> to
# /etc/init.d/tomcat (do not copy the init script) and make a copy of the
# /etc/sysconfig/tomcat file to /etc/sysconfig/<your new service> and change
# the property values so the two services won't conflict. Register the new
# service in the system as usual (see chkconfig and similars).
#
# Where your java installation lives
JAVA_HOME=/usr/lib/jvm/jre
CATALINA_BASE="/usr/share/tomcat"
CATALINA_HOME="/usr/share/tomcat"
CATALINA_TMPDIR="/var/cache/tomcat/temp"
CATALINA_PID="/var/run/tomcat.pid"
# You can pass some parameters to java here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
#if CLASSPATH is defined in JAVA_OPTS it may no longer munge with the default CLASSPATH
#replace and customize if necessary
#CLASSPATH=/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
# Use JAVA_OPTS to set java.library.path for libtcnative.so
#JAVA_OPTS="-Djava.library.path=/usr/lib64"
# What user should run tomcat
TOMCAT_USER=tomcat
# What group should run tomcat
TOMCAT_GROUP=tomcat
# You can change your tomcat locale here
#LANG="en_US"
# Run tomcat under the Java Security Manager
SECURITY_MANAGER="false"
# Time to wait in seconds, before killing process
#SHUTDOWN_WAIT="30"
# Whether to annoy the user with "attempting to shut down" messages or not
#SHUTDOWN_VERBOSE="false"
# Connector port is 8080 for this tomcat instance
#CONNECTOR_PORT="8080"
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# This file is managed by salt. Manual changes risk being overwritten.
# Modify the values in the tomcat pillar instead.
# Run Tomcat as this user ID. Not setting this or leaving it blank will use the
# default of tomcat8.
TOMCAT8_USER=tomcat8
# Run Tomcat as this group ID. Not setting this or leaving it blank will use
# the default of tomcat8.
TOMCAT8_GROUP=tomcat8
# The home directory of the Java development kit (JDK). You need at least
# JDK version 7. If JAVA_HOME is not set, some common directories for
# OpenJDK and the Oracle JDK are tried.
JAVA_HOME=/usr/lib/jvm/default-java
CATALINA_BASE="/var/lib/tomcat8"
CATALINA_HOME="/usr/share/tomcat8"
CATALINA_TMPDIR="/var/cache/tomcat8/temp"
CATALINA_PID="/var/run/tomcat8.pid"
# You may pass JVM startup parameters to Java here. If unset, the default
# options will be: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC
#
# Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
# response time). If you use that option and you run Tomcat on a machine with
# exactly one CPU chip that contains one or two cores, you should also add
# the "-XX:+CMSIncrementalMode" option.
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properties -Dlogback.configurationFile=/tmp/logback.xml"
# To enable remote debugging uncomment the following line.
# You will then be able to use a java debugger on port 8000.
#JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
# Java compiler to use for translating JavaServer Pages (JSPs). You can use all
# compilers that are accepted by Ant's build.compiler property.
JSP_COMPILER=javac
# Use the Java security manager? (yes/no, default: no)
TOMCAT8_SECURITY=no
# Number of days to keep logfiles in /var/log/tomcat8. Default is 14 days.
#LOGFILE_DAYS=14
# Whether to compress logfiles older than today's
#LOGFILE_COMPRESS=1
# Location of the JVM temporary directory
# WARNING: This directory will be destroyed and recreated at every startup !
JVM_TMP=/tmp/tomcat
# If you run Tomcat on port numbers that are all higher than 1023, then you
# do not need authbind. It is used for binding Tomcat to lower port numbers.
# (yes/no, default: no)
AUTHBIND=no
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment