Initial Chef repository
This commit is contained in:
29
cookbooks/iis/resources/app.rb
Normal file
29
cookbooks/iis/resources/app.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
#
|
||||
# Author:: Kendrick Martin (kendrick.martin@webtrends.com>)
|
||||
# Cookbook Name:: iis
|
||||
# Resource:: app
|
||||
#
|
||||
# Copyright:: 2011, Webtrends Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
actions :add, :delete, :config
|
||||
default_action :add
|
||||
|
||||
attribute :site_name, kind_of: String, name_attribute: true
|
||||
attribute :path, kind_of: String, default: '/'
|
||||
attribute :application_pool, kind_of: String
|
||||
attribute :physical_path, kind_of: String
|
||||
attribute :enabled_protocols, kind_of: String
|
||||
attr_accessor :exists, :running
|
||||
25
cookbooks/iis/resources/config.rb
Normal file
25
cookbooks/iis/resources/config.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
# Author:: Kendrick Martin (kendrick.martin@webtrends.com)
|
||||
# Cookbook Name:: iis
|
||||
# Resource:: config
|
||||
#
|
||||
# Copyright:: 2011, Webtrends Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
actions :config
|
||||
default_action :config
|
||||
|
||||
attribute :cfg_cmd, kind_of: String, name_attribute: true
|
||||
attribute :returns, kind_of: [Integer, Array], default: 0
|
||||
29
cookbooks/iis/resources/module.rb
Normal file
29
cookbooks/iis/resources/module.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
#
|
||||
# Author:: Jon DeCamp (<jon.decamp@nordstrom.com>)
|
||||
# Cookbook Name:: iis
|
||||
# Resource:: module
|
||||
#
|
||||
# Copyright:: 2012, Nordstrom, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
actions :add, :delete
|
||||
default_action :add
|
||||
|
||||
attribute :module_name, kind_of: String, name_attribute: true
|
||||
attribute :type, kind_of: String, default: nil
|
||||
attribute :precondition, kind_of: String, default: nil
|
||||
attribute :application, kind_of: String, default: nil
|
||||
|
||||
attr_accessor :exists
|
||||
78
cookbooks/iis/resources/pool.rb
Normal file
78
cookbooks/iis/resources/pool.rb
Normal file
@@ -0,0 +1,78 @@
|
||||
#
|
||||
# Author:: Kendrick Martin (kendrick.martin@webtrends.com>)
|
||||
# Contributor:: David Dvorak (david.dvorak@webtrends.com)
|
||||
# Cookbook Name:: iis
|
||||
# Resource:: pool
|
||||
#
|
||||
# Copyright:: 2011, Webtrends Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
actions :add, :config, :delete, :start, :stop, :restart, :recycle
|
||||
default_action :add
|
||||
|
||||
# root
|
||||
attribute :pool_name, kind_of: String, name_attribute: true
|
||||
attribute :no_managed_code, kind_of: [TrueClass, FalseClass], default: false
|
||||
attribute :pipeline_mode, kind_of: Symbol, equal_to: [:Integrated, :Classic]
|
||||
attribute :runtime_version, kind_of: String
|
||||
|
||||
# add items
|
||||
attribute :start_mode, kind_of: Symbol, equal_to: [:AlwaysRunning, :OnDemand], default: :OnDemand
|
||||
attribute :auto_start, kind_of: [TrueClass, FalseClass], default: true
|
||||
attribute :queue_length, kind_of: Integer, default: 1000
|
||||
attribute :thirty_two_bit, kind_of: [TrueClass, FalseClass], default: false
|
||||
|
||||
# processModel items
|
||||
attribute :max_proc, kind_of: Integer
|
||||
attribute :load_user_profile, kind_of: [TrueClass, FalseClass], default: false
|
||||
attribute :pool_identity, kind_of: Symbol, equal_to: [:SpecificUser, :NetworkService, :LocalService, :LocalSystem, :ApplicationPoolIdentity], default: :ApplicationPoolIdentity
|
||||
attribute :pool_username, kind_of: String
|
||||
attribute :pool_password, kind_of: String
|
||||
attribute :logon_type, kind_of: Symbol, equal_to: [:LogonBatch, :LogonService], default: :LogonBatch
|
||||
attribute :manual_group_membership, kind_of: [TrueClass, FalseClass], default: false
|
||||
attribute :idle_timeout, kind_of: String, default: '00:20:00'
|
||||
attribute :shutdown_time_limit, kind_of: String, default: '00:01:30'
|
||||
attribute :startup_time_limit, kind_of: String, default: '00:01:30'
|
||||
attribute :pinging_enabled, kind_of: [TrueClass, FalseClass], default: true
|
||||
attribute :ping_interval, kind_of: String, default: '00:00:30'
|
||||
attribute :ping_response_time, kind_of: String, default: '00:01:30'
|
||||
|
||||
# recycling items
|
||||
attribute :disallow_rotation_on_config_change, kind_of: [TrueClass, FalseClass], default: false
|
||||
attribute :disallow_overlapping_rotation, kind_of: [TrueClass, FalseClass], default: false
|
||||
attribute :recycle_after_time, kind_of: String
|
||||
attribute :recycle_at_time, kind_of: String
|
||||
attribute :private_mem, kind_of: Integer
|
||||
|
||||
# failure items
|
||||
attribute :load_balancer_capabilities, kind_of: Symbol, equal_to: [:HttpLevel, :TcpLevel], default: :HttpLevel
|
||||
attribute :orphan_worker_process, kind_of: [TrueClass, FalseClass], default: false
|
||||
attribute :orphan_action_exe, kind_of: String
|
||||
attribute :orphan_action_params, kind_of: String
|
||||
attribute :rapid_fail_protection, kind_of: [TrueClass, FalseClass], default: true
|
||||
attribute :rapid_fail_protection_interval, kind_of: String, default: '00:05:00'
|
||||
attribute :rapid_fail_protection_max_crashes, kind_of: Integer, default: 5
|
||||
attribute :auto_shutdown_exe, kind_of: String
|
||||
attribute :auto_shutdown_params, kind_of: String
|
||||
|
||||
# cpu items
|
||||
attribute :cpu_action, kind_of: Symbol, equal_to: [:NoAction, :KillW3wp, :Throttle, :ThrottleUnderLoad], default: :NoAction
|
||||
attribute :cpu_limit, kind_of: Integer, default: 0
|
||||
attribute :cpu_reset_interval, kind_of: String, default: '00:05:00'
|
||||
attribute :cpu_smp_affinitized, kind_of: [TrueClass, FalseClass], default: false
|
||||
attribute :smp_processor_affinity_mask, kind_of: Bignum, default: 4_294_967_295
|
||||
attribute :smp_processor_affinity_mask_2, kind_of: Bignum, default: 4_294_967_295
|
||||
|
||||
attr_accessor :exists, :running
|
||||
27
cookbooks/iis/resources/section.rb
Normal file
27
cookbooks/iis/resources/section.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# Author:: Justin Schuhmann
|
||||
# Cookbook Name:: iis
|
||||
# Resource:: lock
|
||||
#
|
||||
# Copyright:: Justin Schuhmann
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
actions :lock, :unlock
|
||||
default_action :lock
|
||||
|
||||
attribute :section, kind_of: String
|
||||
attribute :returns, kind_of: [Integer, Array], default: 0
|
||||
|
||||
attr_accessor :exists
|
||||
37
cookbooks/iis/resources/site.rb
Normal file
37
cookbooks/iis/resources/site.rb
Normal file
@@ -0,0 +1,37 @@
|
||||
#
|
||||
# Author:: Seth Chisamore (<schisamo@chef.io>)
|
||||
# Cookbook Name:: iis
|
||||
# Resource:: site
|
||||
#
|
||||
# Copyright:: 2011, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
actions :add, :delete, :start, :stop, :restart, :config
|
||||
default_action :add
|
||||
|
||||
attribute :site_name, kind_of: String, name_attribute: true
|
||||
attribute :site_id, kind_of: Integer
|
||||
attribute :port, kind_of: Integer, default: 80
|
||||
attribute :path, kind_of: String
|
||||
attribute :protocol, kind_of: Symbol, default: :http, equal_to: [:http, :https]
|
||||
attribute :host_header, kind_of: String, default: nil
|
||||
attribute :bindings, kind_of: String, default: nil
|
||||
attribute :application_pool, kind_of: String, default: nil
|
||||
attribute :options, kind_of: String, default: ''
|
||||
attribute :log_directory, kind_of: String, default: "#{node['iis']['pubroot']}\\logs\\LogFiles"
|
||||
attribute :log_period, kind_of: Symbol, default: :Daily, equal_to: [:Daily, :Hourly, :MaxSize, :Monthly, :Weekly]
|
||||
attribute :log_truncsize, kind_of: Integer, default: 1_048_576
|
||||
|
||||
attr_accessor :exists, :running
|
||||
32
cookbooks/iis/resources/vdir.rb
Normal file
32
cookbooks/iis/resources/vdir.rb
Normal file
@@ -0,0 +1,32 @@
|
||||
#
|
||||
# Author:: Justin Schuhmann (<jmschu02@gmail.com>)
|
||||
# Cookbook Name:: iis
|
||||
# Resource:: site
|
||||
#
|
||||
# Copyright:: Justin Schuhmann
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
actions :add, :delete, :config
|
||||
default_action :add
|
||||
|
||||
attribute :application_name, kind_of: String, name_attribute: true
|
||||
attribute :path, kind_of: String
|
||||
attribute :physical_path, kind_of: String
|
||||
attribute :username, kind_of: String, default: nil
|
||||
attribute :password, kind_of: String, default: nil
|
||||
attribute :logon_method, kind_of: Symbol, default: :ClearText, equal_to: [:Interactive, :Batch, :Network, :ClearText]
|
||||
attribute :allow_sub_dir_config, kind_of: [TrueClass, FalseClass], default: true
|
||||
|
||||
attr_accessor :exists
|
||||
Reference in New Issue
Block a user