pyconfd:从领事或etcd自动更新配置文件

时间:2021-05-04 15:29:57
【文件属性】:
文件名称:pyconfd:从领事或etcd自动更新配置文件
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-04 15:29:57
Python pyconfd就像一样,但是是用python编写的。 代替纯文本配置文件,使用python编写一小段代码以查询任何内容,然后将其用于呈现jinja2模板。 安装 pip install pyconfd 设置 # store python plugins here mkdir -p /etc/pyconfd/conf.d/ # store jinja templates here mkdir -p /etc/pyconfd/templates/ 另外,请确保启动了pyconfd。 用法 直接启动pyconfd: pyconfd 目前,没有守护程序模式。 超级用户的用户可以编写超级用户配置文件,例如: [program:pyconfd] command=pyconfd numprocs=1 numprocs_start=0 priority=30 autostart=true auto
【文件预览】:
pyconfd-master
----requirements.txt(29B)
----examples()
--------conf.d()
--------templates()
----LICENSE(4B)
----setup.py(885B)
----README.md(3KB)
----.gitignore(121B)
----pyconfd()
--------__init__.py(73B)
--------plugin.py(8KB)
--------core.py(2KB)
--------logstuff.py(452B)
----bin()
--------pyconfd(63B)

网友评论