wharton / chef-coldfusion10 Goto Github PK
View Code? Open in Web Editor NEWChef cookbook to install ColdFusion 10.
Chef cookbook to install ColdFusion 10.
I'm having a problem running this cookbook on AWS through Packer / chef-solo. i have a feeling it's a problem with chef, but this is my first chef deploy so i'm just guessing. I'm calling it like this (that line into is destined for a Jenkins job)
/opt/packer/packer build coldfusion10.json
here's the json file
{
"builders": [{
"type": "amazon-ebs",
"region": "ap-southeast-2",
"source_ami": "ami-83e08db9",
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ami_name": "coldfusion10-web-{{timestamp}}",
"ami_description": "RHEL6.6 + Apache, ColdFusion, etc",
"subnet_id": "subnet-xxxxx",
"vpc_id": "vpc-xxxxx",
"run_tags": {
"role": "coldfusion"
}
}],
"provisioners": [{
"type": "chef-solo",
"cookbook_paths": ["cookbooks"],
"run_list": [
"recipe[coldfusion10::standalone]"
]
}]
}
the recipe starts an instance successfully with RedHat 6.6 or 7, but fails at the first template call like this
amazon-ebs: Recipe: coldfusion10::install
amazon-ebs: * directory[/opt/coldfusion10] action create
amazon-ebs: - create new directory /opt/coldfusion10
amazon-ebs: - change mode from '' to '0755'
amazon-ebs: - change owner from '' to 'nobody'
amazon-ebs: - restore selinux security context
amazon-ebs: * template[/var/chef/cache/cf10-installer.properties] action create
amazon-ebs:
amazon-ebs: ================================================================================
amazon-ebs: Error executing action `create` on resource 'template[/var/chef/cache/cf10-installer.properties]'
amazon-ebs: ================================================================================
amazon-ebs:
amazon-ebs: RuntimeError
amazon-ebs: ------------
amazon-ebs: File templates/default/cf10-installer.properties.erb does not exist for cookbook coldfusion10
amazon-ebs:
amazon-ebs: Resource Declaration:
amazon-ebs: ---------------------
amazon-ebs: # In /tmp/packer-chef-solo/cookbooks-0/chef-coldfusion10/recipes/install.rb
amazon-ebs:
amazon-ebs: 42: template "#{Chef::Config['file_cache_path']}/cf10-installer.properties" do
amazon-ebs: 43: source "cf10-installer.properties.erb"
amazon-ebs: 44: owner node['cf10']['installer']['runtimeuser']
amazon-ebs: 45: mode 00644
amazon-ebs: 46: variables(
amazon-ebs: 47: :admin_password => pwds['admin_password'],
amazon-ebs: 48: :jetty_password => pwds['jetty_password'],
amazon-ebs: 49: :rds_password => pwds['rds_password']
amazon-ebs: 50: )
amazon-ebs: 51: not_if { File.exists?("#{node['cf10']['installer']['install_folder']}/license.html") }
amazon-ebs: 52: end
amazon-ebs: 53:
amazon-ebs:
amazon-ebs: Compiled Resource:
amazon-ebs: ------------------
amazon-ebs: # Declared in /tmp/packer-chef-solo/cookbooks-0/chef-coldfusion10/recipes/install.rb:42:in `from_file'
amazon-ebs:
amazon-ebs: template("/var/chef/cache/cf10-installer.properties") do
amazon-ebs: action "create"
amazon-ebs: retries 0
amazon-ebs: retry_delay 2
amazon-ebs: default_guard_interpreter :default
amazon-ebs: path "/var/chef/cache/cf10-installer.properties"
amazon-ebs: backup 5
amazon-ebs: atomic_update true
amazon-ebs: source "cf10-installer.properties.erb"
amazon-ebs: variables {:admin_password=>"vagrant", :jetty_password=>"vagrant", :rds_password=>"vagrant"}
amazon-ebs: declared_type :template
amazon-ebs: cookbook_name :coldfusion10
amazon-ebs: recipe_name "install"
amazon-ebs: owner "nobody"
amazon-ebs: mode 420
amazon-ebs: not_if { #code block }
amazon-ebs: end
amazon-ebs:
amazon-ebs:
amazon-ebs: Running handlers:
amazon-ebs: [2015-02-09T19:47:55-05:00] ERROR: Running exception handlers
amazon-ebs: Running handlers complete
amazon-ebs: [2015-02-09T19:47:55-05:00] ERROR: Exception handlers complete
amazon-ebs: [2015-02-09T19:47:55-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
amazon-ebs: Chef Client failed. 1 resources updated in 1.645054601 seconds
amazon-ebs: [2015-02-09T19:47:55-05:00] ERROR: template[/var/chef/cache/cf10-installer.properties] (coldfusion10::install line 42) had an error: RuntimeError: File templates/default/cf10-installer.properties.erb does not exist for cookbook coldfusion10
amazon-ebs: [2015-02-09T19:47:55-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
The only similar problem i've found is one guy who seems to have been having the same problem with packer and chef-solo for quite a while. i can't believe there are only two of us though - maybe he and i both have the same config problem.
https://tickets.opscode.com/browse/COOK-3501
https://tickets.opscode.com/browse/COOK-3961
did this and it fixed the issue:
chmod 777 /opt/coldfusion10/cfusion/wwwroot/WEB-INF/cfclasses/
maybe add this:
execute "chmod 777 /opt/coldfusion10/cfusion/wwwroot/WEB-INF/cfclasses/"
#not sure how do check if this has been run
end
Hey,
thanks for your work! Are there any plans to write a chef recipe for coldfusion 11 or 2016?
Regards
Hajo
First, thank you for all the work on this chef cookbook. We are evaluating this recipe in the context of a vagrant/virtualbox machine with private networking on the virtual box.
We've run into a snag however when using the coldfusion10::apache recipe. It seems that after provisioning this, we are no longer able to stay connected to an ssh session. The "vagrant ssh" command is successful and we get logged in to the box but then the box immediately logs us out with "connection closed" message.
Is there anything that comes to mind what might be causing an issue when using the apache config? Is it possible the ssl keys might be conflicting or something and that breaks an ability for the Vagrant user to log in?
Thanks in advance for your insight.
Additionally, I've provided a debug output of the ssh session when connecting to the vagrant box.
https://gist.github.com/einsty/5671109
While submitting a PR, the TravisCI fails to pass, due to it failing to install rake
PR: #22
TravisCI error:
https://travis-ci.org/wharton/chef-coldfusion10/jobs/116406498
Is it possible to set "Timeout Requests after seconds" during installation with cf-coldfusion10? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.