jira
: Downloads and installs Atlassian JIRA
jira::config
jira::install
jira::mysql_connector
jira::service
jira::sso
jira::sort_hash
: Sort a hash
Jira::Jvm_types
: Java Virtual Machine (JVM) typesJira::Tomcat_attributes
: A hash of string keys to arbitrary values that will be rendered as XML attributesJira::Tomcat_connectors
: A set of attribute hashes keyed by connector port number
Copyright (c) 2012 Bryce Johnson
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
The following parameters are available in the jira
class:
- Reference
- Table of Contents
- Classes
- limitations under the License.
- Parameters
version
product
installdir
manage_installdir
homedir
manage_homedir
manage_user
user
group
installdir_owner
installdir_group
installdir_mode
homedir_mode
uid
gid
shell
enable_secure_admin_sessions
jira_config_properties
datacenter
shared_homedir
ehcache_listener_host
ehcache_listener_port
ehcache_object_port
use_jndi_ds
jndi_ds_name
db
dbname
dbuser
dbpassword
dbserver
dbport
dbtype
dbdriver
dbschema
dburl
connection_settings
oracle_use_sid
mysql_connector_manage
mysql_connector_version
mysql_connector_product
mysql_connector_install
mysql_connector_format
mysql_connector_url
pool_min_size
pool_max_size
pool_max_wait
validation_query
validation_query_timeout
min_evictable_idle_time
time_between_eviction_runs
pool_max_idle
pool_remove_abandoned
pool_remove_abandoned_timeout
pool_test_while_idle
pool_test_on_borrow
java_package
javahome
jvm_type
jvm_xms
jvm_xmx
java_opts
jvm_gc_args
jvm_code_cache_args
jvm_extra_args
jvm_nofiles_limit
download_url
checksum
disable_notifications
proxy_server
proxy_type
service_manage
service_ensure
service_enable
service_notify
service_subscribe
stop_jira
script_check_java_manage
script_check_java_template
tomcat_address
tomcat_port
tomcat_shutdown_port
tomcat_max_http_header_size
tomcat_min_spare_threads
tomcat_connection_timeout
tomcat_enable_lookups
tomcat_native_ssl
tomcat_https_port
tomcat_redirect_https_port
tomcat_protocol
tomcat_protocol_ssl
tomcat_use_body_encoding_for_uri
tomcat_disable_upload_timeout
tomcat_key_alias
tomcat_keystore_file
tomcat_keystore_pass
tomcat_keystore_type
tomcat_accesslog_format
tomcat_accesslog_enable_xforwarded_for
tomcat_max_threads
tomcat_accept_count
proxy
ajp
tomcat_default_connector
tomcat_additional_connectors
contextpath
resources
enable_sso
application_name
application_password
application_login_url
crowd_server_url
crowd_base_url
session_isauthenticated
session_tokenkey
session_validationinterval
session_lastvalidation
plugins
jvm_permgen
poolsize
enable_connection_pooling
- Parameters
- Data types
Data type: String
The JIRA version to install or upgrade to. Changing this will trigger a restart
Default value: '8.13.5'
Data type: String[1]
Atlassian product to install.
Default value: 'jira'
Data type: Stdlib::Absolutepath
The directory in which JIRA software packages will be extracted
Default value: '/opt/jira'
Data type: Boolean
Create the installdir. Installdir will not be created when set to false.
Default value: true
Data type: Stdlib::Absolutepath
The directory for JIRA's runtime data that persists between versions.
Default value: '/home/jira'
Data type: Boolean
Create the homedir. Homedir will not be created when set to false.
Default value: true
Data type: Boolean
Whether to manage the service user
Default value: true
Data type: String
User that the service will run as
Default value: 'jira'
Data type: String
Group that the service will run as
Default value: 'jira'
Data type: String[1]
The owner of the installation directory.
Default value: 'root'
Data type: String[1]
The group of the installation directory.
Default value: 'root'
Data type: Stdlib::Filemode
The permissions of the installation directory. Note that the JIRA service user must have at least execute permission on the directory.
Default value: '0755'
Data type: Optional[Stdlib::Filemode]
The permissions of the service user's home directory, where JIRA's data will reside
Default value: undef
Data type: Optional[Integer[0]]
The desired UID for the service user
Default value: undef
Data type: Optional[Integer[0]]
The desired GID for the service group
Default value: undef
Data type: Stdlib::Absolutepath
The shell of the service user
Default value: '/bin/true'
Data type: Boolean
Enables secure administrator sessions
Default value: true
Data type: Hash
Allows configuring advanced JIRA properties as a key-value hash. See https://confluence.atlassian.com/adminjiraserver0813/advanced-jira-application-configuration-1027138631.html
Default value: {}
Data type: Boolean
Set to true to enable clustered mode (JIRA Datacenter)
Default value: false
Data type: Optional[Stdlib::AbsolutePath]
Shared data directory for all JIRA instances in a cluster
Default value: undef
Data type: Optional[Stdlib::Host]
EHCache configuration for clustered mode
Default value: undef
Data type: Optional[Stdlib::Port]
EHCache configuration for clustered mode
Default value: undef
Data type: Optional[Stdlib::Port]
EHCache configuration for clustered mode
Default value: undef
Data type: Boolean
If true, the database will be configured as JNDI datasource in server.xml and then referenced in dbconfig.xml
Default value: false
Data type: String[1]
Configures the JNDI datasource name
Default value: 'JiraDS'
Data type: Enum['postgresql','mysql','sqlserver','oracle','h2']
The kind of database to use.
Default value: 'postgresql'
Data type: String
The database name to connect to
Default value: 'jira'
Data type: String
Database username
Default value: 'jiraadm'
Data type: String
Database password
Default value: 'mypassword'
Data type: String
Database host DNS name or IP address
Default value: 'localhost'
Data type: Optional[Variant[Integer,String]]
The database port. Default depends on $db
Default value: undef
Data type: Optional[String]
The database type. Default depends on $db
Default value: undef
Data type: Optional[String]
The database driver class. Default depends on $db
Default value: undef
Data type: Optional[String[1]]
The database schema, if applicable. Defaults to 'public' with PostgreSQL
Default value: undef
Data type: Optional[String]
Set this if you wish to use a custom database URL
Default value: undef
Data type: Optional[String]
Configures additional JDBC connection properties in dbconfig.xml For PostgreSQL, a default value of "tcpKeepAlive=true;socketTimeout=240" will be used See https://confluence.atlassian.com/jirakb/connection-problems-to-postgresql-result-in-stuck-threads-in-jira-1047534091.html
Default value: undef
Data type: Boolean
Affects the database URL format for Oracle depending on whether you connect via a SID or a service name
Default value: true
Data type: Boolean
If true, the module will download and install the MySQL connector for JDBC
Default value: true
Data type: String
Version of the connector to install
Default value: '8.0.23'
Data type: String
Determines the filename for the download
Default value: 'mysql-connector-java'
Data type: Stdlib::Absolutepath
Directory in which the connector will be installed
Default value: '/opt/MySQL-connector'
Data type: String
Format of the downloaded package
Default value: 'tar.gz'
Data type: Stdlib::HTTPUrl
Source for the connector
Default value: 'https://dev.mysql.com/get/Downloads/Connector-J'
Data type: Optional[Integer[0]]
Configures pool-min-size in dbconfig.xml
Default value: undef
Data type: Optional[Integer[0]]
Configures pool-max-size in dbconfig.xml
Default value: undef
Data type: Optional[Integer[-1]]
Configures pool-max-wait in dbconfig.xml
Default value: undef
Data type: Optional[String]
Configures validation_query in dbconfig.xml
Default value: undef
Data type: Optional[Integer[0]]
Configures validation_query_timeout in dbconfig.xml
Default value: undef
Data type: Optional[Integer[0]]
Configures min-evictable-idle-time-millis in dbconfig.xml
Default value: undef
Data type: Optional[Integer[0]]
Configures time-between-eviction-runs-millis in dbconfig.xml
Default value: undef
Data type: Optional[Integer[0]]
Configures pool-max-idle in dbconfig.xml
Default value: undef
Data type: Optional[Boolean]
Configures pool-remove-abandoned in dbconfig.xml
Default value: undef
Data type: Optional[Integer[0]]
Configures pool-remove-abandoned-timeout in dbconfig.xml
Default value: undef
Data type: Optional[Boolean]
Configures pool-test-while-idle in dbconfig.xml
Default value: undef
Data type: Optional[Boolean]
Configures pool-test-on-borrow in dbconfig.xml
Default value: undef
Data type: Optional[String[1]]
If defined, the module will install this package before installing JIRA.
Default value: undef
Data type: Optional[Stdlib::AbsolutePath]
The location of an installed JVM. Must be set even if you specify java_package
Default value: undef
Data type: Jira::Jvm_types
The type of JVM to use. Affects some defaults for the arguments below
Default value: 'openjdk-11'
Data type: String
Java -Xms parameter
Default value: '256m'
Data type: String
Java -Xmx parameter
Default value: '1024m'
Data type: Optional[String]
Configures JVM_SUPPORT_RECOMMENDED_ARGS in setenv.sh. This is the preferred option to override.
Default value: undef
Data type: Optional[String]
Configures JVM_GC_ARGS in setenv.sh
Default value: undef
Data type: Optional[String]
Configures JVM_CODE_CACHE_ARGS in setenv.sh
Default value: undef
Data type: Optional[String]
Configures JVM_EXTRA_ARGS in setenv.sh
Default value: undef
Data type: Integer
Set the limit for open files
Default value: 16384
Data type: Stdlib::HTTPUrl
Base URL for downloading Atlassian software
Default value: 'https://product-downloads.atlassian.com/software/jira/downloads'
Data type: Optional[String]
Optional checksum to verify the downloaded package
Default value: undef
Data type: Boolean
Configures JIRA to disable e-mail handlers
Default value: false
Data type: Optional[String]
Configures the proxy server to use for downloads
Default value: undef
Data type: Optional[Enum['none','http','https','ftp']]
Configures the proxy type
Default value: undef
Data type: Boolean
Whether to manage the jira service
Default value: true
Data type: Stdlib::Ensure::Service
Service state to ensure
Default value: 'running'
Data type: Boolean
Whether to enable the service on boot
Default value: true
Data type: Any
Service notify parameter
Default value: undef
Data type: Any
Service subscribe parameter
Default value: undef
Data type: String
The command used to stop jira prior to upgrades. You can override this if you use an external too l to manage the jira service. Must return either 0 or 5 for success
Default value: 'systemctl stop jira.service && sleep 15'
Data type: Boolean
undocumented
Default value: false
Data type: String
undocumented
Default value: 'jira/check-java.sh.erb'
Data type: Optional[String]
Tomcat bind address
Default value: undef
Data type: Stdlib::Port
Tomcat bind port
Default value: 8080
Data type: Stdlib::Port
Tomcat shutdown command port
Default value: 8005
Data type: Integer
Tomcat connector setting
Default value: 8192
Data type: Integer[0]
Tomcat connector setting
Default value: 25
Data type: Integer[0]
Tomcat connector setting
Default value: 20000
Data type: Boolean
Tomcat connector setting
Default value: false
Data type: Boolean
Enables a native SSL connector
Default value: false
Data type: Stdlib::Port
Tomcat port for the native SSL connector
Default value: 8443
Data type: Optional[Stdlib::Port]
Specify which port to redirect internally when using port redirection from 80 to 8080 and from 443 to 8443 or with proxy server in front, defaults to $tomcat_https_port. To be used with tomcat_native_ssl.
Default value: undef
Data type: String
Tomcat connector setting
Default value: 'HTTP/1.1'
Data type: Optional[String]
Tomcat connector setting
Default value: undef
Data type: Boolean
Tomcat connector setting
Default value: true
Data type: Boolean
Tomcat connector setting
Default value: true
Data type: String
Key alias in the keystore for the SSL connector
Default value: 'jira'
Data type: Stdlib::Absolutepath
Path to a Java keystore for the SSL connector
Default value: '/home/jira/jira.jks'
Data type: String
Keystore passphrase
Default value: 'changeit'
Data type: Enum['JKS', 'JCEKS', 'PKCS12']
Keystore type
Default value: 'JKS'
Data type: String
Format string for Tomcat access log
Default value: '%a %{jira.request.id}r %{jira.request.username}r %t "%m %U%q %H" %s %b %D "%{Referer}i" "%{User-Agent}i" "%{jira.request.assession.id}r"'
Data type: Boolean
Configures tomcat to respect X-Forwarded-For and X-Forwarded-By headers
If a proxy operates before JIRA, the access logs will only contain the IP addresses of the proxy
instead of the address of the user. With X-Forwarded-For
the proxy can forward the users IP
address to the JIRA application server so that it can be logged correctly.
Default value: false
Data type: Integer
Tomcat connector setting
Default value: 150
Data type: Integer
Tomcat connector setting
Default value: 100
Data type: Hash
Hash of additional settings to configure on the connectors. The confusing naming is retained for backwards compatibility
Default value: {}
Data type: Hash
Properties for an AJP connector
Default value: {}
Data type: Boolean
If set to false, the default connector will be omitted
Default value: true
Data type: Jira::Tomcat_connectors
Well-formed, complex Hash where each key represents a port number and the key's
value is a hash whose key/value pairs represent the attributes and their values
that define the connector's behaviour. Default is {}
.
Use this parameter to specify arbitrary, additional connectors with arbitrary attributes. There are no defaults here, so you must take care to specify all attributes a connector requires to work in Jira. See below for examples.
This is useful if you need to access your Jira instance directly through an additional HTTP port, e.g. one that is not configured for reverse proxy use. Atlassian describes use cases for this in https://confluence.atlassian.com/kb/how-to-create-an-unproxied-application-link-719095740.html and https://confluence.atlassian.com/kb/how-to-bypass-a-reverse-proxy-or-ssl-in-application-links-719095724.html
Default value: {}
Data type: Optional[String[1]]
Tomcat context path for the web service
Default value: undef
Data type: Hash
undocumented
Default value: {}
Data type: Boolean
Enable single sign-on via Crowd
Default value: false
Data type: String
Crowd application name
Default value: 'crowd'
Data type: String
Crowd application password
Default value: '1234'
Data type: Variant[Stdlib::HTTPUrl, Stdlib::HTTPSUrl]
Crowd application login URL
Default value: 'https://crowd.example.com/console/'
Data type: Variant[Stdlib::HTTPUrl, Stdlib::HTTPSUrl]
Crowd server URL
Default value: 'https://crowd.example.com/services/'
Data type: Variant[Stdlib::HTTPUrl, Stdlib::HTTPSUrl]
Crowd base URL
Default value: 'https://crowd.example.com/'
Data type: String
undocumented SSO parameter
Default value: 'session.isauthenticated'
Data type: String
undocumented SSO parameter
Default value: 'session.tokenkey'
Data type: Integer
undocumented SSO parameter
Default value: 5
Data type: String
undocumented SSO parameter
Default value: 'session.lastvalidation'
Data type: Array[Hash]
an array of hashes defining custom plugins to install a single plugin configuration will has the following form installation_name: this name wil be used to install the plugin within jira source: url of plugin to be fetched username: the username for authentification, if necessary password: the password for authentification, if necessary checksum: the checksum of the plugin, to determine the need for an upgrade checksumtype: the type of checksum used (none|md5|sha1|sha2|sha256|sha384|sha512). (default: none)
Default value: []
Data type: Optional[String]
Deprecated. Exists to notify users that they're trying to configure a parameter that has no effect
Default value: undef
Data type: Optional[Integer[0]]
Deprecated alias for $pool_max_size
.
Default value: undef
Data type: Optional[Boolean]
Deprecated. Has no effect.
Default value: undef
Java Virtual Machine (JVM) types
Alias of Enum['openjdk-11', 'openjdk-17', 'oracle-jdk-1.8']
A hash of string keys to arbitrary values that will be rendered as XML attributes
Alias of Hash[String[1], Scalar]
A set of attribute hashes keyed by connector port number
Alias of Hash[Stdlib::Port::Unprivileged, Jira::Tomcat_attributes]