blob: 2c93d7bdb3fa38b83e605942525f18713e3f38c0 (
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
31
32
33
34
35
36
37
38
39
40
41
|
# -*- 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)
"""Pacemaker configuration system (pcs) format"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"
from ..format import XML
class pcs(XML):
"""Pacemaker-based cluster stack configuration (as XML/CIB)
Also known as Pacemaker Configuration System (pcs).
"""
# XML
root = 'cib'
validator_specs = {
XML.ETREE: 'pacemaker-1.2.rng'
}
class pcs_prelude(pcs):
"""Private, "unfinished" pacemaker-based cluster stack configuration
This is a result of ccsflat2pcsprelude filter.
"""
class pcs_compact(pcs):
"""Private, "unfinished" pacemaker-based cluster stack configuration
This is a result of pcsprelude2pcscompact filter.
"""
class pcs_final(pcs):
"""Public, "finished" pacemaker-based cluster stack configuration
This is a result of pcs2pcsfinal filter.
"""
|