Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execute "Install Necessary Libraries" do
- user "root"
- command "apt-get install -y openjdk-7-jdk unzip"
- end
- remote_file "/tmp/lucee-4.2.1.008-pl0-linux-x64-installer.run" do
- source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/lucee-4.5.1.022-pl1-linux-x64-installer.run"
- mode 0755
- action :create_if_missing
- end
- bash "Install lucee" do
- user "root"
- code <<-EOH
- /tmp/lucee-4.5.1.022-pl1-linux-x64-installer.run --mode unattended --installconn false --luceepass <redacted>
- EOH
- end
- template "/opt/lucee/tomcat/bin/setenv.sh" do
- source "setenv.sh.erb"
- mode 0600
- end
- template "/opt/lucee/tomcat/conf/server.xml" do
- source "server.xml"
- mode 0600
- end
- template "/opt/lucee/tomcat/conf/web.xml" do
- source "web.xml"
- mode 0600
- end
- template "/opt/lucee/tomcat/conf/lucee-server.xml" do
- source "lucee-server.xml"
- mode 0600
- end
- directory "/opt/lucee/lib/lucee-server/context" do
- action :create
- recursive true
- end
- bash "Extract FusionReactor" do
- user "root"
- code <<-EOH
- unzip /tmp/fr2.zip -d /opt
- EOH
- end
- remote_file "/opt/lucee/lib/lucee-server/context/lib/redis-cache.jar" do
- source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/redis-cache.jar"
- mode 0755
- action :create_if_missing
- end
- remote_file "/opt/lucee/lib/lucee-server/context/lib/jedis-2.1.0.jar" do
- source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/jedis-2.1.0.jar"
- mode 0755
- action :create_if_missing
- end
- remote_file "/opt/lucee/lib/lucee-server/context/lib/commons-pool-1.5.5.jar" do
- source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/commons-pool-1.5.5.jar"
- mode 0755
- action :create_if_missing
- end
- directory "/opt/lucee/lib/lucee-server/context/extensions/DB4F4F008C7412D90AFCD10A37878DA7" do
- action :create
- recursive true
- end
- remote_file "/opt/lucee/lib/lucee-server/context/extensions/DB4F4F008C7412D90AFCD10A37878DA7/0.3.1.201402140901.rep" do
- source "https://s3-ap-southeast-2.amazonaws.com/<redacted>/lucee/0.3.1.201402140901.rep"
- mode 0755
- action :create_if_missing
- end
- service "lucee_ctl" do
- action :restart
- supports :start => true, :stop => true, :restart => true
- end
- bash "Ping lucee" do
- code <<-EOH
- curl -H "Host: <redacted>" http://127.0.0.1/
- EOH
- end
- template "/opt/WEB-INF/context/admin/cdriver/RedisCache.cfc" do
- source "RedisCache.cfc"
- mode 0600
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement