xebialabs-community / puppet-xldeploy

Puppet module for managing XL Deploy
5 stars 10 forks source link

ssh keys seems to not be working #45

Closed WianVos closed 9 years ago

WianVos commented 9 years ago

I have not had any luck with the install of ssh keys. During puppet agent run, I get the following: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type sshkeys::create_key at /etc/puppet/environments/production/modules/xldeploy/manifests/server/install_sshkey.pp:24 on node dep-01.wdtablesystems.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

I have got around it commenting out the following in the install_sshkey.pp

flow

Xldeploy::Resources::Defaultsetting['overthere.SshHost.privateKeyFile']

-> Sshkeys::Create_key[$os_user]

call a nice little parser function to generate a random passphrase

$keyfile_passphrase = random_passphrase()

sshkeys::create_key { $os_user:

home => $server_home_dir,

manage_home => false,

passphrase => $keyfile_passphrase,

notify => Xldeploy::Resources::Defaultsetting['overthere.SshHost.passphrase']

}

WianVos commented 9 years ago

fixed it .. pinned the jtopjan/puppet-sshkeys module to version 0.5 it works now