Skip to content

Commit

Permalink
Don't try to mount EBS volumes if they are not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Gruenewald committed Nov 26, 2014
1 parent e03e9cb commit ff867ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opsworks_initial_setup/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
default[:opsworks_initial_setup][:yum_dump_file] = File.join(Chef::CHEF_ROOT, "chef", "provider", "package", "yum-dump.py")
default[:opsworks_initial_setup][:yum_dump_lock_timeout] = 120

default[:opsworks_initial_setup][:autofs_map_file] = "/etc/auto.opsworks"
default[:opsworks_initial_setup][:autofs_map_file] = "/etc/auto.opsworks" if infrastructure_class?('ec2')

case node[:platform]
when 'redhat','centos','fedora','amazon'
Expand Down
6 changes: 4 additions & 2 deletions opsworks_initial_setup/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

include_recipe 'opsworks_initial_setup::sysctl'
include_recipe 'opsworks_initial_setup::limits'
include_recipe 'opsworks_initial_setup::bind_mounts'
include_recipe 'opsworks_initial_setup::vol_mount_point'
if infrastructure_class?('ec2')
include_recipe 'opsworks_initial_setup::bind_mounts'
include_recipe 'opsworks_initial_setup::vol_mount_point'
end
include_recipe 'opsworks_initial_setup::remove_landscape'
include_recipe 'opsworks_initial_setup::ldconfig'

Expand Down

0 comments on commit ff867ff

Please sign in to comment.