voxpupuli / puppet-rundeck

Module for managing the installatation and configuration of the rundeck orchestration tool
https://forge.puppet.com/puppet/rundeck
MIT License
39 stars 129 forks source link

Unable to manage contents of framework.ssh.keypath ('/var/lib/rundeck/.ssh/id_rsa') #259

Closed astrostl closed 6 years ago

astrostl commented 8 years ago
file { '/var/lib/rundeck/.ssh/id_rsa':
    owner  => 'rundeck',
    group  => 'rundeck',
    mode   => '0400',
    source => 'puppet:///secret/TpKeypair.pem',
}

What are you seeing

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: File[/var/lib/rundeck/.ssh/id_rsa] is already declared in file /etc/puppetlabs/code/environments/production/modules/rundeck/manifests/install.pp:102; cannot redeclare at /etc/puppetlabs/code/environments/production/modules/site_rundeck/manifests/init.pp:112 at /etc/puppetlabs/code/environments/production/modules/site_rundeck/manifests/init.pp:112:3 on node

What behaviour did you expect instead

Management of the file, without conflicts.

Any additional information you'd like to impart

When I saw there was a conflict here, I poked around the module, and didn't see any mechanism for actually inserting data as per https://github.com/voxpupuli/puppet-rundeck/blob/v3.1.0/manifests/install.pp#L102 . After confirming on IRC, I'm filing the issue. If the module is going to manage this file, I think it should provide a mechanism to supply it with contents.

wyardley commented 6 years ago

Closing via #271