Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to set the nodeid for datacenter #403

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
# Set to true to enable clustered mode (JIRA Datacenter)
# @param shared_homedir
# Shared data directory for all JIRA instances in a cluster
# @param node_id
# sets the unique nodeid for JIEA Datacenter. Defaults to fqdn
# @param ehcache_listener_host
# EHCache configuration for clustered mode
# @param ehcache_listener_port
Expand Down Expand Up @@ -305,6 +307,7 @@
Hash $jira_config_properties = {},
Boolean $datacenter = false,
Optional[Stdlib::AbsolutePath] $shared_homedir = undef,
String $node_id = $facts['networking']['fqdn'],
Optional[Stdlib::Host] $ehcache_listener_host = undef,
Optional[Stdlib::Port] $ehcache_listener_port = undef,
Optional[Stdlib::Port] $ehcache_object_port = undef,
Expand Down Expand Up @@ -517,7 +520,7 @@
true => { password => $plugin_data['password'] }
}
$_plugin_archive = {
$target => $_target_defaults + $_username + $_password
$target => $_target_defaults + $_username + $_password,
}
create_resources(archive, $_plugin_archive)
}
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster.properties.epp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This ID must be unique across the cluster
jira.node.id = <%= $facts['fqdn'] %>
jira.node.id = <%= $jira::node_id %>
# The location of the shared home directory for all JIRA nodes
jira.shared.home = <%= $jira::shared_homedir %>
<% if $jira::ehcache_listener_host { -%>
Expand Down