浏览代码

Update init.pp test with relationships

This shows the module user how relationships can be easily added
to the main nginx class without peeking inside the guts of the module.
Jeff McCune 13 年之前
父节点
当前提交
1a3d758d4b
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      tests/init.pp

+ 9 - 2
tests/init.pp

@@ -1,2 +1,9 @@
-include nginx
-
+# The notify before should always come BEFORE all resources
+# managed by the nginx class
+# and the notify last should always come AFTER all resources
+# managed by the nginx class.
+node default {
+  notify { 'before': }
+  -> class { 'nginx': }
+  -> notify { 'last': }
+}