Skip to content

Commit

Permalink
hostname fix, now works on EC2
Browse files Browse the repository at this point in the history
  • Loading branch information
boorad committed Dec 5, 2013
1 parent 99c29a4 commit e8dffb2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 1 addition & 4 deletions chef/cookbooks/mapr/recipes/dns.rb
Expand Up @@ -10,10 +10,7 @@
action :remove
end


# nodes in cluster
#nodes = search(:node, "*:*")

# /etc/hosts entries
node[:mapr][:nodes].each do |n|

hostsfile_entry n[:ip] do
Expand Down
8 changes: 8 additions & 0 deletions chef/cookbooks/mapr/recipes/hostname.rb
@@ -0,0 +1,8 @@
#
# Cookbook Name:: mapr
# Recipe:: hostname
#
# Copyright 2013, MapR Technologies
#

node.default[:set_fqdn] = node[:mapr][:node][:fqdn]
3 changes: 2 additions & 1 deletion chef/roles/mapr_base.rb
Expand Up @@ -3,8 +3,9 @@
run_list(
"role[java]",
"recipe[ntp]",
"recipe[hostname]",
"recipe[iptables]",
"recipe[mapr::hostname]",
"recipe[hostname]",
"recipe[mapr::user_mapr]",
"recipe[mapr::dns]",
"recipe[mapr::ulimit]",
Expand Down

0 comments on commit e8dffb2

Please sign in to comment.