diff --git a/README.markdown b/README.markdown index 052df1ba0..13125dadf 100644 --- a/README.markdown +++ b/README.markdown @@ -159,18 +159,22 @@ PasswordAuthentication no ## Defining host keys for server You can define host keys your server will use +``` ssh::server::host_key {'ssh_host_rsa_key': private_key_content => '', public_key_content => '', } +``` Alternately, you could create the host key providing the files, instead of the content: +``` ssh::server::host_key {'ssh_host_rsa_key': private_key_source => 'puppet:///mymodule/ssh_host_rsa_key', public_key_source => 'puppet:///mymodule/ssh_host_rsa_key.pub', } +``` -Both of these definitions will create /etc/ssh/ssh_host_rsa_key and -/etc/ssh/ssh_host_rsa_key.pub and restart sshd daemon. +Both of these definitions will create ```/etc/ssh/ssh_host_rsa_key``` and +```/etc/ssh/ssh_host_rsa_key.pub``` and restart sshd daemon.