Skip to content

Commit

Permalink
allow disabling startup service or running service
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed Oct 28, 2013
1 parent 833197a commit 7eb07a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
$version = $jenkins::params::version,
$lts = $jenkins::params::lts,
$repo = $jenkins::params::repo,
$service_enable = $jenkins::params::service_enable,
$service_ensure = $jenkins::params::service_ensure,
$config_hash = undef,
$plugin_hash = undef,
$configure_firewall = $jenkins::params::configure_firewall,
Expand Down
4 changes: 4 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
$version = 'installed'
$lts = false
$repo = true
$service_enable = true
$service_ensure = 'running'
$configure_firewall = true
$install_java = true
$swarm_version = '1.9'
}


4 changes: 2 additions & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#
class jenkins::service {
service { 'jenkins':
ensure => running,
enable => true,
ensure => $jenkins::service_ensure,
enable => $jenkins::service_enable,
hasstatus => true,
hasrestart => true,
}
Expand Down

0 comments on commit 7eb07a9

Please sign in to comment.