]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ftp/recipes/default.rb
Simpligy configuration of port numbers in firewall rules
[chef.git] / cookbooks / ftp / recipes / default.rb
index 79e624ffaa1afd7da1e5c984bacc1141bed77989..14ab725a0e402495163c2c9bee4c0792fa78b00a 100644 (file)
@@ -1,8 +1,8 @@
 #
-# Cookbook Name:: FTP
+# Cookbook:: FTP
 # Recipe:: default
 #
-# Copyright 2018, OpenStreetMap Foundation
+# Copyright:: 2018, OpenStreetMap Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -26,14 +26,14 @@ template "/etc/vsftpd.conf" do
   source "vsftpd.conf.erb"
   owner "root"
   group "root"
-  mode 0o644
+  mode "644"
 end
 
 template "/etc/pam.d/vsftpd" do
   source "pam-vsftpd.erb"
   owner "root"
   group "root"
-  mode 0o644
+  mode "644"
 end
 
 service "vsftpd" do
@@ -49,6 +49,5 @@ firewall_rule "accept-ftp-tcp" do
   dest "fw"
   proto "tcp"
   dest_ports "ftp"
-  source_ports "-"
   helper "ftp"
 end