daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jan 25th, 2016 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ###IIS Configuration for Windows #########
  3. apppoolname = node['iis_config']['apppool']
  4. apppoolname1 = node['iis_config']['apppool1']
  5.  
  6. username = node['iis_config']['username']
  7. password = node['iis_config']['password']
  8.  
  9. alis = node['iis_config']['alias']
  10. alias1 = node['iis_config']['alias1']
  11.  
  12.  
  13. path = node['iis_config']['physicalpath']
  14. path1 = node['iis_config']['physicalpath1']
  15.  
  16.  
  17.  
  18.  
  19. iis_pool '#{apppoolname}' do
  20.   runtime_version "2.0"
  21.   pipeline_mode :Classic
  22.   action :add
  23. end
  24.  
  25. iis_pool '#{apppoolname1}' do
  26.   runtime_version "2.0"
  27.   pipeline_mode :Classic
  28.   action :add
  29. end
  30.  
  31.  
  32. execute "Application pool identity" do
  33.     cwd "C://Windows//System32//inetsrv"
  34.     command "appcmd.exe set AppPool #{apppoolname} -processModel.IdentityType:SpecificUser"
  35. end
  36.  
  37. execute "Application pool identity" do
  38.     cwd "C://Windows//System32//inetsrv"
  39.     command "appcmd.exe set AppPool #{apppoolname} -processModel.UserName:\"#{username}\""
  40.    
  41. end  
  42.  
  43.  
  44.  
  45. execute "Application pool identity" do
  46.     cwd "C://Windows//System32//inetsrv"
  47.     command "appcmd.exe set AppPool #{apppoolname1} -processModel.IdentityType:SpecificUser"
  48.    
  49. end
  50. execute "Application pool identity" do
  51.     cwd "C://Windows//System32//inetsrv"
  52.     command "appcmd.exe set AppPool #{apppoolname1} -processModel.UserName:\"#{username}\""
  53.    
  54. end  
  55.  
  56.  
  57. iis_app 'Default Web Site' do
  58.   application_pool "#{apppoolname}"
  59.   path "/#{alis}"
  60.   physical_path "#{path}"
  61.  
  62. end
  63.  
  64. iis_app 'Default Web Site' do
  65.   application_pool "#{apppoolname1}"
  66.   path "/#{alias1}"
  67.   physical_path "#{path1}"
  68.  
  69. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top