Skip to content

Commit

Permalink
Merge pull request #310 from wyardley/remove_anchors
Browse files Browse the repository at this point in the history
Replace anchors with 'contain'
  • Loading branch information
wyardley authored Sep 7, 2017
2 parents 8fc47fb + 288d386 commit 7ce2151
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@
fail("${module_name}: The manage_package_repo parameter was set to true but no repo_class was provided.")
}

include '::nodejs::install'
contain '::nodejs::install'

if $manage_package_repo {
include $repo_class
anchor { '::nodejs::begin': }
-> Class[$repo_class]

Class[$repo_class]
-> Class['::nodejs::install']
-> anchor { '::nodejs::end': }
}
}

0 comments on commit 7ce2151

Please sign in to comment.