ansible-role-proxmox icon indicating copy to clipboard operation
ansible-role-proxmox copied to clipboard

Add support for cephx authentication for Ceph storage backends

Open zenntrix opened this issue 5 years ago • 2 comments

Whilst it is possible to create a pve_storage that points to an ceph rbd:

pve_storages:
  - name: vm-storage
    type: rbd
    content:
    - images
    - rootdir
    pool: vm-storage
    username: admin
    monhost:
    - proxmox-test.corp.zenntrix.com:6789
    - test-box.corp.zenntrix.com:6789
pve_ceph_pools:
  - name: vm-storage
    pgs: 64
    application: rbd
    storage: true
    rule: hdd

It is inaccessible due to the keyring not being created. I have only tried this with cephx, i believe it wouldn't be a problem without it.

zenntrix avatar Dec 06 '19 16:12 zenntrix

Has anyone else identified this issue as well? Just to make sure that i am not missing anything else.

zenntrix avatar Dec 09 '19 12:12 zenntrix

There's no logic for creating the keyring, that's correct. You kind of have to do it yourself when configuring it manually, anyway. We can add support for specifying and installing a keyring, though.

https://pve.proxmox.com/pve-docs/chapter-pvesm.html#_authentication

lae avatar Dec 13 '19 21:12 lae