RHEL 6.4 Cobbler 2.2.3 I have a kickstart as follows:
# this file intentionally left blank # admins: edit it as you like, or leave it blank for non-interactive install $SNIPPET('testit') The snippet is as follows:
#set $snipname='SDO_' + $stringname + '_snippet'
When I try to generate the kickstart from a profile, I get
# this file intentionally left blank # admins: edit it as you like, or leave it blank for non-interactive install $SNIPPET('testit')
What I doing wrong that the snippet is not being executed?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Stuart J. Newman Engineer 4; Systems Solar Dynamics Observatory (SDO)
Honeywell Technology Solutions Inc
NASA/Goddard Space Flight Center Building 14, Room E222 Mail Stop 428.2 Greenbelt, MD 20771
Office: (301) 286-5145 EMail: Stuart.J.Newman@nasa.govmailto:Stuart.J.Newman@nasa.gov
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, please notify the sender at once, and you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
On Fri, Mar 22, 2013 at 2:07 PM, Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC] stuart.j.newman@nasa.gov wrote:
RHEL 6.4 Cobbler 2.2.3****
I have a kickstart as follows:****
# this file intentionally left blank****
# admins: edit it as you like, or leave it blank for non-interactive install****
$SNIPPET('testit')****
The snippet is as follows:****
#set $snipname='SDO_' + $stringname + '_snippet'****
When I try to generate the kickstart from a profile, I get****
# this file intentionally left blank****
# admins: edit it as you like, or leave it blank for non-interactive install****
$SNIPPET('testit')****
What I doing wrong that the snippet is not being executed?****
Most likely, you're not setting $stringname correctly. You should have the following above the shown #set line:
#set $stringname = $getVar("stringname","nostringnameset")
I found the answer. I had made a mistake.
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Stuart J. Newman Engineer 4; Systems Solar Dynamics Observatory (SDO) Honeywell Technology Solutions Inc NASA/Goddard Space Flight Center Building 14, Room E222 Mail Stop 428.2 Greenbelt, MD 20771 Office: (301) 286-5145 EMail: Stuart.J.Newman@nasa.gov
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, please notify the sender at once, and you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler- bounces@lists.fedorahosted.org] On Behalf Of James Cammarata Sent: Friday, March 22, 2013 15:46 To: cobbler mailing list Subject: Re: [cobbler] snippet issue
On Fri, Mar 22, 2013 at 2:07 PM, Newman, Stuart J. (GSFC- 444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC] stuart.j.newman@nasa.gov wrote:
RHEL 6.4 Cobbler 2.2.3
I have a kickstart as follows:
# this file intentionally left blank
# admins: edit it as you like, or leave it blank for non- interactive install
$SNIPPET('testit')
The snippet is as follows:
#set $snipname='SDO_' + $stringname + '_snippet'
When I try to generate the kickstart from a profile, I get
# this file intentionally left blank
# admins: edit it as you like, or leave it blank for non- interactive install
$SNIPPET('testit')
What I doing wrong that the snippet is not being executed?
Most likely, you're not setting $stringname correctly. You should have the following above the shown #set line:
#set $stringname = $getVar("stringname","nostringnameset")
cobbler@lists.fedorahosted.org