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 Windows 10 #822

Closed
benh57 opened this issue Oct 2, 2017 · 10 comments
Closed

Add support for Windows 10 #822

benh57 opened this issue Oct 2, 2017 · 10 comments

Comments

@benh57
Copy link

benh57 commented Oct 2, 2017

Description of problem

  • What did you do?
    Attempt to install sensu client on windows 10 using the puppet module.

  • What happened?

Fails to install from https://repositories.sensuapp.org/msi/10/sensu-1.0.0-1-x64.msi

This is because the module uses the os.major version as the url dir which does not exist on the sensu repository.

Platform and version information

  • Your OS: Windows 10 Enterprise VL
  • Your version of Puppet: 5.2.0
  • Your version of Sensu: 1.0.0
  • Your version of this module: 2.35.0

Anything else to add that you think will be helpful?

Locally i've fixed this by doing:

    if $os_release == '10' {
      $pkg_url_dir = '2016'
    } else {
      # e.g. '2012 R2' => '2012r2'
      $pkg_url_dir = regsubst($os_release, '^(\d+)\s*[rR](\d+)', '\\1r\\2')
    }

I can submit a PR for this if you like.

@ghoneycutt
Copy link
Collaborator

Thank you for reporting this! We do not currently support Windows 10, though would be glad to do so. In order for us to support it, we would need it to work under Vagrant so it could be tested.

Is Windows 10 newer than 2012? That seems to be how it is differentiated at https://sensuapp.org/downloads

Should it just use the 2012r2 package?

There would need to be win10-client added, similar to win2012r2-client at https://github.com/sensu/sensu-puppet/blob/master/Vagrantfile#L137-L156

Not sure which vagrant box we should use. This one maybe? https://app.vagrantup.com/souldonut/boxes/win_10_vbox_nocm

@benh57
Copy link
Author

benh57 commented Oct 2, 2017

Yes, I am testing using my own Vagrantfile and windows 10 box. But i can try out the one that comes with the module if i get time.

I thought windows 10 was be closer to 2016 than 2012r2 so I chose that one, but you're right they don't seem to link to it on the downloads page. I'm not sure of the differences on the sensu side. They have 2016 MSI's published here: https://repositories.sensuapp.org/msi/2016/

@benh57
Copy link
Author

benh57 commented Oct 19, 2017

FWIW , it looks like this also breaks on Windows 7. It tries to get the pkg from /msi/7 which doesn't exist.

@benh57
Copy link
Author

benh57 commented Oct 19, 2017

I'm not really sure why they have OS-specific packages for Windows. It should work on any.

@ghoneycutt
Copy link
Collaborator

@agoddard Can you speak to the OS specific packages for Windows?

@agoddard
Copy link

@ghoneycutt @benh57 we had to split up newer & older versions of Windows due to .NET dependency differences

@benh57
Copy link
Author

benh57 commented Oct 23, 2017

Surely the installer could detect and handle that?

@agoddard
Copy link

@benh57 it definitely would be nice if it could. I've opened an issue on the Sensu-omnibus project to see if it's possible: sensu/sensu-omnibus#234

@ghoneycutt
Copy link
Collaborator

Waiting for feedback from sensu/sensu-omnibus#234

@ghoneycutt ghoneycutt changed the title Install fails on windows 10 Add support for Windows 10 Jan 15, 2018
@ghoneycutt
Copy link
Collaborator

Windows 10 is not officially supported. Suggest using the code above provided by @benh57 in your profile for sensu.

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