]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
Document 'options' param of ssh_authorized_key
authorRob Thomas <xrobau@gmail.com>
Mon, 8 Oct 2018 02:03:59 +0000 (12:03 +1000)
committerGitHub <noreply@github.com>
Mon, 8 Oct 2018 02:03:59 +0000 (12:03 +1000)
I ended up having to trawl through the source code to figure out how to do this, so
I'm sure that someone ELSE would like to save their time by having it documented!

REFERENCE.md

index b72e9eecff68ccfae01b4d9c9788a5a557dc80fb..6f8010690efdcd5b11d8af21b7a2888c753a834a 100644 (file)
@@ -92,7 +92,17 @@ Default value: absent
 ##### `options`
 
 Key options; see sshd(8) for possible values. Multiple values
-should be specified as an array.
+should be specified as an array. For example, you could use the
+following to install a SSH CA that allows someone with the
+'superuser' principal to log in as root
+
+    ssh_authorized_key { 'Company SSH CA':
+      ensure  => present,
+      user    => 'root',
+      type    => 'ssh-ed25519',
+      key     => 'AAAAC3NzaC[...]CeA5kG',
+      options => [ 'cert-authority', 'principals="superuser"' ],
+    }
 
 #### Parameters