Guest User

Untitled

a guest
May 27th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. # With mod_authn_host disabled...
  2.  
  3. include_recipe "apache2::mod_status"
  4. include_recipe "apache2::mod_alias"
  5. include_recipe "apache2::mod_auth_basic"
  6. include_recipe "apache2::mod_authn_file"
  7. include_recipe "apache2::mod_authz_default"
  8. include_recipe "apache2::mod_authz_groupfile"
  9. include_recipe "apache2::mod_authz_host"
  10. include_recipe "apache2::mod_authz_user"
  11. include_recipe "apache2::mod_autoindex"
  12. include_recipe "apache2::mod_dir"
  13. include_recipe "apache2::mod_env"
  14. include_recipe "apache2::mod_mime"
  15. include_recipe "apache2::mod_negotiation"
  16. include_recipe "apache2::mod_setenvif"
  17.  
  18. execute "a2enmod #{params[:name]}" do
  19. command "/usr/sbin/a2enmod #{params[:name]}"
  20. notifies :restart, resources(:service => "apache2")
  21. Chef::Log.error("#{node[:apache_dir]}/mods-enabled/#{params[:name]}.load")
  22. not_if do File.symlink?("#{node[:apache_dir]}/mods-enabled/#{params[:name]}.load") end
  23. end
  24.  
  25. [Wed, 19 Nov 2008 00:33:19 +0000] INFO: Starting Chef Run
  26. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/alias.load
  27. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  28. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/auth_basic.load
  29. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  30. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/authn_file.load
  31. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  32. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/authz_default.load
  33. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  34. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/authz_groupfile.load
  35. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  36. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/authz_host.load
  37. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: false
  38. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/authz_user.load
  39. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  40. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/autoindex.load
  41. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  42. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/dir.load
  43. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  44. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/env.load
  45. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  46. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/mime.load
  47. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  48. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/negotiation.load
  49. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  50. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/setenvif.load
  51. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  52. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: /etc/apache2/mods-enabled/setenvif.load
  53. [Wed, 19 Nov 2008 00:33:22 +0000] ERROR: WTF: true
  54. [Wed, 19 Nov 2008 00:33:23 +0000] INFO: Ran execute[apt-get-update] successfully
  55. [Wed, 19 Nov 2008 00:33:24 +0000] INFO: Chef Run complete in 5.555302 seconds
  56.  
  57. # Notice, no enabling of authz_host
Add Comment
Please, Sign In to add comment