Advertisement
Guest User

lucee.rb

a guest
Aug 22nd, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. execute "Install Necessary Libraries" do
  2. user "root"
  3. command "apt-get install -y openjdk-7-jdk unzip"
  4. end
  5.  
  6.  
  7. remote_file "/tmp/lucee-4.2.1.008-pl0-linux-x64-installer.run" do
  8. source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/lucee-4.5.1.022-pl1-linux-x64-installer.run"
  9. mode 0755
  10. action :create_if_missing
  11. end
  12.  
  13.  
  14. bash "Install lucee" do
  15. user "root"
  16. code <<-EOH
  17. /tmp/lucee-4.5.1.022-pl1-linux-x64-installer.run --mode unattended --installconn false --luceepass <redacted>
  18. EOH
  19. end
  20.  
  21.  
  22. template "/opt/lucee/tomcat/bin/setenv.sh" do
  23. source "setenv.sh.erb"
  24. mode 0600
  25. end
  26.  
  27.  
  28. template "/opt/lucee/tomcat/conf/server.xml" do
  29. source "server.xml"
  30. mode 0600
  31. end
  32.  
  33.  
  34. template "/opt/lucee/tomcat/conf/web.xml" do
  35. source "web.xml"
  36. mode 0600
  37. end
  38.  
  39.  
  40. template "/opt/lucee/tomcat/conf/lucee-server.xml" do
  41. source "lucee-server.xml"
  42. mode 0600
  43. end
  44.  
  45.  
  46. directory "/opt/lucee/lib/lucee-server/context" do
  47. action :create
  48. recursive true
  49. end
  50.  
  51.  
  52. bash "Extract FusionReactor" do
  53. user "root"
  54. code <<-EOH
  55. unzip /tmp/fr2.zip -d /opt
  56. EOH
  57. end
  58.  
  59.  
  60. remote_file "/opt/lucee/lib/lucee-server/context/lib/redis-cache.jar" do
  61. source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/redis-cache.jar"
  62. mode 0755
  63. action :create_if_missing
  64. end
  65.  
  66.  
  67. remote_file "/opt/lucee/lib/lucee-server/context/lib/jedis-2.1.0.jar" do
  68. source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/jedis-2.1.0.jar"
  69. mode 0755
  70. action :create_if_missing
  71. end
  72.  
  73.  
  74. remote_file "/opt/lucee/lib/lucee-server/context/lib/commons-pool-1.5.5.jar" do
  75. source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/commons-pool-1.5.5.jar"
  76. mode 0755
  77. action :create_if_missing
  78. end
  79.  
  80.  
  81. directory "/opt/lucee/lib/lucee-server/context/extensions/DB4F4F008C7412D90AFCD10A37878DA7" do
  82. action :create
  83. recursive true
  84. end
  85.  
  86.  
  87. remote_file "/opt/lucee/lib/lucee-server/context/extensions/DB4F4F008C7412D90AFCD10A37878DA7/0.3.1.201402140901.rep" do
  88. source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/0.3.1.201402140901.rep"
  89. mode 0755
  90. action :create_if_missing
  91. end
  92.  
  93.  
  94. service "lucee_ctl" do
  95. action :restart
  96. supports :start => true, :stop => true, :restart => true
  97. end
  98.  
  99.  
  100. bash "Ping lucee" do
  101. code <<-EOH
  102. curl -H "Host: <redacted>" http://127.0.0.1/
  103. EOH
  104. end
  105.  
  106.  
  107. template "/opt/WEB-INF/context/admin/cdriver/RedisCache.cfc" do
  108. source "RedisCache.cfc"
  109. mode 0600
  110. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement