Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Change WiX template to deploy powershell wrapper modules. #386

Merged
merged 4 commits into from
Jun 10, 2015

Conversation

ksubrama
Copy link

@ksubrama ksubrama commented May 7, 2015

This needs chef/chef#3339 before it will work.

@ksubrama
Copy link
Author

ksubrama commented May 7, 2015

/cc @jdmundrawala @btm @smurawski @schisamo

@schisamo
Copy link
Contributor

schisamo commented May 7, 2015

Will this work on older versions of Windows?

@jaym
Copy link
Contributor

jaym commented May 7, 2015

I think this should be it's own feature. Opt-in sort of thing

@ksubrama
Copy link
Author

ksubrama commented May 7, 2015

@jdmundrawala I can make it a separate feature.

@schisamo If the current powershell available doesn't support module autoloading, then the installed files are harmless. We export an extra environment variable but that's it.

@ksubrama
Copy link
Author

ksubrama commented May 8, 2015

@jdmundrawala It's a separate feature now.

@jaym
Copy link
Contributor

jaym commented May 11, 2015

👍

@jaym
Copy link
Contributor

jaym commented May 11, 2015

Probably will need to do the same thing for chefdk

@ksubrama
Copy link
Author

@jdm This is ready for another look.

@jaym
Copy link
Contributor

jaym commented Jun 10, 2015

You pinged the wrong person

</Directory>
<Directory Id="PSMODULES" Name="modules" >
<Directory Id="PSMODULESCHEF" Name="chef" >
<Component Id="ChefPSModuleFile" Guid="{DF0E99BF-1877-4099-85A4-067C84A743F2}" >
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should be reusing guids

@jaym
Copy link
Contributor

jaym commented Jun 10, 2015

make sure to run this through the build and make sure it does what you want.

@ksubrama
Copy link
Author

I made a local chef-client build and it seems to deploy things to the right place. Module auto-loading seems to not be triggering though - but if I manually import the module (Import-Module chef), it does work. I think this might be a limitation in powershell when a command of the same name already exists in the path. Asking folks to add Import-Module chef to their ps profiles seems good enough to me for now. If nobody complains, we can auto-add it in the future.

@ksubrama
Copy link
Author

My local chefdk builds seem to work as well! 🚢

ksubrama pushed a commit that referenced this pull request Jun 10, 2015
Change WiX template to deploy powershell wrapper modules.
@ksubrama ksubrama merged commit e6e03ea into master Jun 10, 2015
@ksubrama ksubrama deleted the ksubrama/ps_module branch June 10, 2015 19:51
jaym added a commit to chef-boneyard/chef-dk that referenced this pull request Jun 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants