cucumber-puppet

Build Status

The project was discontinued. I'm seeing if I can resurect it

Currently cucumber-puppet doesnt support Ruby 1.9+ or any puppetversion beyond 2.7...

Cucumber-puppet is a tool for specifying Puppet catalog behavior. It uses Cucumber features as specifications and provides the necessary glue to access a node's catalog from Cucumber's step definitions.

Quickstart

Install cucumber-puppet

$ gem install cucumber-puppet

Go to your Puppet directory

$ cd puppet

Initialise the infrastructure

$ cucumber-puppet-gen world

Create a default policy and adapt it to your needs

$ cucumber-puppet-gen policy
$ vim features/catalog/policy.feature

Copy YAML node files into place

$ mkdir features/yaml
$ cp /var/lib/puppet/yaml/node/localhost.example.com.yaml features/yaml

Apply your policy

$ cucumber-puppet features/catalog/policy.feature

An example use case can be found at https://github.com/nistude/cucumber-puppet.example.

Further documentation is available in the wiki.

Acknowledgements

Many thanks to Bernd Ahlers for getting me started with cucumber, rspec and ruby.

cucumber-puppet was inspired by Lindsay Holmwood's cucumber-nagios.



cucumber-puppet

建立状态

该项目已停产。我看到我是否可以恢复它

目前,黄瓜木偶不支持Ruby 1.9+或超过2.7的任何puppetversion …

黄瓜木偶是用于指定Puppet目录行为的工具。它使用 黄瓜特征作为规格,并提供必要的胶水来访问 节点从Cucumber的步骤定义的目录。

Quickstart

安装黄瓜木偶

$ gem install cucumber-puppet

转到您的Puppet目录

$ cd puppet

初始化基础设施

$ cucumber-puppet-gen world

创建默认策略,并根据需要进行调整

$ cucumber-puppet-gen policy
$ vim features/catalog/policy.feature

将YAML节点文件复制到位

$ mkdir features/yaml
$ cp /var/lib/puppet/yaml/node/localhost.example.com.yaml features/yaml

应用您的策略

$ cucumber-puppet features/catalog/policy.feature

可以在这里找到一个用例 https://github.com/nistude/cucumber-puppet.example

有更多的文件可以在 维基

Acknowledgements

非常感谢 Bernd Ahlers 让我开始 与黄瓜,rspec和红宝石。

黄瓜木偶受到启发 Lindsay Holmwood的 cucumber-nagios




相关问题推荐