Thank you.
For testing purposes, I always set up virtual test machines and tinker
until I get it right; much
quicker than kickstarting real boxes, especially if the boxes are
remote.
Me too.
I was just wondering if there was a way to test for a SNIPPET file. I did a quick search through the documentation on cobbler trac but didn't see anything.
Regards,
Joe
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Terry McIntyre Sent: Friday, January 28, 2011 2:55 PM To: cobbler mailing list Subject: Re: what happens if a snippet doesn't exist?
I'm going on memory here, I think it keeps on going if the snippet does not exist.
For testing purposes, I always set up virtual test machines and tinker until I get it right; much quicker than kickstarting real boxes, especially if the boxes are remote.
On Jan 28, 2011, at 5:40 PM, Joe Linoff wrote:
Hi Folks:
I have a kickstart template step where I customize the users on each system like this:
# default users for all systems groupadd -g 2001 admin useradd --gid 2001 --uid 2001 --create-dir --shell /bin/bash --password 'sxdSJWdd/lka' admin
## Setup the individual users for this specific machine. #set local_user_setup = 'users/' + $getVar($name) $SNIPPET(local_user_setup)
What happens if the users/$name snippet doesn't exist?
Will the kickstart abort?
Can I do a file check to test for existence in the template?
Best regards,
Joe
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler