hoeggsoftware / mule-cookbook

Chef cookbook for installing Mule ESB
Other
5 stars 8 forks source link

Please provide default recipe file. #22

Open akulbe opened 7 years ago

akulbe commented 7 years ago

It would be great if there were a default recipe for this cookbook. Something like this?

Cookbook Name:: mule Recipe:: default

include_recipe 'java'

group 'mule' do end

user 'mule' do supports manage_home: true shell '/bin/bash' home '/home/mule' comment 'Mule user' group 'mule' end

mule_instance "mule-esb" do version '3.8.1' user 'mule' group 'mule' end

akulbe commented 7 years ago

I'm still unsure if a

`group mule do

end `

block is needed before the user creation, or not.

hoeggco commented 7 years ago

I think you have to have the group before the user, because the user is a member of the group. However, we should probably protect this part with an attribute that indicates whether or not to create the user. Same thing for installing the JDK.

On Sat, Nov 5, 2016 at 7:51 AM, Aaron Kulbe notifications@github.com wrote:

I'm still unsure if a

`group mule do

end `

block is needed before the user creation, or not.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hoeggsoftware/mule-cookbook/issues/22#issuecomment-258616507, or mute the thread https://github.com/notifications/unsubscribe-auth/ANkF3eHocnSmYrvG8S16LxyzuavDTYp8ks5q7JgJgaJpZM4KqR7Y .

akulbe commented 7 years ago

Shouldn't the JDK be installed no matter what? (since it's a dependency for Mulesoft) or are you just wanting it to be idempotent, in case the user already has a JDK in place?

hoeggco commented 7 years ago

Right, the user and the JDK might already be there

On Nov 5, 2016 8:06 AM, "Aaron Kulbe" notifications@github.com wrote:

Shouldn't the JDK be installed no matter what? (since it's a requirement of Mulesoft) or are you just wanting it to be idempotent, in case the user already has a JDK in place?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hoeggsoftware/mule-cookbook/issues/22#issuecomment-258617417, or mute the thread https://github.com/notifications/unsubscribe-auth/ANkF3Yv2XbrrICYvA1YjdD5EMNCt-zWHks5q7JtggaJpZM4KqR7Y .

rhoegg commented 6 years ago

I could see making a default recipe that would be friendly. Either provide attributes that allow you to enable the creation of the user, group, and JDK, or try to detect them and create if missing.

Do either of these options seem intuitive? I'd like to align this cookbook with the way people expect from using other cookbooks.

Padgett commented 6 years ago

@rhoegg It's normal to have a default recipe that does everything needed for a "standard" setup using a sane set of default attributes. Users that need a special setup can run the included recipes individually and set attributes as needed.