Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 71de5746f6f58574035f2c818ae24681dfb10a4c 1 parent 1193f67
@jtimberman jtimberman authored
View
2  apache2/recipes/default.rb
@@ -56,7 +56,7 @@
action :create
end
- remote_file "/usr/local/bin/apache2_module_conf_generate.pl" do
+ cookbook_file "/usr/local/bin/apache2_module_conf_generate.pl" do
source "apache2_module_conf_generate.pl"
mode 0755
owner "root"
View
4 apt/recipes/cacher.rb
@@ -25,7 +25,7 @@
action [ :enable, :start ]
end
-remote_file "/etc/apt-cacher/apt-cacher.conf" do
+cookbook_file "/etc/apt-cacher/apt-cacher.conf" do
source "apt-cacher.conf"
owner "root"
group "root"
@@ -33,7 +33,7 @@
notifies :restart, resources(:service => "apt-cacher")
end
-remote_file "/etc/default/apt-cacher" do
+cookbook_file "/etc/default/apt-cacher" do
source "apt-cacher"
owner "root"
group "root"
View
2  apt/recipes/proxy.rb
@@ -25,7 +25,7 @@
action [ :enable, :start ]
end
-remote_file "/etc/apt-proxy/apt-proxy-v2.conf" do
+cookbook_file "/etc/apt-proxy/apt-proxy-v2.conf" do
source "apt-proxy-v2.conf"
owner "root"
group "root"
View
2  couchdb/recipes/source.rb
@@ -56,7 +56,7 @@
end
end
-remote_file "/etc/init.d/couchdb" do
+cookbook_file "/etc/init.d/couchdb" do
source "couchdb.init"
owner "root"
group "root"
View
2  iptables/recipes/default.rb
@@ -28,7 +28,7 @@
action :create
end
-remote_file "/usr/sbin/rebuild-iptables" do
+cookbook_file "/usr/sbin/rebuild-iptables" do
source "rebuild-iptables"
mode 0755
end
View
4 jira/recipes/default.rb
@@ -69,12 +69,12 @@
owner "www-data"
end
-remote_file "#{node[:jira][:install_path]}/bin/startup.sh" do
+cookbook_file "#{node[:jira][:install_path]}/bin/startup.sh" do
source "startup.sh"
mode 0755
end
-remote_file "#{node[:jira][:install_path]}/bin/catalina.sh" do
+cookbook_file "#{node[:jira][:install_path]}/bin/catalina.sh" do
source "catalina.sh"
mode 0755
end
View
2  munin/definitions/munin_plugin.rb
@@ -25,7 +25,7 @@
plugin = params[:plugin] ? params[:plugin] : params[:name]
if params[:create_file]
- remote_file "#{params[:plugin_dir]}/#{params[:name]}" do
+ cookbook_file "#{params[:plugin_dir]}/#{params[:name]}" do
cookbook "munin"
source "plugins/#{params[:name]}"
owner "root"
View
2  munin/recipes/server.rb
@@ -24,7 +24,7 @@
package "munin"
-remote_file "/etc/cron.d/munin" do
+cookbook_file "/etc/cron.d/munin" do
source "munin-cron"
mode "0644"
owner "root"
View
2  nagios/recipes/client.rb
@@ -40,7 +40,7 @@
supports :restart => true, :reload => true
end
-remote_file "/usr/lib/nagios/plugins/check_mem.sh" do
+cookbook_file "/usr/lib/nagios/plugins/check_mem.sh" do
source "plugins/check_mem.sh"
owner "nagios"
group "nagios"
View
2  nginx/recipes/source.rb
@@ -90,7 +90,7 @@
notifies :restart, resources(:service => "nginx"), :immediately
end
-remote_file "#{node[:nginx][:dir]}/mime.types" do
+cookbook_file "#{node[:nginx][:dir]}/mime.types" do
source "mime.types"
owner "root"
group "root"
View
4 openldap/recipes/auth.rb
@@ -43,7 +43,7 @@
group "root"
end
-remote_file "/etc/nsswitch.conf" do
+cookbook_file "/etc/nsswitch.conf" do
source "nsswitch.conf"
mode 0644
owner "root"
@@ -53,7 +53,7 @@
end
%w{ account auth password session }.each do |pam|
- remote_file "/etc/pam.d/common-#{pam}" do
+ cookbook_file "/etc/pam.d/common-#{pam}" do
source "common-#{pam}"
mode 0644
owner "root"
View
6 openldap/recipes/server.rb
@@ -20,7 +20,7 @@
case node[:platform]
when "debian","ubuntu"
- remote_file "/var/cache/local/preseeding/slapd.seed" do
+ cookbook_file "/var/cache/local/preseeding/slapd.seed" do
source "slapd.seed"
mode 0600
owner "root"
@@ -32,7 +32,7 @@
action :upgrade
end
-remote_file "/var/cache/local/preseeding/slapd.seed" do
+cookbook_file "/var/cache/local/preseeding/slapd.seed" do
source "slapd.seed"
mode 0600
owner "root"
@@ -47,7 +47,7 @@
action :upgrade
end
-remote_file "#{node[:openldap][:ssl_dir]}/#{node[:openldap][:server]}.pem" do
+cookbook_file "#{node[:openldap][:ssl_dir]}/#{node[:openldap][:server]}.pem" do
source "ssl/#{node[:openldap][:server]}.pem"
mode 0644
owner "root"
View
2  perl/recipes/default.rb
@@ -44,7 +44,7 @@
mode 0750
end
-remote_file "CPAN-Config.pm" do
+cookbook_file "CPAN-Config.pm" do
case node[:platform]
when "centos","redhat"
path "/usr/lib/perl5/5.8.8/CPAN/Config.pm"
View
2  php/recipes/php5.rb
@@ -26,7 +26,7 @@
include_recipe "php::module_pgsql"
include_recipe "php::pear"
-remote_file value_for_platform([ "centos", "redhat", "suse" ] => {"default" => "/etc/php.ini"}, "default" => "/etc/php5/apache2/php.ini") do
+cookbook_file value_for_platform([ "centos", "redhat", "suse" ] => {"default" => "/etc/php.ini"}, "default" => "/etc/php5/apache2/php.ini") do
source "apache2-php5.ini"
owner "root"
group "root"
View
2  rsyslog/recipes/default.rb
@@ -26,7 +26,7 @@
action [:enable, :start]
end
-remote_file "/etc/default/rsyslog" do
+cookbook_file "/etc/default/rsyslog" do
source "rsyslog.default"
owner "root"
group "root"
View
2  runit/recipes/default.rb
@@ -54,7 +54,7 @@
end
if node[:platform] =~ /ubuntu/i && node[:platform_version].to_f <= 8.04
- remote_file "/etc/event.d/runsvdir" do
+ cookbook_file "/etc/event.d/runsvdir" do
source "runsvdir"
mode 0644
notifies :run, resources(:execute => "start-runsvdir"), :immediately
View
2  sbuild/recipes/default.rb
@@ -71,7 +71,7 @@
end
end
-remote_file "/usr/local/bin/schroot_update.sh" do
+cookbook_file "/usr/local/bin/schroot_update.sh" do
source "schroot_update.sh"
owner "root"
group "root"
View
8 tomcat6/recipes/default.rb
@@ -115,7 +115,7 @@
# package "tomcat6-admin-webapps"
- r = remote_file "/tmp/JVM-MANAGEMENT-MIB.mib" do
+ r = cookbook_file "/tmp/JVM-MANAGEMENT-MIB.mib" do
source "JVM-MANAGEMENT-MIB.mib"
mode 0755
owner "root"
@@ -153,21 +153,21 @@
end
-remote_file "/etc/init.d/tomcat6" do
+cookbook_file "/etc/init.d/tomcat6" do
source "tomcat6"
mode 0755
owner "root"
group "root"
end
-remote_file "/usr/bin/dtomcat6" do
+cookbook_file "/usr/bin/dtomcat6" do
source "dtomcat6"
mode 0755
owner "root"
group "root"
end
-remote_file File.join(node[:tomcat6][:dir],"logging.properties") do
+cookbook_file File.join(node[:tomcat6][:dir],"logging.properties") do
source "logging.properties"
mode 0644
owner "root"
Please sign in to comment.
Something went wrong with that request. Please try again.