File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 213213 Optional[Integer] $gid = undef ,
214214 Optional[Integer] $uid = undef ,
215215) {
216- if ($service_restart ) {
217- Class[' activemq::install' ] ~> Class[' activemq::service' ]
218- }
219-
220216 # Perform basic installation steps
221217 class { 'activemq::install' : }
218+ ~> class { ' activemq::service' : }
222219
223220 # Ensure that a valid cluster configuration is provided.
224221 if ($cluster and (empty($cluster_name ) or !($cluster_name =~ String))) {
Original file line number Diff line number Diff line change 707707 }
708708
709709 # Configure service for this instance.
710+ $_restart = $activemq::service_restart ? { true => undef , default => ' :' }
710711 service { $instance_service:
711712 ensure => $_service_ensure,
712713 enable => $_service_enable,
713714 subscribe => $_service_subscribe,
714715 require => $_service_require,
716+ restart => $_restart,
715717 }
716718 }
717719}
You can’t perform that action at this time.
0 commit comments