]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
Update desc field
authorRob Thomas <xrobau@gmail.com>
Sun, 14 Oct 2018 23:27:25 +0000 (20:27 -0300)
committerRob Thomas <xrobau@gmail.com>
Sun, 14 Oct 2018 23:27:25 +0000 (20:27 -0300)
lib/puppet/type/ssh_authorized_key.rb

index 5c4df53c3d75179e684e5425326b0d122215c932..4eff84012dc2aac1ac6ff305acde908977ae0192 100644 (file)
@@ -107,7 +107,17 @@ module Puppet
 
     newproperty(:options, array_matching: :all) do
       desc "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\"' ],
+             }"
 
       defaultto { :absent }