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

Add support for managed-servers Vagrant provider #142

Closed
wants to merge 1 commit into from
Closed

Add support for managed-servers Vagrant provider #142

wants to merge 1 commit into from

Conversation

kbruner
Copy link

@kbruner kbruner commented Feb 25, 2015

This simple addition to the Vagrantfile template is enough to add support for the managed-servers Vagrant provider (https://github.com/tknerr/vagrant-managed-servers). This will basically allow test-kitchen to be used as a 'push' service for already-provisioned servers. (We have some development/test cases where this may be required.)

Sample .kitchen.yml:


---
driver:
  name: vagrant

provisioner:
  name: chef_zero
  require_chef_omnibus: false

platforms:
  - name: managed_server
    driver:
      provider: managed
      box: 'managed-server-dummy'
      box_url: 'https://github.com/tknerr/vagrant-managed-servers/raw/master/dummy.box'
      ssh_key: '/path/to/ssh/key'
      username: 'root'
      customize:
        server: '10.0.0.123'

...

- https://github.com/tknerr/vagrant-managed-servers
- Takes 'server' config parameter in driver 'customize' block
@tknerr
Copy link
Contributor

tknerr commented Mar 18, 2015

Oh, nice @kbruner 👍

Looks good to me.

@tknerr
Copy link
Contributor

tknerr commented Mar 18, 2015

Once we have Vagrant 1.6 compatibility (see #125) we could also use box: "tknerr/managed-server-dummy" instead of the rather long box_url

@tknerr
Copy link
Contributor

tknerr commented Mar 18, 2015

@kbruner on a second thought, I'm honestly wondering how you reset your managed servers to a pristine state before running the tests? :-)

@kbruner
Copy link
Author

kbruner commented Mar 18, 2015

Yes, this is not an ideal test situation. It is a corner case for one team here who got a speshul snowflake setup awhile ago. Right now their test systems is managed by a production chef server, except for their app recipes, which they push via littlechef. Adding this support in vagrant would at least get them more aligned with our test-kitchen development standards. We'll need infrastructure changes in our Chef environment to be able to get them 100% on the chef servers for their permanent environments, though.

@fnichol fnichol self-assigned this Mar 23, 2015
@fnichol fnichol closed this in 556c72c Mar 23, 2015
@fnichol
Copy link
Contributor

fnichol commented Mar 23, 2015

Hello @kbruner, looks good! As master now (finally) has test coverage, I took the liberty of rebasing this against master and adding a couple of specs in 8f19765. Thank you!

@fnichol fnichol removed their assignment Mar 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants