-
Notifications
You must be signed in to change notification settings - Fork 171
iis.py in _modules #134
Comments
@Cheng0919, thanks for reporting this issue. Ping @evgenysub. |
I case anyone else gets tripped up on this and lands here, I thought I'd add my findings. One is a small code issue, the other is a documentation issue.
The underlying issue is that Conversely, the changes that @Cheng0919 proposes would allow the site to be modified, but would fail if the site did not exist already. I recommend removing the ensure_test_vdir_exists:
iis.vdir_present:
- name: /
- app: Test-Site/
- settings:
physicalPath: 'C:\test_app_path'
- require:
- iis: ensure_test_app_exists
ensure_test_app_exists:
iis.app_present:
- name: /
- site: Test-Site
- settings:
applicationPool: Test-Pool
path: /
- require:
- iis: ensure_test_site_exists
- iis: ensure_test_pool_exists
ensure_test_pool_exists:
iis.apppool_present:
- name: Test-Pool
- settings:
managedRuntimeVersion: v4.0
ensure_test_site_exists:
iis.site_present:
- name: Test-Site
- settings:
bindings: "http/*:80:test.com" I know that this is more of a "how to use appcmd" issue, but it might also be worth noting that you can get a list of properties for a given resource by running |
with the original iis.py module, I could get a error comment while trying to get "physicalPath" of iis site.
errors showing below:
I changed few codes in "_resource_get_config" function, and works well for me.
previous code:
new code:
please kindly consider to modify the iis.py code in module function if this do work well, thanks
The text was updated successfully, but these errors were encountered: