config/puppet-manifests/src/modules/platform/lib/facter/is_node_ceph_configured.rb
Ovidiu Poncea 4b004e1d49 CEPH support for 2 node configuration
In order to enable Openstack's helm charts on StarlingX we need
a distributed persistent storage for Kubernetes that leverages
our existing configurations.

Changes made:
- allow CEPH to be configured on a 2 node configuration
  with a single floating monitor.
- floating monitor is managed by SM.
- the CEPH monitor filesystem is DRBD replicated between
  the two controller nodes
- add ceph crushmap for two node setup; both controllers are
  in the same group and redundancy is created between the
  two nodes
- only replication 2 is supported

Change-Id: Ic97b9fafa752a40befe395be2cafd3096010cc5b
Co-Authored-By: Stefan Dinescu <stefan.dinescu@windriver.com>
Depends-On: I8f9ea4798070e08171ad73da39821bc20b7af231
Story: 2002844
Task: 26878
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2018-12-05 10:27:17 +02:00

8 lines
179 B
Ruby

# Returns true if Ceph has been configured on current node
Facter.add("is_node_ceph_configured") do
setcode do
File.exist?('/etc/platform/.node_ceph_configured')
end
end