diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-09 09:10:43 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-09 09:10:43 +0000 |
commit | b8cbaaed22c85b1084ac47b32eee2c114b0b479a (patch) | |
tree | e4b4af3d19a10801768de96898fbebe1aec69996 /deployment/common/manifests/init.pp | |
parent | 36ca3dd2e3cdc770b29486508933a7e011709653 (diff) | |
download | puppet-b8cbaaed22c85b1084ac47b32eee2c114b0b479a.tar puppet-b8cbaaed22c85b1084ac47b32eee2c114b0b479a.tar.gz puppet-b8cbaaed22c85b1084ac47b32eee2c114b0b479a.tar.bz2 puppet-b8cbaaed22c85b1084ac47b32eee2c114b0b479a.tar.xz puppet-b8cbaaed22c85b1084ac47b32eee2c114b0b479a.zip |
fetch all ssh keys and dispatch them ( used for automatically fixing the build system if we reinstall one build node )
Diffstat (limited to 'deployment/common/manifests/init.pp')
-rw-r--r-- | deployment/common/manifests/init.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deployment/common/manifests/init.pp b/deployment/common/manifests/init.pp index cb122364..0a2bf7b1 100644 --- a/deployment/common/manifests/init.pp +++ b/deployment/common/manifests/init.pp @@ -8,6 +8,27 @@ class common { package { $package_list: } } + class export_ssh_keys { + @@sshkey { "$hostname": + type => rsa, + key => $sshrsakey + } + + @@sshkey { "$fqdn": + type => rsa, + key => $sshrsakey + } + + @@sshkey { "$ipaddress": + type => rsa, + key => $sshrsakey + } + } + + class import_ssh_keys { + Sshkey <<| |>> + } + class default_ssh_root_key { Ssh_authorized_key { user => "root" @@ -79,6 +100,8 @@ class common { include openssh::server include common::default_ssh_root_key include common::base_packages + include common::export_ssh_keys + include common::import_ssh_keys include ntp include common::urpmi_update include puppet::client |