Skip to content

Commit

Permalink
remove outdated 'all inherent from base' inheritance pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Dec 21, 2013
1 parent a81c8a4 commit 25f68d1
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions manifests/gmetad/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::gmetad::config inherits ganglia::gmetad {
class ganglia::gmetad::config {

file { $gmetad_service_config:
file { $::ganglia::params::gmetad_service_config:
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
content => template($gmetad_service_erb),
content => template($::ganglia::params::gmetad_service_erb),
notify => Class['ganglia::gmetad::service'],
}
}
4 changes: 2 additions & 2 deletions manifests/gmetad/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::gmetad::install inherits ganglia::gmetad {
class ganglia::gmetad::install {

package { $gmetad_package_name:
package { $::ganglia::params::gmetad_package_name:
ensure => present,
}
}
8 changes: 4 additions & 4 deletions manifests/gmetad/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::gmetad::service inherits ganglia::gmetad {
class ganglia::gmetad::service {

if ($gmetad_status_command) {
if ($::ganglia::params::gmetad_status_command) {
$hasstatus = false
} else {
$hasstatus = true
}

service { $gmetad_service_name:
service { $::ganglia::params::gmetad_service_name:
ensure => running,
hasstatus => $hasstatus,
hasrestart => true,
enable => true,
status => $gmetad_status_command,
status => $::ganglia::params::gmetad_status_command,
}
}
6 changes: 3 additions & 3 deletions manifests/gmond/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::gmond::config inherits ganglia::gmond {
class ganglia::gmond::config {

file { $gmond_service_config:
file { $::ganglia::params::gmond_service_config:
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
content => template($gmond_service_erb),
content => template($::ganglia::params::gmond_service_erb),
notify => Class['ganglia::gmond::service'],
}
}
4 changes: 2 additions & 2 deletions manifests/gmond/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::gmond::install inherits ganglia::gmond {
class ganglia::gmond::install {

package { $gmond_package_name:
package { $::ganglia::params::gmond_package_name:
ensure => present,
}
}
8 changes: 4 additions & 4 deletions manifests/gmond/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::gmond::service inherits ganglia::gmond{
class ganglia::gmond::service {

if ($gmond_status_command) {
if ($::ganglia::params::gmond_status_command) {
$hasstatus = false
} else {
$hasstatus = true
}

service { $gmond_service_name:
service { $::ganglia::params::gmond_service_name:
ensure => running,
hasstatus => $hasstatus,
hasrestart => true,
enable => true,
status => $gmond_status_command,
status => $::ganglia::params::gmond_status_command,
}
}
6 changes: 3 additions & 3 deletions manifests/web/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::web::config inherits ganglia::web {
class ganglia::web::config {

file { $web_php_config:
file { $::ganglia::params::web_php_config:
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
content => template($web_php_erb),
content => template($::ganglia::params::web_php_erb),
}
}
4 changes: 2 additions & 2 deletions manifests/web/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# Copyright (C) 2012-2013 Joshua Hoblitt
#

class ganglia::web::install inherits ganglia::web {
class ganglia::web::install {

package { $web_package_name:
package { $::ganglia::params::web_package_name:
ensure => present,
}
}

0 comments on commit 25f68d1

Please sign in to comment.