Skip to content

Commit

Permalink
Convert anchor in php::repo to contain
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Apr 10, 2015
1 parent ac1d776 commit 428167a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
#
class php::repo {

anchor { 'php::repo': }

$msg_no_repo = "No repo available for ${::osfamily}/${::operatingsystem}"

case $::osfamily {
'Debian': {
# no anchors here because apt does that already
# no contain here because apt does that already
case $::operatingsystem {
'Debian': {
include ::php::repo::debian
Expand All @@ -22,16 +20,10 @@
}
}
'Suse': {
include ::php::repo::suse

Class['::php::repo::suse'] ->
Anchor['php::repo']
contain ::php::repo::suse
}
'RedHat': {
include '::php::repo::redhat'

Class['::php::repo::redhat'] ->
Anchor['php::repo']
contain '::php::repo::redhat'
}
default: {
fail($msg_no_repo)
Expand Down

0 comments on commit 428167a

Please sign in to comment.