Open akulbe opened 7 years ago
I'm still unsure if a
`group mule do
end `
block is needed before the user creation, or not.
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 .
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?
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 .
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.
@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.
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