Skip to main content
  1. 2023/
  2. Posts from July/
  3. More fun with Ceph RADOSGW/

Ceph RadosGW Init Script in Proxmox

A slightly hacky solution #

/etc/ceph/ceph.client.radosgw.keyring put in /etc/pve and link to /etc/ceph so ceph user can read it.

systemd file

[Unit]
Description=Ceph rados gateway
PartOf=ceph-radosgw.target
After=network-online.target local-fs.target time-sync.target
Before=ceph-radosgw.target
Wants=network-online.target local-fs.target time-sync.target ceph-radosgw.target

[Service]
Environment=CLUSTER=ceph
EnvironmentFile=-/etc/default/ceph
#ExecStart=/usr/bin/radosgw -f  --setuser ceph --setgroup ceph --cluster ${CLUSTER} --name client.%i --debug 5
ExecStart=/usr/bin/radosgw -f  --setuser ceph --setgroup ceph --cluster ${CLUSTER} --name client.radosgw.%i --keyring=/etc/ceph/ceph.client.radosgw.keyring
LimitNOFILE=1048576
LimitNPROC=1048576
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=yes
PrivateTmp=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
Restart=on-failure
RestrictSUIDSGID=true
StartLimitBurst=5
StartLimitInterval=30s
TasksMax=infinity

[Install]
WantedBy=ceph-radosgw.target

systemctl enable ceph-radosgw@hostname