Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PaaSage
deployment_scripts
Commits
5c8e8048
Commit
5c8e8048
authored
Mar 15, 2016
by
Etienne Charlier
Browse files
fixes
parent
f58dd55c
Changes
2
Hide whitespace changes
Inline
Side-by-side
site-cookbooks/paasage/recipes/default.rb
View file @
5c8e8048
...
...
@@ -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'
]
...
...
site-cookbooks/reasoner/recipes/cp_solver.rb
View file @
5c8e8048
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment