-
Notifications
You must be signed in to change notification settings - Fork 285
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
Detect home dir for Windows #577
base: main
Are you sure you want to change the base?
Conversation
@elfranne Thanks again! I've just kicked the tests off! Let's see what happens 👀 |
I have fixed Hiera to use single quotes. |
Not sure how to fix that ... Is it something specific to how Github workflow sets up Windows ? |
So we aren't clear either at the moment. We will let you know as soon as we've got a fix. |
metadata.json
Outdated
@@ -11,6 +11,15 @@ | |||
|
|||
], | |||
"operatingsystem_support": [ | |||
{ | |||
"operatingsystem": "Windows", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this block should be indented
Would it be sufficient to provide a fixed password in the user-resource in the tests? |
This Pull Request needs a rebase and conflict resolution before it can be reviewed again. |
Fix merge Can someone start the CI workflow to see if that helps ? maybe @LukasAud ? |
Would be great to get this PR in since we want to use vcsrepo on Windows and be supported |
Anyone got an idea how to make the checks working on Windows ? |
Still with the |
@ic248 , let's see if this helps ... |
Appears the password worked. Does this just require adding the group to resolve? |
Any update on this? |
let 's try ! Can someone trigger the test ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments, but let's see what it does
Add windows to the list of supported Operating Systems so that acceptance tests are also run on this platform. We need to set a clear-text password for the windows user provider to avoid an OLE error code:800708C5 in Active Directory (The password does not meet the password policy requirements).
windows is such a supperior operating system it cannot create a group if a user with the same name already exist. We used `vagrant` for no real reason, so switch to obviously example names to fix CI on windows. While here, fix a few typos.
66b0e7d
to
7716ce1
Compare
@elfranne, I squashed the ~20 commits into a single one and rebased it on top of the main branch to have room to dig into the CI failures. Unfortunately, the test suite strongly assume a Linux operating system, and I am wondering if attempting to run the test suite on windows actually make sense 😕? |
@elfranne Any updates on this? |
@elfranne What's the current status for this? |
I ll have some time in the upcoming weeks to take a look on this again. |
For the record, I have cherry picked this and it works on cloning git repos on windows nodes. I haven't done extensive testing, but core functionality works as expected. Error: Could not set 'present' on ensure: undefined method `dir' for nil:NilClass (file: /etc/puppetlabs/code/environments/mything/modules/server/manifests/mything.pp, line: 12) |
Fix for : #559
v5.2 introduced a Linux only method of getting home dir (see #553).
This PR checks if running on Windows and use the command from 5.1 or else use 5.2+ command.
Tested on Microsoft Windows Server 2019 (64-bit). Maybe @krische or @aaronhilton0 can help testing ?