ahelal / kitchen-ansiblepush

test-kitchen plugin to use ansible in push mode
41 stars 22 forks source link

Overriding inventory hostname? #44

Closed con5cience closed 7 years ago

con5cience commented 7 years ago

Hi.

How do I override the inventory hostname set by the provisioner?

On https://github.com/ahelal/kitchen-ansiblepush/blob/master/lib/kitchen/provisioner/ansible_push.rb#L235 it looks like I should be able to do:

transport:
  connection_options:
    hostname: foo

But that doesn't work.

thinkmassive commented 7 years ago

I opened a PR that should implement this feature (which looks like it was previously conceived by @ahelal but not yet implemented). It will allow you the Ansible inventory name by defining the desired name as the value of custom_instance_name within the provisioner section.

ahelal commented 7 years ago

PR #45 merged. I will add more tests and do a release

ahelal commented 7 years ago

released with 0.8.0 Thank you @thinkmassive