guits.orchestration.cephadm_bootstrap (1.0.3) — module

Bootstrap a Ceph cluster via cephadm

| "added in version" 2.8 of guits.orchestration"

Authors: Dimitri Savineau <dsavinea@redhat.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install guits.orchestration:==1.0.3


Add to requirements.yml

  collections:
    - name: guits.orchestration
      version: 1.0.3

Description

Bootstrap a Ceph cluster via cephadm

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: bootstrap a cluster via cephadm (with default values)
  cephadm_bootstrap:
    mon_ip: 192.168.42.1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: bootstrap a cluster via cephadm (with custom values)
  cephadm_bootstrap:
    mon_ip: 192.168.42.1
    fsid: 3c9ba63a-c7df-4476-a1e7-317dfc711f82
    image: quay.ceph.io/ceph/daemon-base:latest-main-devel
    dashboard: false
    monitoring: false
    firewalld: false
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: bootstrap a cluster via cephadm with custom image via env var
  cephadm_bootstrap:
    mon_ip: 192.168.42.1
  environment:
    CEPHADM_IMAGE: quay.ceph.io/ceph/daemon-base:latest-main-devel

Inputs

    
fsid:
    description:
    - Ceph FSID.
    required: false

pull:
    default: true
    description:
    - Pull the Ceph container image.
    required: false

image:
    description:
    - Ceph container image.
    required: false

docker:
    description:
    - Use docker instead of podman.
    required: false

mon_ip:
    description:
    - Ceph monitor IP address.
    required: true

ssh_user:
    description:
    - SSH user used for cephadm ssh to the hosts.
    required: false

dashboard:
    default: true
    description:
    - Deploy the Ceph dashboard.
    required: false

firewalld:
    default: true
    description:
    - Manage firewall rules with firewalld.
    required: false

monitoring:
    default: true
    description:
    - Deploy the monitoring stack.
    required: false

ssh_config:
    description:
    - SSH config file path for cephadm ssh client.
    required: false

registry_url:
    description:
    - URL for custom registry.
    required: false

registry_json:
    description:
    - JSON file with custom registry login info (URL, username, password).
    required: false

dashboard_user:
    description:
    - Ceph dashboard user.
    required: false

allow_overwrite:
    default: false
    description:
    - "allow overwrite of existing \u2013output-* config/keyring/ssh files."
    required: false

cluster_network:
    description:
    - subnet to use for cluster replication, recovery and heartbeats.
    required: false

registry_password:
    description:
    - Password for custom registry.
    required: false

registry_username:
    description:
    - Username for custom registry.
    required: false

dashboard_password:
    description:
    - Ceph dashboard password.
    required: false

allow_fqdn_hostname:
    default: false
    description:
    - Allow hostname that is fully-qualified.
    required: false