Code Monkey home page Code Monkey logo

pacemakercfg's Introduction

pacemakercfg

Perl script to manage pacemaker cluster configuration from a directory of XML files

This is useful for managing cluster configuration in small chunks of XML that can be templated, perhaps via a configuration management tool such as puppet. It has also continued to work robustly across many versions of pacemaker.

Requires XML::Twig module

Usage is thus:

./pacemakercfg [options...] xmldir
    
Creates and installs a new CIB from the configuration defined by .xml
files in the xmldir directory. Current configuration directives
(resources, constraints and nodes) are deleted and replaced with the
content from the .xml files.
    
Runs crm_verify before installing new CIB; will not install CIB if 
crm_verify reports any errors unless --no-verify option is given. This
is required if any resources have been deleted.
    
A backup of the CIB is created in the xmldir/backup directory.

Must be root to use.

Options:
  -h, --help        This message
  -n, --no-verify   Do not run crm_verify before installing new CIB;
                    required if you have deleted resources. Use with 
                    caution!
  -d, --dry-run     Dry run only; just runs crm_verify against merged XML
  -f, --file        Dump merged XML to file without updating CIB
  -b, --bump-epoch  Increment the admin_epoch attribute in the CIB 
                    (rarely needed)

pacemakercfg's People

Contributors

durist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.