没有合适的资源?快使用搜索试试~ 我知道了~
config-encoder-macros:Jinja2和ERB宏集,可帮助将Python和Ruby数据结构编码为不同的文件格式
共52个文件
erb:17个
j2:17个
yaml:10个
需积分: 5 0 下载量 9 浏览量
2021-05-09
21:22:08
上传
评论
收藏 34KB ZIP 举报
温馨提示
配置编码器宏 Jinja2和ERB宏集,可帮助将Python和Ruby数据结构编码为不同的文件格式。 例子 编程支持 动机 创建这些宏的动机是为了能够在创建配置文件的通用描述。 Ansible and Puppet使用YAML格式作为主要数据输入。 这种格式允许描述配置文件的几乎任何结构。 Ansible回应。 Puppet将YAML数据转换为Python响应。 使用原始数据类型(例如dict , list , string , number , boolean ,...)的Ruby数据结构。 然后,该数据结构将在Jinja2和ERB模板文件中使用,以生成最终的配置文件。 编码器宏用于将Python或Ruby数据结构转换为另一种格式。 支持的格式 Apache配置格式 Erlang配置格式 尼尼 JSON格式 Logstash 汤姆 XML格式 YAML Ansible的例子 将此仓库克
资源推荐
资源详情
资源评论
收起资源包目录
config-encoder-macros-master.zip (52个子文件)
config-encoder-macros-master
puppet_apply.sh 308B
yaml_converter.rb 3KB
site.pp 1KB
templates
test.ini_simple.j2 260B
test.toml.erb 354B
test.ini.j2 220B
test.erlang.erb 364B
test.apache.erb 364B
test.apache.j2 232B
test.logstash.erb 374B
test.toml.j2 224B
test.json.j2 104B
test.ini_simple.erb 369B
test.xml.j2 281B
test.yaml.erb 354B
test.json.erb 235B
test.yaml.j2 224B
test.logstash.j2 240B
test.xml.erb 410B
test.erlang.j2 232B
test.ini.erb 323B
hiera.yaml 158B
vars
yaml_test.yaml 187B
apache_test.yaml 1KB
xml_test.yaml 239B
ini_test.yaml 177B
erlang_test.yaml 326B
logstash_test.yaml 973B
toml_test.yaml 638B
json_test.yaml 187B
yaml_converter.py 2KB
macros
json_encode_macro.j2 2KB
json_encode_macro.erb 2KB
erlang_encode_macro.j2 2KB
yaml_encode_macro.j2 2KB
ini_encode_macro.erb 2KB
ini_encode_macro.j2 2KB
toml_encode_macro.erb 5KB
xml_encode_macro.erb 3KB
apache_encode_macro.j2 5KB
yaml_encode_macro.erb 2KB
erlang_encode_macro.erb 2KB
toml_encode_macro.j2 4KB
logstash_encode_macro.j2 3KB
logstash_encode_macro.erb 87B
apache_encode_macro.erb 5KB
xml_encode_macro.j2 2KB
site.yaml 2KB
hosts 79B
LICENSE.md 1KB
.gitignore 0B
README.md 17KB
共 52 条
- 1
资源评论
阚发景
- 粉丝: 16
- 资源: 4614
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功