puppet-puppetdbquery:PuppetDB的查询功能

时间:2021-02-01 07:42:05
【文件属性】:
文件名称:puppet-puppetdbquery:PuppetDB的查询功能
文件大小:42KB
文件格式:ZIP
更新时间:2021-02-01 07:42:05
ruby puppetdb puppet RubyRuby PuppetDB查询工具 此模块实现了可用于查询puppetdb的命令行工具和Puppet函数。 还有一个hiera后端,可用于从puppetdb返回查询结果。 使用警告 您可能不再需要此人偶模块。 从4.0版开始,PuppetDB捆绑了一种简化的查询语言。 因此,除非您真的喜欢此模块中的语法,否则可以只使用PQL。 有关更多详细信息,请参见 。 要求 Puppet函数需要PuppetDB总站,而面部不需要。 要解析日期查询,需要Ruby gem“ chronic”。 所需的PuppetDB版本 该模块使用V4 API,因此至少需要PuppetDB 3.0.0。 如果您使用的是PuppetDB 2.x,请改用该模块的1.x版本。 查询语法 使用fact=value搜索fact等于value节点。 要搜索结构化事实,请在事实路径的每个部分之间使用点,例如foo.bar=baz 。 可以使用语法type[title]{param=value}来匹配资源。 括号中的部分是可选的。 您还可以在title前指定~ ,以对title进行正则表达式匹配。 类型名称和类名称不区分大小写。 资源前面
【文件预览】:
puppet-puppetdbquery-master
----COPYING(11KB)
----lib()
--------puppetdb.rb(86B)
--------puppetdb()
--------hiera()
--------puppet()
----Gemfile(57B)
----metadata.json(420B)
----spec()
--------spec_helper.rb(332B)
--------unit()
--------functions()
--------puppet()
----ruby-puppetdb.gemspec(1KB)
----Rakefile(609B)
----examples()
--------query_resource_examples.pp(2KB)
--------query_node_examples.pp(623B)
--------nova_functions.pp(592B)
----.travis.yml(723B)
----README.md(10KB)
----.rubocop.yml(87B)
----.gitignore(79B)
----bin()
--------find-nodes(2KB)
----CHANGELOG(2KB)

网友评论