default_action :create
property :name, String
+property :aliases, [String, Array], :default => []
action :create do
- directory "/srv/imagery/#{name}" do
+ directory "/srv/#{name}" do
owner "root"
group "root"
mode 0755
nginx_site name do
template "nginx_imagery.conf.erb"
directory "/srv/imagery/#{name}"
+ restart_nginx false
variables new_resource.to_hash
end
end
+
+def after_created
+ notifies :restart, "service[nginx]"
+end