cdist configuration management Latest manual: https://www.cdi.st/manual/latest/ Home page: https://www.cdi.st
Go to file
Darko Poljak d17f75a010 Support user defined processes
User defined processes are defined by new cdist beta command 'process'.

Processes can be defined in `process` subdirectory in `$HOME/.cdist` or
in custom directories specified through CDIST_PROCESS_PATH environment
variable.

`<path>/process` processes are defined in subdirectories, where a
directory must contain `__init__.py` file to be recognized as a process,
and it is then imported as a module.

Since scanning and registering processes happens before cdist arguments
are parsed, then standard cdist logging cannot be used in this stage.
This is why CDIST_PROCESS_DEBUG environemnt variable turns on debug
messages.

Dummy example (`~/.cdist/process/homeprocess/__init__.py`):

    #!/usr/bin/env python3
    # -*- coding: utf-8 -*-

    import logging
    import subprocess

    log = logging.getLogger(__name__)

    def register(parent_parser):
        parser = parent_parser.add_parser('cdist-help')
        parser.set_defaults(func=cdist_help)

    def cdist_help(args):
        cmd = [ "cdist", "-h", ]
        log.info("Running my process cdist help")
        subprocess.check_call(cmd)
2020-01-12 15:00:24 +01:00
bin Update build-helper 2020-01-04 14:56:05 +01:00
cdist Support user defined processes 2020-01-12 15:00:24 +01:00
completions Implement preos 2019-09-20 07:15:37 +02:00
configuration Fix typo in conf_dir description: comma separated -> os.pathsep separated. 2017-09-19 13:52:49 +02:00
docs Info command: support tilde expansion 2020-01-11 15:26:46 +01:00
hacking Add timing hack / test1 2019-10-18 19:45:19 +02:00
other Write sphinx rst docs. 2016-05-22 17:16:03 +02:00
scripts Implement preos 2019-09-20 07:15:37 +02:00
.gitattributes Re-arrange Makefile and build-helper script 2019-05-08 22:34:03 +02:00
.gitignore Rm cdist-type prefix and man page ref from docs 2019-12-06 10:00:32 +01:00
.gitlab-ci.yml gitlab CI runner should have necessary tools 2019-12-02 12:35:43 +01:00
LICENSE Add LICENSE 2019-12-01 14:23:02 +01:00
MANIFEST.in add package data info 2012-10-29 22:18:32 +01:00
Makefile Rm cdist-type prefix and man page ref from docs 2019-12-06 10:00:32 +01:00
PKGBUILD.in Update old homepage residual refs and non working git protocol 2019-05-09 08:26:42 +02:00
README Changes due to new website 2019-05-03 22:18:19 +02:00
README-maintainers Re-arrange Makefile and build-helper script 2019-05-08 22:34:03 +02:00
setup.py Add pycodestyle ignores 2019-11-27 14:59:25 +01:00

README

cdist
-----

cdist is a usable configuration management system.

For the web documentation have a look at https://www.cdi.st/
or at docs/src for reStructuredText manual.