Glassfish not started when installed via Chef Cookbook
-
27-12-2019 - |
Question
I am new to vagrant and chef. I spin up my Vm using Vagrant and provision it using Chef-solo. I add the cookbook for glassfish downloaded from opscode chef. Glassfish is installed, but not started. I have given in my vagrantfile
chef.add_recipe "glassfish::attribute_driven_domain"
chef.json = {
"glassfish" => {
"base_dir" => "/usr/local/glassfish",
"domains_dir" => "/usr/local/glassfish/glassfish/domains",
"domains" => {
"domain1" => {
"config" => {
"domain_name" => "domain1",
"admin_port" => 4848,
"username" => "root",
"password" => "admin",
"remote_access" => true
}
}
}
}
}
Solution
You only called the glassfish::attribute_driven_domain recipe. To create the domain you also have to call the glassfish::default recipe.
The glassfish::default recipe creates the domain.xlm template used as base for the Glassfish domain.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow