aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--puppet.wiki27
1 files changed, 27 insertions, 0 deletions
diff --git a/puppet.wiki b/puppet.wiki
index dc208ea..5170387 100644
--- a/puppet.wiki
+++ b/puppet.wiki
@@ -8,3 +8,30 @@ require :: Applies a resource after the target resource.
notify :: Applies a resource before the target resource. The target resource refreshes if the notifying resource changes.
subscribe :: Applies a resource after the target resource. The subscribing resource refreshes if the target resource changes.
+=== Multiple declaration in single resource block ===
+
+{{{puppet
+ ini_setting {
+ default:
+ ensure => $ensure,
+ path => $::pacman::conf_path,
+ section => $repo_name ,
+ ;
+ "Pacman repo [${repo_name}] server":
+ setting => 'Server',
+ value => $server ,
+ ;
+ "Pacman repo [${repo_name}] SigLevel":
+ setting => 'SigLevel',
+ value => $sig_level ,
+ ;
+ }
+}}}
+
+=== Type Case ===
+{{{puppet
+$variable ? {
+ Array => 'one thing',
+ String => 'Anothing thing'
+}
+}}}