Skip to content
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

Allow to set chef-zero-host when using the Chef Zero provider #549

Merged
merged 1 commit into from
Nov 28, 2014
Merged

Allow to set chef-zero-host when using the Chef Zero provider #549

merged 1 commit into from
Nov 28, 2014

Conversation

jochenseeber
Copy link

This fix introduces a new configuration option chef_zero_host for the
Chef Zero provider. Using this option, you can bind the Chef Zero
server to another address than localhost.

Being able to set the host is nice when using test kitchen to test cookbooks that create docker containers or VMs which in turn use chef to configure themselves. This way the "nested" Chef clients inside the containers or VMs can access Test Kitchen's Chef Zero server, too.

Example kitchen.yml:

- name: 'ops_server'
  driver:
    network:
    -
      - 'private_network'
      - ip: '192.168.99.100'
  provisioner:
    chef_zero_host: '192.168.99.100'
    client_rb:
      chef_server_url: 'http://192.168.99.100:8889'

This fix introduces a new configuration option chef_zero_host for the
Chef Zero provider. Using this option, you can bind the Chef Zero
server to another address than localhost.
@jochenseeber
Copy link
Author

Creating second request where the default for the host is nil instead of 'localhost'.

@jochenseeber
Copy link
Author

Learning to use pull requests, sorry :)

@jochenseeber jochenseeber reopened this Nov 28, 2014
sethvargo added a commit that referenced this pull request Nov 28, 2014
Allow to set chef-zero-host when using the Chef Zero provider
@sethvargo sethvargo merged commit 57ff15c into test-kitchen:master Nov 28, 2014
@sethvargo
Copy link
Contributor

Thanks

fnichol added a commit that referenced this pull request Dec 4, 2014
fnichol added a commit that referenced this pull request Dec 4, 2014
@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants