Nel file user_variables.yaml:
# === CONFIGURAZIONE CEPH ===
ceph_mons:
- 10.224.14.11:6789 # Sostituisci con i tuoi IP
- 10.224.14.12:6789
- 10.224.14.13:6789
# Genera UUID per i segreti
# Usa: uuidgen per generare questo uuid
cinder_ceph_client_uuid: "ad44c82d-e905-4d13-bfad-8fe47567a8e0"
# === GLANCE CONFIGURATION ===
glance_default_store: rbd
glance_stores:
- rbd
- http
glance_rbd_store_pool: images
glance_rbd_store_user: glance
glance_rbd_store_chunk_size: 8
glance_rbd_store_ceph_conf: /etc/ceph/ceph.conf
glance_show_image_direct_url: true
# === CINDER CONFIGURATION ===
cinder_backends:
rbd:
volume_driver: cinder.volume.drivers.rbd.RBDDriver
volume_backend_name: rbd
rbd_pool: volumes
rbd_ceph_conf: /etc/ceph/ceph.conf
rbd_flatten_volume_from_snapshot: false
rbd_max_clone_depth: 5
rbd_store_chunk_size: 4
rados_connect_timeout: -1
rbd_user: cinder
rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}"
report_discard_supported: true
image_upload_use_cinder_backend: true
image_upload_use_internal_tenant: true
# Backup configuration
cinder_backup_driver: cinder.backup.drivers.ceph.CephBackupDriver
cinder_backup_ceph_conf: /etc/ceph/ceph.conf
cinder_backup_ceph_user: cinder-backup
cinder_backup_ceph_pool: backups
cinder_backup_ceph_chunk_size: 134217728
cinder_backup_ceph_stripe_unit: 0
cinder_backup_ceph_stripe_count: 0
# === NOVA CONFIGURATION ===
nova_libvirt_images_rbd_pool: vms
nova_libvirt_rbd_user: cinder
nova_libvirt_rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}"
nova_libvirt_disk_cachemodes: "network=writeback"
nova_libvirt_hw_disk_discard: unmap
nova_resume_guests_state_on_host_boot: true
# === CEPH CLIENT CONFIGURATION ===
# Configurazione ottimizzata per Squid
ceph_conf_overrides:
global:
# Ottieni con il comando ceph fsid
fsid: "d3c3c04d-9308-11f0-9f0f-20040ff6d120"
mon_host: "10.0.0.10:6789,10.0.0.11:6789,10.0.0.12:6789"
auth_cluster_required: cephx
auth_service_required: cephx
auth_client_required: cephx
public_network: "10.224.14.0/24"
cluster_network: "10.224.16.0/24"
# Funzionalità RBD ottimizzate per Squid
rbd_default_features: 61 # layering,exclusive-lock,object-map,fast-diff,deep-flatten
client:
rbd_cache: true
rbd_cache_size: 268435456 # 256MB cache
rbd_cache_max_dirty: 134217728 # 128MB dirty cache
rbd_cache_writethrough_until_flush: true
rbd_concurrent_management_ops: 20
admin_socket: /var/run/ceph/guests/$cluster-$type.$id.$pid.$cctid.asok