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 providing a user_data script on Windows that doesn't overwrite the default user_data script #518

Open
pshroads opened this issue Oct 22, 2020 · 1 comment

Comments

@pshroads
Copy link

🗣️ Foreword

Thank for taking the time to fill this feature request fully. Without it we may not be able to , and the issue may be closed without resolution.

:person_frowning: Problem Statement

When creating a Windows instance if I specify a user_data script then that script is used instead of the default that enables winrm and adds a non-administrator user specified in the username transport options to the Administrator's User Group. As a result winrm is not enabled and kitchen can't connect to the instance.

❔ Possible Solution

A custom_user_data parameter could be used that is then included in the final user_data Powershell script:

#{base_script}
#{custom_admin_script}

⤴️ Describe alternatives you've considered

I've considered copying the default user_data script and adding my own modifications.

➕ Additional context

Add any other context about the problem here. e.g. related issues or existing pull requests.

@CoreyLivingston
Copy link

I've resorted to copying the default user_data script and adding my own modifications but now I'll have to keep tabs on the default user_data in case it ever changes.

Good idea for an improvement.

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