]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/recipes/ssl.rb
Yet more rubucop cleanups
[chef.git] / cookbooks / apache / recipes / ssl.rb
index 83280244a8f1a66228835fe63ddf761d528f57ab..c857704025fe45a652ed63be398bf5a6836ea50d 100644 (file)
@@ -19,7 +19,7 @@
 
 certificate = node[:apache][:ssl][:certificate]
 
-node.default[:ssl][:certificates] = node[:ssl][:certificates] | [ certificate ]
+node.default[:ssl][:certificates] = node[:ssl][:certificates] | [certificate]
 
 include_recipe "apache"
 include_recipe "ssl"
@@ -30,11 +30,8 @@ end
 
 apache_module "ssl"
 
-template "/etc/apache2/conf.d/ssl" do
-  source "ssl.erb"
-  owner "root"
-  group "root"
-  mode 0644
+apache_conf "ssl" do
+  template "ssl.erb"
   variables :certificate => certificate
   notifies :reload, "service[apache2]"
 end