aboutsummaryrefslogtreecommitdiff
path: root/puppet.wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-13 04:30:56 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-13 04:30:56 +0100
commitf5b1bf5307e56ca0669e745b6d84ed1babc5c8f0 (patch)
tree01a5436af22211410ab5b12af5d628e2c96d67e3 /puppet.wiki
parentsön 19 dec 2021 01:32:12 CET (diff)
downloadwiki-public-f5b1bf5307e56ca0669e745b6d84ed1babc5c8f0.tar.gz
wiki-public-f5b1bf5307e56ca0669e745b6d84ed1babc5c8f0.tar.xz
tor 13 jan 2022 04:30:56 CET
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
+}}}