iisconfig is a ruby dsl for configuring IIS web servers application pools, websites and ftp sites
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
Gemfile
LICENSE
VERSION
iisconfig.gemspec
readme.md

readme.md

IISConfig

IISConfig is a DSL written in ruby to configure IIS application pools and web and ftp sites.

Examples

By default iisconfig is destructive, any application pools or sites in the configuration file will be deleted before being rebuilt.

iisconfig e config.iis

If you want to recycle just the application pools the --recycle-apppools can be used

iisconfig e config --recycle-apppools

To perform a dry run, and to see what appcmds will be executed add the switch dry-run

iisconfig e config.iis --dry-run

Within the config.iis SensitiveValue can be used to store passwords or any other sensitive data and prevent it being logged.

E.g.

p.process_model do |m|
  m.identity_type :SpecificUser
  m.idle_timeout '0.00:30:00'
  m.username ENV['APP_POOL_USERNAME']
  m.password SensitiveValue.new(ENV['APP_POOL_PASSWORD'])
end

Notes

iisconfig must be run with administrative privileges.