Commit 5c8e8048 authored by Etienne Charlier's avatar Etienne Charlier
Browse files

fixes

parent f58dd55c
......@@ -8,14 +8,9 @@
#
include_recipe 'apt::cacher-client'
include_recipe 'java'
#include_recipe 'rabbitmq'
#include_recipe 'rabbitmq::mgmt_console'
include_recipe 'maven'
include_recipe 'etcd'
#node.default['rabbitmq']['use_distro_version']= true
paasage_config_dir = '/etc/paasage'
cdo_server_hostname = node['paasage']['cdo_server']['hostname']
cdo_server_port = node['paasage']['cdo_server']['port']
......
......@@ -33,31 +33,31 @@ end
if node.attribute?('installation_dir')
installation_dir = "#{node[:reasoner][:installation_dir]}"
installation_dir = node[:reasoner][:installation_dir]
else
installation_dir = "/home/#{install_user}/solvers/app"
end
if node.attribute?('config_dir')
config_dir = "#{node[:reasoner][:config_dir]}"
config_dir = node[:reasoner][:config_dir]
else
config_dir = "/home/#{install_user}/#{application_name}/config"
end
directory "#{installation_dir}" do
directory installation_dir do
action :create
mode "0755"
owner "#{install_user}"
group "#{install_user}"
owner install_user
group install_user
recursive true
end
directory "#{config_dir}" do
directory config_dir do
action :create
mode "0755"
owner "#{install_user}"
group "#{install_user}"
owner install_user
group install_user
recursive true
end
......@@ -74,8 +74,8 @@ end
# Download cmpl
remote_file "/tmp/cpsolver-companion-libraries.tgz" do
source "http://jenkins.paasage.cetic.be/repository/cpsolver-companion-libraries.tgz"
owner "#{install_user}"
group "#{install_user}"
owner install_user
group install_user
mode "0644"
action :create_if_missing
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment