aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Media.wiki1
-rw-r--r--puppet.wiki48
2 files changed, 49 insertions, 0 deletions
diff --git a/Media.wiki b/Media.wiki
index aca247e..ceb4b82 100644
--- a/Media.wiki
+++ b/Media.wiki
@@ -71,6 +71,7 @@ Teolog
- [ ] Yesterday
- [ ] The Death of Stalin
- [ ] Queens Gambit
+- [ ] Jojo Rabbit
== Podcasts ==
- https://corecursive.com/brian-kernighan-unix-bell-labs1/
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
+}}}