Forge Home


Install atlassian confluence


994 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 4.0.2 (latest)
released Oct 6th 2022
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x
  • Puppet >= 6.1.0 < 8.0.0
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'veepshosting-confluence', '4.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add veepshosting-confluence
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install veepshosting-confluence --version 4.0.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



veepshosting/confluence — version 4.0.2 Oct 6th 2022


Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with Confluence
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module


This is a puppet module to install and handle upgrades of Atlassian Confluence. Confluence is team collaboration software.

Module Description

This module installs/upgrades Atlassian Confluence. The Confluence module also manages the Confluence configuration files with Puppet.


Confluence Prerequisites

  • Confluence require a Java Developers Kit (JDK) or Java Run-time Environment (JRE) platform to be installed on your server's operating system. Oracle JDK / JRE (formerly Sun JDK / JRE) versions 1.7 and 1.8 are currently supported by Atlassian.

:warning: There's a known issue with Java 1.8.0_25 and 1.8.0_31, and another known issue with 1.7.0_25 and 1.7.0_45. Atlassian don't recommend running Confluence on these versions.

  • Confluence requires a relational database to store its configuration data. Unfortunatly it is not possible to do the initial configuration (Database setup) of confluence with puppet (See issue #3 - No database support ). The configuration needs to be done via the web GUI.

What Confluence affects

If installing to an existing Confluence instance, it is your responsibility to backup your database. We also recommend that you backup your Confluence home directory and that you align your current Confluence version with the version you intend to use with puppet Confluence module.

You must have your database setup with the account user that Confluence will use. This can be done using the puppetlabs-postgresql and puppetlabs-mysql modules.

When using this module to upgrade Confluence, please make sure you have a database/Confluence home backup.

The following resources are potentially effected by this module:

  • confluence user
  • confluence init script
  • server.xml

Beginning with Confluence

This puppet module will automatically download the Confluence tar.gz from Atlassian and extracts it into /opt/confluence/atlassian-confluence-$version. The default Confluence home is /home/confluence.

  class { 'confluence':
    javahome => '/opt/java',


This module also allows for direct customization of the JVM, following atlassians recommendations

This is especially useful for setting properties such as http/https proxy settings. Support has also been added for reverse proxying confluence via apache or nginx.

A more complex example

  class { 'confluence':
    version        => '5.7.1',
    installdir     => '/opt/atlassian/atlassian-confluence',
    homedir        => '/opt/atlassian/application-data/confluence-home',
    javahome       => '/opt/java',
    java_opts      => ' -Dhttp.proxyPort=3128 -Dhttps.proxyPort=3128'
    tomcat_proxy   => {
      scheme       => 'https',
      proxyName    => '',
      proxyPort    => '443',

Hiera example

This example is used in production for 2000+ users in an traditional enterprise environment. Your mileage may vary.

confluence::user:           'confluence'
confluence::group:          'confluence'
confluence::shell:          '/bin/bash'
confluence::dbserver:       ''
confluence::version:        '5.7.1'
confluence::installdir:     '/opt/atlassian/atlassian-confluence'
confluence::homedir:        '/opt/atlassian/application-data/confluence-home'
confluence::javahome:       '/opt/java'
confluence::java_opts:      ' -Dhttp.proxyPort=8080 -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost\|\|172.*.*.*\|10.*.*.*\|* -XX:+UseLargePages'
confluence::manage_service: false
confluence::tomcat_port:    '8090'
confluence::jvm_xms:        '4G'
confluence::jvm_xmx:        '8G'
confluence::jvm_permgen:    '512m'
confluence::download_url:    ''
  - -Dconfluence.upgrade.recovery.file.enabled=false
  scheme:    'https'
  proxyName: ''
  proxyPort: '443'



Public Classes

  • confluence: Main class, manages the installation and configuration of Confluence.

Private Classes

  • confluence::install: Installs Confluence binaries
  • confluence::config: Modifies Confluence/tomcat configuration files
  • confluence::service: Manage the Confluence service
  • confluence::facts: Class to get the running version of confluence
  • confluence::params: Default params


Confluence parameters


Specify the java home directory. No assumptions are made re the location of java and therefor this option is required. Default: undef


The version of confluence to install. Default: '5.5.6'


The format of the file confluence will be installed from. Default: 'tar.gz'


The installation directory of the confluence binaries. Default: '/opt/confluence'


The home directory of confluence. Configuration files are stored here. Default: '/home/confluence'


The user that confluence should run as, as well as the ownership of confluence related files. Default: 'confluence'


The group that confluence files should be owned by. Default: 'confluence'


Specify a uid of the confluence user. Default: undef


Specify a gid of the confluence user. Default: undef


Specify the shell of the confluence user. Default: undef


Whether or not to manage the confluence user. Default: true


Specify context path, defaults to ''. If modified, Once Confluence has started, go to the administration area and click General Configuration. Append the new context path to your base URL.

JVM Java parameters


The initial memory allocation pool for a Java Virtual Machine. Default: '256m'


Maximum memory allocation pool for a Java Virtual Machine. Default: '1024m'


Increase max permgen size for a Java Virtual Machine. Default: '256m'


Additional java options can be specified here. Default: ''


Additional catalina options can be specified either as a simple string or array of strings. Default: ''

Tomcat parameters


Reverse https proxy configuration. See customization section for more detail. Default: {}


Port to listen on, defaults to '8090'


Defaults to '150'


Defaults to '100'


Any additional tomcat params for server.xml. Takes same format as tomcat_proxy. Default: {}

Crowd single sign on parameters


Enable crowd single sign on configuration as described in


Set crowd application name


Set crowd application password


Set crowd application login url, where to login into crowd (e.g.


Set crowd application services url, e.g.


Set crowd base url, e.g.


Some more for SSO, see atlassian documentation for details


Some more for SSO, see atlassian documentation for details


Some more for SSO, see atlassian documentation for details


Some more for SSO, see atlassian documentation for details

Miscellaneous parameters


Should we use augeas to manage server.xml or a template file. Defaults to 'augeas'. Operating systems that do not have a support version of Augeas such as Ubuntu 12.04 can use 'template'.


The URL used to download the JIRA installation file. Defaults to ''


The md5 checksum of the archive file. Only supported with deploy_module => archive. Defaults to 'undef'.


Specify a proxy server, with port number if needed. ie: Only supported with deploy_module => archive (the default). Defaults to 'undef'.


Proxy server type (none|http|https|ftp) Only supported with deploy_module => archive (the default). Defaults to 'undef'.


Should puppet manage this service? Default: true


Module to use for downloading and extracting archive file. Supports puppet-archive and puppet-staging. Defaults to 'archive'. Archive supports md5 hash checking and Staging supports S3 buckets.


If the Confluence service is managed outside of puppet the stop_confluence paramater can be used to shut down confluence for upgrades. Defaults to 'service confluence stop && sleep 15'


Enable external facts for confluence version. Defaults to present.


Specify the version of mysql_connector_version you want to use. Defaults to 5.1.47.


Specify where you want to install mysql connector . Defaults to /opt/MySQL-connector


Should the module deploy mysql_connector for mysql databases ? . Default to false


  • Puppet 5.5.8 or newer

The puppetlabs repositories can be found at: and

  • RedHat / CentOS 6/7
  • Ubuntu 16.04 / 18.04
  • Debian 9

Operating Systems without an Augueas version >= 1 such as Ubuntu 12.04 must use the paramater:

manage_server_xml => 'template',

We plan to support other Linux distributions and possibly Windows in the near future.