On adding the following manifest file, it fails for Key['admin'].
node 'ubuntu-vanilla' {
class { 'apt': update_timeout => '5000' }
class { 'ceph::apt::ceph' : release => 'dumpling' }
if !empty($::ceph_admin_key) {
@@ceph::key { 'admin':
secret => $::ceph_admin_key,
keyring_path => '/etc/ceph/keyring',
}
}
class { 'role_ceph_mon': id => 'ubuntu-vanilla' }
ceph::osd::device { '/dev/sdb': journalsize => '200' }
ceph::osd::device { '/dev/sdc': journalsize => '200'}
ceph::osd::device { '/dev/sdd': journalsize => '200'}
}
I got following message
message: "Could not retrieve catalog from remote server: Error 400 on SERVER: Another local or imported resource exists with the type and title Ceph::Key[admin] on node ubuntu-vanilla"
After this I made following changes, at-least it allowed adding OSDs.
diff -r ./osd/device.pp /home/dgautam/puppet-ceph/manifests/osd/device.pp
55d54
< #if $blkid != 'undefined' and defined( Ceph::Key['admin'] ){
59c58
< #require => Ceph::Key['admin'],
---
> require => Ceph::Key['admin'],
diff -r ./osd.pp /home/dgautam/puppet-ceph/manifests/osd.pp
30c30
< #Package['ceph'] -> Ceph::Key <<| title == 'admin' |>>
---
> Package['ceph'] -> Ceph::Key <<| title == 'admin' |>>
[root@puppet manifests]$
Being new to puppet/ceph, I am not sure on the correct solution.
On adding the following manifest file, it fails for Key['admin'].
I got following message
message: "Could not retrieve catalog from remote server: Error 400 on SERVER: Another local or imported resource exists with the type and title Ceph::Key[admin] on node ubuntu-vanilla"
After this I made following changes, at-least it allowed adding OSDs.
Being new to puppet/ceph, I am not sure on the correct solution.