-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a test infrastructure #6
Comments
I personally use this
---
driver:
name: vagrant
use_sudo: false
forward_agent: true
provisioner:
hosts: test-kitchen
name: ansible_playbook
require_ansible_repo: true
ansible_yum_repo: epel
require_ansible_omnibus: false
ansible_verbosity: 2
ansible_verbose: true
ansible_diff: true
require_chef_for_busser: true
update_package_repos: false
requirements_path: test/requirements.yml
ssh_known_hosts:
- bitbucket.org
platforms:
- name: centos-7
driver:
box: centos/7
provision: true
vagrantfiles:
- .vagrant.rb
network:
- ["private_network", {ip: "192.168.33.102"}]
suites:
- name: default
transport:
forward_agent: true
name: rsync
...
Instead of inspec, I use BATS because $REASONS. |
@ferrarimarco Do you use a tool such as If not, here is my config
I use it with this alias
|
@pgporada thanks. I'll check yamllint! |
I hope it helps you! I like the feeling of linting my infrastructure code in any way possible. It's "new" and "different". |
@pgporada added in my PR 😄 |
I was on vacations, I'll check it ASAP |
Hi @iknite any news? 👍 |
I was reviewing it right now. :) |
I am worried about multiple use cases. I am +1 to add a test environment, but not without a question in the cookiecutter (To allow simpler use cases outside galaxy), and also without travis (for private repositories). I´m also in favour to BATS. So 3 levels of configuration and multiple choices. It´s something that requires a little more effort. More on this soon, but for now thanks @ferrarimarco for bring this to the table, just let me be cautious. |
Ok, no prob. Here is an overview (about Chef, but some concepts apply here also): https://blog.chef.io/2015/04/21/overview-of-test-driven-infrastructure-with-chef/ |
By the way feel free to close that PR. After discussion I can open another one to help you |
Currently generated roles do not include any test facility.
I'll provide a pull request that implements testing with Test-Kitchen configured with the kitchen-docker driver,
and kitchen-inspec.
Let's talk about this :)
The text was updated successfully, but these errors were encountered: