Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* Opt-in wrapping for selected code blocks only. */
.wrap-long-lines pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: break-word;
}
3 changes: 2 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
# Sphinx are currently 'default' and 'sphinxdoc'.
# html_theme_path = []
html_theme = 'sphinx_immaterial'
# html_static_path = ['static']
html_static_path = ['_static']
html_css_files = ['custom.css']

# Add any paths that contain "extra" files, such as .htaccess or
# robots.txt.
Expand Down
19 changes: 19 additions & 0 deletions doc/source/operations/database-backups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,32 @@ These should be set as follows:

s3_mariadb_backup_url: "<s3-endpoint>"
s3_mariadb_backup_bucket: "<s3-bucket-name>"
# Optional. Set when the target is a Ceph S3 endpoint.
s3_mariadb_backup_s3_is_ceph: true
# Optional. Set to false when server-side encryption is unsupported.
s3_mariadb_backup_encrypt: false

.. code-block:: yaml
:caption: ``$KAYOBE_CONFIG_PATH/environments/$KAYOBE_ENVIRONMENT/secrets.yml``

secrets_s3_mariadb_backup_access_key: "<s3-access-key>"
secrets_s3_mariadb_backup_secret_key: "<s3-secret-access-key"

.. note::

If backing up to a Ceph cluster that does not support :ceph-doc:`server-side encryption <radosgw/encryption/>`, set:

.. code-block:: yaml

s3_mariadb_backup_encrypt: false

The characteristic error message if encryption is enabled but unsupported is:

.. code-block:: text
:class: wrap-long-lines

msg: 'Unable to complete PUT operation.: Failed to upload /var/lib/docker/volumes/mariadb_backup/_data/mysqlbackup-29-10-2024-1730194327.qp.xbc.xbs.gz to mybucket/mysqlbackup-29-10-2024-1730194327.qp.xbc.xbs.gz: An error occurred (InvalidRequest) when calling the CreateMultipartUpload operation: Unknown'

You may also want to hook this to run after ``kayobe overcloud database
backup``:

Expand Down
2 changes: 2 additions & 0 deletions etc/kayobe/ansible/tools/upload-database-backup-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
object: "{{ item.path | basename }}"
src: "{{ item.path }}"
mode: put
ceph: "{{ s3_mariadb_backup_s3_is_ceph | default(omit) }}"
encrypt: "{{ s3_mariadb_backup_encrypt | default(omit) }}"
overwrite: different
validate_certs: False
become: True
Expand Down
Loading