Chef recipe issue with multiple parameters


So here is what i am trying to do .

I have 4 services lets say war files i am trying to deploy to jboss .

Since the deploymnet to jboss is straight fwd the only parameters which will change for all these war file deployments is the war file name and one more parameter.

I am trying to write a generic recipe which will run and deploy a particular service ,the service name i want to pass in as a parameter also another env-name as parameter.

i know i can pass parameters by using env. variable but i am thinking to pick some kind of attributes from some where,

I am not sure how to do it other than passing a json from the chef-client -j which is again ugly and not possible

Maybe you have done this in past and have the solution already :0)

Thanks for your help