Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
changed all documentation for `iis_config` action to be `:set` instead of `:config`
  • Loading branch information
EasyAsABC123 committed Oct 21, 2015
1 parent a51cd41 commit 73390b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,28 +213,28 @@ Runs a config command on your IIS instance.
```ruby
# Sets up logging
iis_config "/section:system.applicationHost/sites /siteDefaults.logfile.directory:\"D:\\logs\"" do
action :config
action :set
end
```

```ruby
# Increase file upload size for 'MySite'
iis_config "\"MySite\" /section:requestfiltering /requestlimits.maxallowedcontentlength:50000000" do
action :config
action :set
end
```

```ruby
# Set IUSR username and password authentication
iis_config "\"MyWebsite/aSite\" -section:system.webServer/security/authentication/anonymousAuthentication /enabled:\"True\" /userName:\"IUSR_foobar\" /password:\"p@assword\" /commit:apphost" do
action :config
action :set
end
```

```ruby
# Authenticate with application pool
iis_config "\"MyWebsite/aSite\" -section:system.webServer/security/authentication/anonymousAuthentication /enabled:\"True\" /userName:\"\" /commit:apphost" do
action :config
action :set
end

```
Expand All @@ -244,15 +244,15 @@ end
cfg_cmds = node['iis']['cfg_cmd']
cfg_cmds.each do |cmd|
iis_config "#{cmd}" do
action :config
action :set
end
end
```

```ruby
# Add static machine key at site level
iis_config "MySite /commit:site /section:machineKey /validation:AES /validationKey:AAAAAA /decryptionKey:ZZZZZ" do
action :config
action :set
end
```

Expand Down

0 comments on commit 73390b8

Please sign in to comment.