summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Stankevich <stankevich@users.noreply.github.com>2014-07-07 02:18:37 -0400
committerSergey Stankevich <stankevich@users.noreply.github.com>2014-07-07 02:18:37 -0400
commitb617320042b93ca58c3d6501a5085e97add7628f (patch)
tree4933c44ce8801d0e075fa96a8783eb717cc907c0
parentecc4f46b6992d090250fc977bf1ec739e2a829f5 (diff)
parentd7099ae3c2e9ad9c63bec0dda7df22848585f29a (diff)
Merge pull request #90 from dreilly1982/master
Changed order pattern in init.pp to support the Anchor pattern to contain dependencies.
-rw-r--r--manifests/init.pp9
1 files changed, 5 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 4797b11..65a7e66 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -53,9 +53,10 @@ class python (
fail("Module is not compatible with ${::operatingsystem}")
}
- Class['python::install'] -> Class['python::config']
-
- include python::install
- include python::config
+ # Anchor pattern to contain dependencies
+ anchor { 'python::begin': } ->
+ class { 'python::install': } ->
+ class { 'python::config': } ->
+ anchor { 'python::end': }
}