This action sets a single-node microceph with S3 and self-signed HTTPS support for testing with 1G net storage.
- name: Setup microceph
uses: canonical/microceph-action@v0.2
with:
channel: 'latest/edge'
accesskey: 'accesskey'
secretkey: 'secretkey'
bucket: 'testbucket'
osdsize: '20G'
Once ran, microceph will generate a file with all the details, named microceph.source
.
It will contain the following:
S3_SERVER_URL=https://<IP>
S3_ACCESS_KEY=...
S3_SECRET_KEY=...
S3_BUCKET=...
S3_REGION=default
S3_CA_BUNDLE_PATH=<path>
Use the environment variables above for the next steps, for example:
$ s3cmd [--no-check-certificate] --host "${S3_SERVER_URL}" \
--host-bucket="${S3_SERVER_URL}/%(bucket)" \
--access_key="${S3_ACCESS_KEY}" \
--ca-cert="${S3_CA_BUNDLE_PATH}" \
--secret_key="${S3_SECRET_KEY}" ls