Skip to content

Commit

Permalink
move java config into cluster manifest file, and generated node manif…
Browse files Browse the repository at this point in the history
…est files
  • Loading branch information
boorad committed Dec 5, 2013
1 parent d4015af commit 226eae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions chef/roles/java.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
"recipe[java::oracle]"
)
default_attributes(
:java => {
:oracle => {
"accept_oracle_download_terms" => true
}
}

)
6 changes: 5 additions & 1 deletion fabric/manifests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def generate():
n = node["host"]
print "generating manifests for %s" % n
m = {'run_list' : run_list(node),
'mapr' : mapr(c, node)}
'mapr' : mapr(c, node),
'java' : java(c)}
out = open("%s_manifest.json" % n, 'w')
out.write(json.dumps(m))
out.close()
Expand Down Expand Up @@ -55,6 +56,9 @@ def mapr(c, n):
'groups' : groups(c)}
return ret

def java(c):
return c["java"]

def nodes(c):
ret = []
for n in c["mapr"]["nodes"]:
Expand Down

0 comments on commit 226eae2

Please sign in to comment.