Created
May 21, 2010 19:54
-
-
Save rcreasey/409337 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 127.0.0.1 localhost localhost.localdomain | |
| 10.93.54.53 someserver.example.com someserver | |
| 10.93.55.250 filer5-dd | |
| 10.93.55.250 filer5-dd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default[:mount_aliases] = Array.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template "/etc/hosts" do | |
| source "hosts.erb" | |
| owner "root" | |
| group "root" | |
| mode 0644 | |
| backup false | |
| variables(:mount_aliases => node[:mount_aliases]) | |
| not_if { node[:mount_aliases].empty? } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 127.0.0.1 localhost localhost.localdomain | |
| <%= node[:ipaddress] %> <%= node[:fqdn] %> <%= node[:hostname] %> | |
| <% @mount_aliases.each do |host| %> | |
| <%= host[:ip] %> <%= host[:names] %> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name "some role" | |
| description "blah blah" | |
| recipes "mounts" | |
| override_attributes( | |
| "mount_aliases" => [ | |
| {'ip' => '10.93.55.250', 'names' => 'filer5-dd'} | |
| ] | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment