Module - ceph_mkspec¶
This module provides for the following ansible plugin:
ceph_mkspec
Module Documentation¶
Build a cephadm compatible spec, rendering the daemon specified
Options¶
- cluster
- The ceph cluster name. 
- service_type
- The Ceph daemon that is going to be applied 
- service_id
- The ID associated to the Ceph daemon 
- service_name
- The name of the Ceph Daemon 
- hosts
- The host list where the daemon is going to be applied 
- host_pattern
- The host pattern where the daemon is going to be applied 
- networks
- The list of networks on the host where the daemon is bound. 
- labels
- The list of labels used to apply the daemon on the Ceph custer nodes. 
- spec
- The spec definition of the daemon 
- extra
- The extra top level key definition for the daemon 
- render_path
- Where the spec will be rendered 
- apply
- If truem the spec rendered will be applied by the orchestrator 
Authors¶
Example Tasks¶
- name: create the Ceph MDS daemon spec
  ceph_spec:
    service_type: mds
    service_id: mds
    service_name: mds
    render_path: /home/ceph-admin/specs
    hosts:
    - host1
    - host2
    - hostN
    apply: true
- name: create the Ceph MDS daemon spec
  ceph_spec:
    service_type: mds
    service_id: mds
    service_name: mds
    host_pattern: '*mon*'
    apply: false
- name: create the Ceph MDS daemon spec
  ceph_spec:
    service_type: mds
    service_id: mds
    service_name: mds
    render_path: /home/ceph-admin/specs
    labels:
    - controller
    apply: true
- name: create the Ceph RGW daemon spec
  ceph_spec:
    service_type: rgw
    service_id: rgw.default
    service_name: rgw.default
    networks:
    - 1.2.3.0/24
    - 4.5.6.0/24
    render_path: /home/ceph-admin/specs
    labels:
    - controller
    apply: true
- name: create the Ceph RGW ingress daemon spec
  ceph_spec:
    service_type: ingress
    service_id: rgw.default
    service_name: ingress.rgw.default
    render_path: /home/ceph-admin/specs
    labels:
    - controller
    spec:
      backend_service: rgw.default
      frontend_port: 8080
      monitor_port: 8081
      virtual_ip: 1.2.3.4/24"
    apply: true
