supports :manage_home => manage_home
end
- remote_directory user_home do
+ remote_directory "/home/#{name}" do
+ path user_home
source name.to_s
owner name.to_s
group name.to_s
#
define :apt_source do
- if node.apt.sources.include?(params[:name])
+ if node[:apt][:sources].include?(params[:name])
source_action = :create
if params[:key]
end
end
-if node[:postgresql][:clusters]["9.1/main"]
+if node[:postgresql][:clusters][:"9.1/main"]
postgresql_user "apis" do
cluster "9.1/main"
end
group "apis"
repository details[:repository]
revision details[:revision]
- database_port node[:postgresql][:clusters]["9.1/main"][:port]
+ database_port node[:postgresql][:clusters][:"9.1/main"][:port]
database_name database_name
database_username "apis"
run_migrations true
group "owl"
mode 0664
notifies :run, "execute[/srv/owl.openstreetmap.org/openstreetmap-watch-list/rails/Gemfile]"
- only_if { node[:postgresql][:clusters]["9.1/main"] }
+ only_if { node[:postgresql][:clusters][:"9.1/main"] }
end
apache_site "owl.openstreetmap.org" do
database "gis"
end
-tile_uid = node[:etc][:passwd]["tile"][:uid]
-www_data_gid = node[:etc][:group]["www-data"][:gid]
+tile_uid = node[:etc][:passwd][:"tile"][:uid]
+www_data_gid = node[:etc][:group][:"www-data"][:gid]
ruby_block node[:tile][:node_file] do
block do