Recommit for updates in build 39
This commit is contained in:
@@ -70,6 +70,8 @@
|
||||
</li><li>
|
||||
<p><a href="#features">Features</a></p>
|
||||
</li><li>
|
||||
<p><a href="#adding-custom-configurations">Adding custom configurations</a></p>
|
||||
</li><li>
|
||||
<p><a href="#support">Support</a></p>
|
||||
</li><li>
|
||||
<p><a href="#parameter-inheritance">Parameter Inheritance</a></p>
|
||||
@@ -104,9 +106,27 @@
|
||||
<p>(optional) manage firewall</p>
|
||||
</li></ul>
|
||||
|
||||
<blockquote>
|
||||
<p>ToDo: Define for custom drop-in configurations</p>
|
||||
</blockquote>
|
||||
<h2 id="label-Adding+custom+configurations">Adding custom configurations</h2>
|
||||
|
||||
<p>Custom configuration files live in <code>/etc/ssh/sshd_config.d/</code>. IN order to create a custom config file, add a stanza like this in your control repo:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">confdroid_ssh::custom::custom_config { '30-my-custom-rule':
|
||||
config_name => '30-custom-rule',
|
||||
config_content => ['PasswordAuthentication no'],
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>This will create a file /etc/ssh/sshd_config.d/30-custom-rule.conf with this content:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby"><span class='comment'>###############################################################################
|
||||
</span><span class='comment'>##### DO NOT EDIT THIS FILE MANUALLY #
|
||||
</span><span class='comment'>##### This file is managed by Puppet. Any changes to this file will be #
|
||||
</span><span class='comment'>##### overwritten. Update the Puppet define input instead. #
|
||||
</span><span class='comment'>###############################################################################
|
||||
</span><span class='const'>PasswordAuthentication</span> <span class='id identifier rubyid_no'>no</span>
|
||||
</code></pre>
|
||||
|
||||
<p>Note that the value for config_content <strong>has to be an array</strong>, even if only one key pair is in there. This field is designed to hold multiple values, which create one line in the config file each.</p>
|
||||
|
||||
<h2 id="label-Support">Support</h2>
|
||||
<ul><li>
|
||||
|
||||
Reference in New Issue
Block a user