Skip to content

Add microceph #60

@sed-i

Description

@sed-i

For deployments like COS that need S3, it could be handy if concierge was able to install ceph and set up radosgw.
Here's a reference we're currently using:

microceph:
  # Ref: https://canonical-microceph.readthedocs-hosted.com/en/latest/tutorial/get-started/
  sudo snap install microceph
  sudo snap refresh --hold microceph
  sudo microceph cluster bootstrap
  sudo microceph disk add loop,4G,3
  sudo ceph status

  # Ref: https://canonical-microceph.readthedocs-hosted.com/en/latest/reference/commands/enable/#rgw
  # (Traefik will take ports 80, 443)
  sudo microceph enable rgw --port 8080 --ssl-port 8443
  sudo microceph.ceph -s
  sudo microceph.radosgw-admin user create --uid=user --display-name=User
  sudo microceph.radosgw-admin key create --uid=user --key-type=s3 --access-key=access-key --secret-key=secret-key

  sudo apt install -y s3cmd
  # Now you can create buckets with:
  # s3cmd --host=localhost:8080 --access_key=access-key --secret_key=secret-key --host-bucket= --no-ssl mb s3://loki

Metadata

Metadata

Assignees

No one assigned

    Labels

    26.04An item we hope to do in the 26.04 cyclerainy daySmall items done in ~10% of each week's time

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions