Skip to content

Commit 71de574

Browse files
author
jtimberman
committed
remote_file is deprecated for cookbook files
Chef commit: 8299049 Deprecates remote_file source from the cookbook itself, uses cookbook_file as the resource instead. Remote_file still used for retrieving files from an absolute URI.
1 parent 1193f67 commit 71de574

File tree

18 files changed

+26
-26
lines changed

18 files changed

+26
-26
lines changed

‎apache2/recipes/default.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
action:create
5757
end
5858

59-
remote_file"/usr/local/bin/apache2_module_conf_generate.pl"do
59+
cookbook_file"/usr/local/bin/apache2_module_conf_generate.pl"do
6060
source"apache2_module_conf_generate.pl"
6161
mode0755
6262
owner"root"

‎apt/recipes/cacher.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
action[:enable,:start]
2626
end
2727

28-
remote_file"/etc/apt-cacher/apt-cacher.conf"do
28+
cookbook_file"/etc/apt-cacher/apt-cacher.conf"do
2929
source"apt-cacher.conf"
3030
owner"root"
3131
group"root"
3232
mode0644
3333
notifies:restart,resources(:service=>"apt-cacher")
3434
end
3535

36-
remote_file"/etc/default/apt-cacher"do
36+
cookbook_file"/etc/default/apt-cacher"do
3737
source"apt-cacher"
3838
owner"root"
3939
group"root"

‎apt/recipes/proxy.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
action[:enable,:start]
2626
end
2727

28-
remote_file"/etc/apt-proxy/apt-proxy-v2.conf"do
28+
cookbook_file"/etc/apt-proxy/apt-proxy-v2.conf"do
2929
source"apt-proxy-v2.conf"
3030
owner"root"
3131
group"root"

‎couchdb/recipes/source.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
end
5757
end
5858

59-
remote_file"/etc/init.d/couchdb"do
59+
cookbook_file"/etc/init.d/couchdb"do
6060
source"couchdb.init"
6161
owner"root"
6262
group"root"

‎iptables/recipes/default.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
action:create
2929
end
3030

31-
remote_file"/usr/sbin/rebuild-iptables"do
31+
cookbook_file"/usr/sbin/rebuild-iptables"do
3232
source"rebuild-iptables"
3333
mode0755
3434
end

‎jira/recipes/default.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@
6969
owner"www-data"
7070
end
7171

72-
remote_file"#{node[:jira][:install_path]}/bin/startup.sh"do
72+
cookbook_file"#{node[:jira][:install_path]}/bin/startup.sh"do
7373
source"startup.sh"
7474
mode0755
7575
end
7676

77-
remote_file"#{node[:jira][:install_path]}/bin/catalina.sh"do
77+
cookbook_file"#{node[:jira][:install_path]}/bin/catalina.sh"do
7878
source"catalina.sh"
7979
mode0755
8080
end

‎munin/definitions/munin_plugin.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
plugin=params[:plugin] ? params[:plugin] : params[:name]
2626

2727
ifparams[:create_file]
28-
remote_file"#{params[:plugin_dir]}/#{params[:name]}"do
28+
cookbook_file"#{params[:plugin_dir]}/#{params[:name]}"do
2929
cookbook"munin"
3030
source"plugins/#{params[:name]}"
3131
owner"root"

‎munin/recipes/server.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
package"munin"
2626

27-
remote_file"/etc/cron.d/munin"do
27+
cookbook_file"/etc/cron.d/munin"do
2828
source"munin-cron"
2929
mode"0644"
3030
owner"root"

‎nagios/recipes/client.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
supports:restart=>true,:reload=>true
4141
end
4242

43-
remote_file"/usr/lib/nagios/plugins/check_mem.sh"do
43+
cookbook_file"/usr/lib/nagios/plugins/check_mem.sh"do
4444
source"plugins/check_mem.sh"
4545
owner"nagios"
4646
group"nagios"

‎nginx/recipes/source.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
notifies:restart,resources(:service=>"nginx"),:immediately
9191
end
9292

93-
remote_file"#{node[:nginx][:dir]}/mime.types"do
93+
cookbook_file"#{node[:nginx][:dir]}/mime.types"do
9494
source"mime.types"
9595
owner"root"
9696
group"root"

0 commit comments

Comments
(0)