aboutsummaryrefslogtreecommitdiff
path: root/puppet.wiki
diff options
context:
space:
mode:
Diffstat (limited to 'puppet.wiki')
-rw-r--r--puppet.wiki48
1 files changed, 48 insertions, 0 deletions
diff --git a/puppet.wiki b/puppet.wiki
index 5170387..6f461d7 100644
--- a/puppet.wiki
+++ b/puppet.wiki
@@ -1,3 +1,5 @@
+https://puppet.com/docs/puppet/7/lang_resources.html
+
== Relationships and ordering ==
https://puppet.com/docs/puppet/7/lang_relationships.html
@@ -28,6 +30,9 @@ subscribe :: Applies a resource after the target resource. The subscribing resou
}
}}}
+== Conditionals ==
+https://puppet.com/docs/puppet/7/lang_conditional.html
+
=== Type Case ===
{{{puppet
$variable ? {
@@ -35,3 +40,46 @@ $variable ? {
String => 'Anothing thing'
}
}}}
+
+=== Regular Case ===
+{{{puppet
+case $variable {
+ 'A', 'B': {
+ }
+ /^(C|D)$/: {
+ }
+ default: {
+ }
+}
+
+
+== Server ==
+
+{{{class="client"
+$ puppet ssl clean
+}}}
+
+{{{class="server"
+$ puppetserver ca revoke --certname gandalf.adrift.space
+$ puppetserver ca clean --certname gandalf.adrift.space
+}}}
+
+--------------------------------------------------
+
+{{{class="client"
+$ rm -rf /etc/puppetlabs/puppet/ssl
+$ puppet ssl bootstrap --server=busting.adrift.space --waitforcert=10
+}}}
+
+{{{class="server"
+$ puppetserver ca list
+$ puppetserver ca sign --certname gandalf.adrift.space
+}}}
+
+
+
+==== Generate new key ====
+
+{{{
+puppetserver ca setup --subject-alt-names busting.adrift.space,adrift.space,puppet
+}}}