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

iis_vdir not idempotent when using config action #374

Closed
scolligan opened this issue Jun 1, 2017 · 3 comments
Closed

iis_vdir not idempotent when using config action #374

scolligan opened this issue Jun 1, 2017 · 3 comments
Assignees
Labels
Priority: Medium Will bring visible benefit to the project

Comments

@scolligan
Copy link

scolligan commented Jun 1, 2017

Cookbook version

6.5.3

Chef-client version

13.1.31

Platform Details

Windows Server 2012 R2 on Azure

Scenario:

The iis_vdir resource isn't idempotent with the config action.

Steps to Reproduce:

  # create site
  iis_vdir "#{virtual_site_name}/" do
    path virtual_attributes['path']
    physical_path virtual_physical_path.tr('/', '\\')
    action [:add, :config]
  end

Expected Result:

No changes after the vdir is added.

Actual Result:

This occurs on each run:

  * iis_vdir[www.sitename.com/] action add[2017-06-01T16:33:16-05:00] INFO: Processing iis_vdir[www.sitename.com/] action add (jjk_ts_transport_webserver_website_sitename::default line 257)
[2017-06-01T16:33:16-05:00] WARN: application name: www.sitename.com/
[2017-06-01T16:33:16-05:00] WARN: application name chomp: www.sitename.com
 (up to date)
  * iis_vdir[www.sitename.com/] action config[2017-06-01T16:33:16-05:00] INFO: Processing iis_vdir[www.sitename.com/] action config (jjk_ts_transport_webserver_website_sitename::default line 257)
[2017-06-01T16:33:16-05:00] WARN: application name: www.sitename.com/
[2017-06-01T16:33:16-05:00] WARN: application name chomp: www.sitename.com

    - Configured the VDIR - "iis_vdir[www.sitename.com/]"
@EasyAsABC123
Copy link
Contributor

EasyAsABC123 commented Jun 2, 2017 via email

@EasyAsABC123
Copy link
Contributor

This is resolved by #375, there are more issues in iis_app and iis_root as well.

@scolligan
Copy link
Author

Thank @EasyAsABC123 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium Will bring visible benefit to the project
Projects
None yet
Development

No branches or pull requests

3 participants