https://github.com/sergueik/serverspec_custom_types
misc. handy serverspec snippets
https://github.com/sergueik/serverspec_custom_types
chef puppet ruby serverspec spec
Last synced: 9 months ago
JSON representation
misc. handy serverspec snippets
- Host: GitHub
- URL: https://github.com/sergueik/serverspec_custom_types
- Owner: sergueik
- License: mit
- Created: 2018-10-05T13:29:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T22:06:39.000Z (over 1 year ago)
- Last Synced: 2025-02-10T13:25:18.493Z (11 months ago)
- Topics: chef, puppet, ruby, serverspec, spec
- Language: Ruby
- Homepage:
- Size: 960 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Info
Collection of over 150 custom serverspec snipets for Windows and over 200 custom serverspec snippets for Unix designed to examine complex configurations produced by Chef Puppet or Ansible for which the standard resources are not sufficient.
These can be added to provision pipeline via [vagrant-serverspeci](https://github.com/vvchik/vagrant-serverspec) or run on the target instance within some sort of standalone Ruby environment (which is usually chosen to leave the target system system Ruby-clean) through
[rvm](https://rvm.io/),
[scl](https://www.softwarecollections.org/en/scls/rhscl/rh-ruby23/) or [Uru Serverspec](https://github.com/sergueik/uru_serverspec)
Quite often (especially in windows case) a serverspec test later
becomes ia custom Puppet fact / Chef ohai fact evaluating version or state of its target application or becomes an `unless` `onlyif` condition on some resource managing the same for [idempotency](https://en.wikipedia.org/wiki/Idempotence) of the provision
The extraction of the approprtate repository part out of the parent [sergueik/puppetmaster_vagrant](https://github.com/sergueik/puppetmaster_vagrant/tree/master/facts) is a work in progress
Porting to [inspec](https://github.com/inspec/inspec) semantics is a work in progess and is unlikely to cause any problem.
Exampes of integrated Vagrantfile are in the parent repository [sergueik/puppetmaster_vagrant](https://github.com/sergueik/puppetmaster_vagrant).
There is some overlap with [sampler](https://github.com/sqshq/sampler) [recipes](https://github.com/sqshq/sampler#real-world-recipes)
### Author
[Serguei Kouzmine](kouzmine_serguei@yahoo.com)