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

Unsupported Platform - windows #98

Closed
goutham27 opened this issue Nov 19, 2015 · 9 comments
Closed

Unsupported Platform - windows #98

goutham27 opened this issue Nov 19, 2015 · 9 comments

Comments

@goutham27
Copy link

Hi,

I am trying to use test-kitchen to test windows modules, but getting different errors. Could you please guide me how to fix this, I am new to using test-kitchen.
When I ran kitchen converge looks like its trying to install puppet, is there a way to skip that? Since our vagrant boxes are already shipped with puppet. Also would it possible to install puppet on windows using kitchen commands ?

This is my .kitchen.yml file..

driver:
name: vagrant

provisioner:
name: puppet_apply
manifests_path: manifests
modules_path: modules
puppet_debug: true
puppet_verbose: true

platforms:

  • name: windows-2012R2
    driver:
    username: _puppet
    password: vagrant
    guest: windows
    box: win2012r2-virtualbox
    transport:
    name: ssh

suites:

  • name: default
    provisioner:
    manifest: site.pp

I tried kitchen converge first fails with
STDERR: Vagrant is configured to generate a random keypair and insert it
onto the guest machine, but it appears Vagrant doesn't know how to do
this with your guest OS. Please disable key insertion by setting
config.ssh.insert_key = false in the Vagrantfile.

I tried to run it again..this time It asks me to enter password, after entering it fails with unsupported platform error. I am using test-kitchen 1.4.2 version, kitchen-puppet 1.0.34 version, kitchen-vagrant 0.19.0.

Below are the detailed errors,

First

https://gist.github.com/lucky27/8a819668fc6e835700b6

https://gist.github.com/lucky27/4188275ac66679466878

@ytsarev
Copy link

ytsarev commented Nov 19, 2015

Looks like unsupported platform part directly relates to #94 .
@grubernaut let's decide how to proceed here

@ytsarev
Copy link

ytsarev commented Nov 19, 2015

@grubernaut my proposal #99

@ytsarev
Copy link

ytsarev commented Nov 19, 2015

I've also created #100 to address enhancement side separately

@ytsarev
Copy link

ytsarev commented Nov 19, 2015

@Lucky27 feel free to try out #99 , it should fix your issue with unsupported platform failure

@neillturner
Copy link
Owner

Currently we don't have windows support but it should not be difficult to add.
Unfortunately my laptop is not powerful enough to run the full windows 2012r2 virtual box.
i can run windows nano but you have to use remote powershell to install openssh etc as the winrm support doesn't work.
i'll look to see if i can run some other windows version under virtual box.

@goutham27
Copy link
Author

@ytsarev I tried using #99, unsupported error is gone but it is throwing a different error now.

https://gist.github.com/lucky27/27141a1affadcf85d93d

@neillturner We use lot of windows modules, so adding windows support would be lot helpful for us.
Please let me know If u need any help with testing code on windows platforms.

Also I have another question, right now our folder structure is we have manifest folder(with contents of module I want to test) and modules folder with dependencies. I would like to add a site.pp file to all our modules, which has some custom settings like our inhouse chocolatey-nuget repository and other settings. Where should I add this? and how should I use it in the .kitchen.yml file?

@neillturner
Copy link
Owner

a couple of questions:

  1. how do you install puppet on your windows servers. msi, choclately or ruby and puppet individually?
  2. when you access your server via ssh is puppet in the path and available to execute.

I was thinking of creating a minimal windows version that assumes that puppet is install and available on the path.

kitchen puppet has 2 parameters:
manifest which defaults to 'site.pp' which is the initial manifest that is run.
manifests_path: which defaults to the top level folder.

you can see an example in https://github.com/neillturner/puppet_repo
where there is a manifests folder containing site.pp
and the .kitchen.yml file has parameter
manifests_path: manifests

@goutham27
Copy link
Author

@neillturner I use chocolatey to install it and yes puppet is available on path.

Below is the puppet module structure I want to add, development folder has site.pp which has global settings and manifests/init.pp file contains the current module..how should I add these 2 in .kitchen.yml ? modules folder has the dependency modules.
image

@neillturner
Copy link
Owner

closing this in favour of Windows Support #79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants