salt.states.win_iis module

Microsoft IIS site management

This module provides the ability to add/remove websites and application pools from Microsoft IIS.

2016.3.0 新版功能.

salt.states.win_iis.create_apppool(name)

Creates an IIS application pool.

name
The name of the application pool to use
salt.states.win_iis.deployed(name, protocol, sourcepath, port, apppool='', hostheader='', ipaddress='')

Ensure the website has been deployed. This only validates against the website name and will not update information on existing websites with the same name. If the website name doesn't exist it will create with the provided parameters.

name
Name of the website in IIS.
protocol
http or https
sourcepath
The directory path on the IIS server to use as a root file store. example: c:websiteswebsite1
port
The network port to listen for traffic. example: 80
apppool
The application pool to configure for the website. Must already exist.
hostheader
The hostheader to route to this website.
ipaddress
The website ipaddress
salt.states.win_iis.remove_apppool(name)

Removes an existing Application Pool from the server

name
The name of the application pool to remove
salt.states.win_iis.remove_site(name)

Remove an existing website from the webserver.

name
The website name as shown in IIS.