summaryrefslogtreecommitdiffstats
path: root/formats/ccs.py
blob: 452a7ca1c59b1141d09667e7623d0c889bb96151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- coding: UTF-8 -*-
# Copyright 2014 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Cluster configuration system (ccs) format"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"

from ..format import XML


class ccs(XML):
    """CMAN-based cluster stack configuration (cluster.conf)

    Sometimes called Cluster Configuration System (ccs).
    """
    # XML
    root = 'cluster'
    validator_specs = {
        XML.ETREE: ''  # XXX no RNG schema handy yet
    }


class ccs_flat(ccs):
    """Private, artificially flattened CMAN-based cluster stack configuration

    This is a result of (one-off!) linearization of nested explicit ordering
    of resources as performed internally by RGManager, and in turn, also
    by the derived helper ccs_flatten (bundled) ... wrapped in ccs2ccsflat
    filter.
    """