Always use strings for permissions

This commit is contained in:
James Barnett 2017-08-21 16:12:02 -05:00
parent b8288b3441
commit 01d320cb76
8 changed files with 14 additions and 14 deletions

View File

@ -14,12 +14,12 @@ package 'openjdk-6-jdk'
directory node[:apache_continuum][:install_dir] do
owner 'root'
group 'root'
mode 0644
mode '0644'
end
remote_file "#{Chef::Config[:file_cache_path]}/#{node[:apache_continuum][:tar]}" do
source "#{node[:apache_continuum][:download_url]}/#{node[:apache_continuum][:tar]}"
mode 0644
mode '0644'
end
execute "extract apache continum" do

View File

@ -20,7 +20,7 @@ end
cookbook_file '/tmp/chatbot.zip' do
source 'chatbot/chatbot.zip'
mode 0700
mode '0700'
end
execute 'unzip chatbot' do

View File

@ -14,12 +14,12 @@ files_path = File.join(Chef::Config[:file_cache_path], 'cookbooks', 'metasplo
remote_file "#{Chef::Config[:file_cache_path]}/#{drupal_tar}" do
source "#{node[:drupal][:download_url]}/#{drupal_tar}"
mode 00644
mode '0644'
end
remote_file "#{Chef::Config[:file_cache_path]}/#{coder_tar}" do
source "#{node[:drupal][:download_url]}/#{coder_tar}"
mode 00644
mode '0644'
end
directory node[:drupal][:install_dir] do

View File

@ -10,12 +10,12 @@ end
template '/etc/knockd.conf' do
source 'knockd/knockd.conf.erb'
mode 0600
mode '0600'
end
cookbook_file '/etc/default/knockd' do
source 'knockd/knockd'
mode 0600
mode '0600'
end
service 'knockd' do

View File

@ -28,12 +28,12 @@ end
remote_file "#{Chef::Config[:file_cache_path]}/#{php_tar}" do
source "#{node[:php545][:download_url]}/#{php_tar}"
mode 0644
mode '0644'
end
remote_file "#{Chef::Config[:file_cache_path]}/libxml29_compat.patch" do
source "https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt"
mode 0644
mode '0644'
end
execute "extract php" do

View File

@ -12,7 +12,7 @@ proftpd_tar = 'proftpd-1.3.5.tar.gz'
remote_file "#{Chef::Config[:file_cache_path]}/#{proftpd_tar}" do
source "#{node[:proftpd][:download_url]}/#{proftpd_tar}"
mode 0644
mode '0644'
end
execute "extract proftpd" do

View File

@ -12,7 +12,7 @@ include_recipe 'metasploitable::nodejs'
package 'git'
directory '/opt/readme_app' do
mode 0644
mode '0644'
end
bash "clone the readme app and install gems" do
@ -24,12 +24,12 @@ end
template '/opt/readme_app/start.sh' do
source 'readme_app/start.sh.erb'
mode 0700
mode '0700'
end
cookbook_file '/etc/init/readme_app.conf' do
source 'readme_app/readme_app.conf'
mode 0644
mode '0644'
end
service 'readme_app' do

View File

@ -6,7 +6,7 @@
cookbook_file '/etc/ssh/sshd_config' do
source 'sshd/sshd_config'
mode 0644
mode '0644'
end
service 'ssh' do