Merge pull request #140 from ghoneycutt/readme_example_formatting
Change formatting in README to be explicit about example types
This commit is contained in:
commit
ed47839cab
@ -428,14 +428,15 @@ Match directive is supported on SSH >= 5.x.
|
|||||||
- *Default*: undef
|
- *Default*: undef
|
||||||
|
|
||||||
- *Hiera example*:
|
- *Hiera example*:
|
||||||
<pre>
|
|
||||||
|
``` yaml
|
||||||
ssh::sshd_config_match:
|
ssh::sshd_config_match:
|
||||||
'User JohnDoe':
|
'User JohnDoe':
|
||||||
- 'AllowTcpForwarding yes'
|
- 'AllowTcpForwarding yes'
|
||||||
'Address 2.4.2.0':
|
'Address 2.4.2.0':
|
||||||
- 'X11Forwarding yes'
|
- 'X11Forwarding yes'
|
||||||
- 'PasswordAuthentication no'
|
- 'PasswordAuthentication no'
|
||||||
</pre>
|
```
|
||||||
|
|
||||||
keys
|
keys
|
||||||
----
|
----
|
||||||
@ -630,7 +631,7 @@ This works by passing the ssh::keys hash to the ssh_authorized_keys type with cr
|
|||||||
## Sample usage:
|
## Sample usage:
|
||||||
Push authorized key "root_for_userX" and remove key "root_for_userY" through Hiera.
|
Push authorized key "root_for_userX" and remove key "root_for_userY" through Hiera.
|
||||||
|
|
||||||
<pre>
|
``` yaml
|
||||||
ssh::keys:
|
ssh::keys:
|
||||||
root_for_userX:
|
root_for_userX:
|
||||||
ensure: present
|
ensure: present
|
||||||
@ -646,4 +647,4 @@ ssh::keys:
|
|||||||
root_for_userY:
|
root_for_userY:
|
||||||
ensure: absent
|
ensure: absent
|
||||||
user: root
|
user: root
|
||||||
</pre>
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user