Skip to content

Commit

Permalink
fix issue with managing service.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrakowitzer committed Mar 10, 2014
1 parent 1f0a2ef commit c33b5dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion jira.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ jira::downloadURL: "http://www.atlassian.com/software/jira/downloads/binary/"

# Should puppet manage this service
# Boolean dictating if puppet should manage the service
jira::manage_service: true
jira::service_manage: true
jira::service_ensure: running

# Tomcat settings
jira::tomcatMaxThreads: '150'
Expand Down
3 changes: 2 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
$downloadURL = 'http://www.atlassian.com/software/jira/downloads/binary/',

# Manage service
$manage_service = true,
$service_manage => true,
$service_ensure => running,

# Tomcat Tunables
$tomcatMaxThreads = '150',
Expand Down
4 changes: 2 additions & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# limitations under the License.
#-----------------------------------------------------------------------------
class jira::service {
if $jira::manage_service {
if $jira::service_manage {
service { 'jira':
ensure => service_ensure,
ensure => $jira::service_ensure,
provider => base,
start => '/etc/init.d/jira start',
restart => '/etc/init.d/jira restart',
Expand Down

0 comments on commit c33b5dc

Please sign in to comment.