neillturner / kitchen-ansible

Ansible Provisioner for Test Kitchen
Other
350 stars 134 forks source link

Feature request: ssh mode #202

Closed hryamzik closed 8 years ago

hryamzik commented 8 years ago

Let me request an ssh-mode model. Here're the goals:

As mixing real inventory with vagrant one may be tricky let me notice that it could be done with ansible-vagrant-inventory.

Based on #201

neillturner commented 8 years ago

ssh mode is already supported. you can see this in the section "Example usage to create Tomcat servers", im happy to take in pull requests or if folks can't code in ruby then i can make relatively straightforward enhancements. basically you jut need to know what ansible command you what to run and then we can add extra parameters in the kitchen yml file to support it. in the https://github.com/neillturner/kitchen-ansible/blob/master/provisioner_options.md use the parameter ansible_extra_flags to add any extra parameters you need or you can code your own complete ansible command with ansible_playbook_command and use the additional_copy_path to copy addition files

hryamzik commented 8 years ago

But can I avoid copying files and just run ansible with kitchen right in the project folder?

neillturner commented 8 years ago

well if you want to run ansible on your workstation try the ansiblepush plugin. my plugin always create another server installs ansible and copies the project. then you can have another set of servers that you use ssh on. the kitchen-verifier-serverspec plugin that i wrote allows you to run serverspec natively on your workstation so combining that with ansiblepush might do what you want.

hryamzik commented 8 years ago

Thanks, looks like ansiblepush does exactly what I'm looking for!