From f5b1bf5307e56ca0669e745b6d84ed1babc5c8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 13 Jan 2022 04:30:56 +0100 Subject: tor 13 jan 2022 04:30:56 CET --- puppet.wiki | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'puppet.wiki') 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 +}}} -- cgit v1.2.3