1 heat_template_version: ocata
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
25 description: The Ceph monitors key. Can be created with ceph-authtool --gen-print-key.
31 ManilaCephFSDataPoolName:
34 ManilaCephFSMetadataPoolName:
35 default: manila_metadata
37 CinderBackupRbdPoolName:
51 It can be used to override settings for one of the predefined pools, or to create
52 additional ones. Example:
62 MonitoringSubscriptionCephMon:
63 default: 'overcloud-ceph-mon'
68 type: ./ceph-base.yaml
70 ServiceNetMap: {get_param: ServiceNetMap}
71 DefaultPasswords: {get_param: DefaultPasswords}
72 EndpointMap: {get_param: EndpointMap}
76 description: Role data for the Ceph Monitor service.
78 service_name: ceph_mon
79 monitoring_subscription: {get_param: MonitoringSubscriptionCephMon}
82 - get_attr: [CephBase, role_data, config_settings]
83 - ceph::profile::params::ms_bind_ipv6: {get_param: CephIPv6}
84 ceph::profile::params::mon_key: {get_param: CephMonKey}
85 ceph::profile::params::osd_pool_default_pg_num: 32
86 ceph::profile::params::osd_pool_default_pgp_num: 32
87 ceph::profile::params::osd_pool_default_size: 3
88 # repeat returns items in a list, so we need to map_merge twice
89 tripleo::profile::base::ceph::mon::ceph_pools:
95 - {get_param: CinderRbdPoolName}
96 - {get_param: ManilaCephFSDataPoolName}
97 - {get_param: ManilaCephFSMetadataPoolName}
98 - {get_param: CinderBackupRbdPoolName}
99 - {get_param: NovaRbdPoolName}
100 - {get_param: GlanceRbdPoolName}
101 - {get_param: GnocchiRbdPoolName}
104 pg_num: "%{hiera('ceph::profile::params::osd_pool_default_pg_num')}"
105 pgp_num: "%{hiera('ceph::profile::params::osd_pool_default_pgp_num')}"
106 size: "%{hiera('ceph::profile::params::osd_pool_default_size')}"
107 - {get_param: CephPools}
108 tripleo.ceph_mon.firewall_rules:
112 service_config_settings:
113 get_attr: [CephBase, role_data, service_config_settings]
115 include ::tripleo::profile::base::ceph::mon
117 # Note we perform these tasks in list order, but they are all step0 so
118 # we can perform a rolling upgrade of all mon nodes in step0, then a
119 # rolling upgrade of all osd nodes in step1
120 # FIXME(shardy) I suspect we can use heat or ansible facts here instead?
125 - name: Stop Ceph Mon
127 service: name=ceph-mon@{{mon_id.stdout}} pattern=ceph-mon state=stopped
128 - name: Update ceph packages
130 yum: name=ceph-mon,ceph state=latest
131 - name: Start ceph-mon service
133 service: name=ceph-mon@{{mon_id.stdout}} state=started
134 - name: ceph osd crush tunables default
136 shell: ceph osd crush tunables default