Skip to content

Commit

Permalink
Adding configuration option to enable or disable websudo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald van Rij committed Dec 9, 2015
1 parent 3eade3b commit e2f929f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,12 @@
require => Class['jira::install'],
notify => Class['jira::service'],
}

file { "${jira::homedir}/jira-config.properties":
content => template("jira/jira-config.properties.erb"),
mode => '0600',
require => [ Class['jira::install'],File[$jira::homedir] ],
notify => Class['jira::service'],
}

}
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
$gid = undef,
$shell = '/bin/true',

$no_websudo = false,

# Database Settings
$db = 'postgresql',
$dbuser = 'jiraadm',
Expand Down
1 change: 1 addition & 0 deletions templates/jira-config.properties.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jira.websudo.is.disabled = <%= scope.lookupvar('jira::no_websudo') %>

0 comments on commit e2f929f

Please sign in to comment.