diff options
author | Micah <micah@riseup.net> | 2015-11-09 15:05:48 +0000 |
---|---|---|
committer | Micah <micah@riseup.net> | 2015-11-09 15:05:48 +0000 |
commit | c2fd1a769e81284cc004f0192d38d5635b5c85e5 (patch) | |
tree | 0901bbc2648f488ed7ff0da0f5d40bbfeafc4437 /manifests/sshkey.pp | |
parent | b3e81589eec604768e08ed56ce5ca42a4b33db89 (diff) | |
parent | fe92ce01fabe2d1b6a966d119e24c07cd164b776 (diff) | |
download | puppet-sshd-c2fd1a769e81284cc004f0192d38d5635b5c85e5.tar.gz puppet-sshd-c2fd1a769e81284cc004f0192d38d5635b5c85e5.tar.bz2 |
Merge branch 'disable_stored_config' into 'master'
[feat] Optinally disable exported resources
If run masterless, we cannot export resources, so
we move them to an own class. Including it can be
disabled by passing "use_storedconfig" to the sshd
class.
See merge request !21
Diffstat (limited to 'manifests/sshkey.pp')
-rw-r--r-- | manifests/sshkey.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/sshkey.pp b/manifests/sshkey.pp new file mode 100644 index 0000000..df37a66 --- /dev/null +++ b/manifests/sshkey.pp @@ -0,0 +1,21 @@ +# deploys the +class sshd::sshkey { + + @@sshkey{$::fqdn: + ensure => present, + tag => 'fqdn', + type => 'ssh-rsa', + key => $::sshrsakey, + } + + # In case the node has uses a shared network address, + # we don't define a sshkey resource using an IP address + if $sshd::shared_ip == 'no' { + @@sshkey{$::sshd::sshkey_ipaddress: + ensure => present, + tag => 'ipaddress', + type => 'ssh-rsa', + key => $::sshrsakey, + } + } +} |