salt.modules.win_iis module

Microsoft IIS site management via WebAdministration powershell module

platform:Windows

2016.3.0 新版功能.

salt.modules.win_iis.create_apppool(name)

Create IIS Application pools

CLI Example:

salt '*' win_iis.create_apppool name='MyTestPool'
salt.modules.win_iis.create_site(name, protocol, sourcepath, port, apppool='', hostheader='', ipaddress='')

Create a basic website in IIS

CLI Example:

salt '*' win_iis.create_site name='My Test Site' protocol='http' sourcepath='c:\stage' port='80' apppool='TestPool'
salt.modules.win_iis.list_apppools()

List all configured IIS Application pools

CLI Example:

salt '*' win_iis.list_apppools
salt.modules.win_iis.list_sites()

List all the currently deployed websites

CLI Example:

salt '*' win_iis.list_sites
salt.modules.win_iis.remove_apppool(name)

Removes IIS Application pools

CLI Example:

salt '*' win_iis.remove_apppool name='MyTestPool'
salt.modules.win_iis.remove_site(name)

Delete website from IIS

CLI Example:

salt '*' win_iis.remove_site name='My Test Site'