[cobbler] Re: Variable extrapolation

2016-12-19 Thread alastair
Hi

https://pythonhosted.org/Cheetah/

Try 

#raw
#end raw

around your password line with $ in it.

--
Alastair Munro

-Original Message-
From: "Hymowitz, Eric B. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]" 

To: "cobbler@lists.fedorahosted.org" 
Sent: Mon, 19 Dec 2016 16:24
Subject: [cobbler] Variable extrapolation

Greetings.

I have two cobbler systems running 2.6.5 and 2.6.11, and both are exhibiting 
this same behavior.  I don't know if it's something I'm doing wrong, or just 
something I don't understand.

My default kickstart calls a snippet called "set_password".  The default 
"set_password" snippet, located in /var/lib/cobbler/snippets/set_password , 
includes this line:

rootpw --iscrypted '$1$abcdef$abcdefghabcdefghabcdef'

That works fine.  So far so good.

But when I take this same **exact** file and copy it to 
/var/lib/cobbler/snippets/per_profile/set_password/support , then the snippet 
fails.  It is trying to expand the non-existent variables $abcdef and 
$abcdefghabcdefghabcdef  .  I can verify this by changing the two dollar signs 
($1 doesn't seem to be affected) and the snippet loads properly.

So I guess my question is two-fold

Which is the correct behavior, in a single-quoted string that contains dollar 
signs?  Extrapolate the variable or don't?

Why is this behavior changing between a default snippet and a per-profile (also 
for a per-system) snippet?

Thanks.

Eric B. Hymowitz
Systems Administrator
Solar Dynamics Observatory (SDO)
eric.b.hymow...@nasa.gov
301-286-6352

___
cobbler mailing list -- cobbler@lists.fedorahosted.org
To unsubscribe send an email to cobbler-le...@lists.fedorahosted.org


[cobbler] Variable extrapolation

2016-12-19 Thread Hymowitz, Eric B. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
Greetings.

I have two cobbler systems running 2.6.5 and 2.6.11, and both are exhibiting 
this same behavior.  I don't know if it's something I'm doing wrong, or just 
something I don't understand.

My default kickstart calls a snippet called "set_password".  The default 
"set_password" snippet, located in /var/lib/cobbler/snippets/set_password , 
includes this line:

rootpw --iscrypted '$1$abcdef$abcdefghabcdefghabcdef'

That works fine.  So far so good.

But when I take this same **exact** file and copy it to 
/var/lib/cobbler/snippets/per_profile/set_password/support , then the snippet 
fails.  It is trying to expand the non-existent variables $abcdef and 
$abcdefghabcdefghabcdef  .  I can verify this by changing the two dollar signs 
($1 doesn't seem to be affected) and the snippet loads properly.

So I guess my question is two-fold

Which is the correct behavior, in a single-quoted string that contains dollar 
signs?  Extrapolate the variable or don't?

Why is this behavior changing between a default snippet and a per-profile (also 
for a per-system) snippet?

Thanks.

Eric B. Hymowitz
Systems Administrator
Solar Dynamics Observatory (SDO)
eric.b.hymow...@nasa.gov
301-286-6352

___
cobbler mailing list -- cobbler@lists.fedorahosted.org
To unsubscribe send an email to cobbler-le...@lists.fedorahosted.org


[cobbler] Re: Cobbler release 2.8.0

2016-12-19 Thread Newman, Stuart J. (GSFC-428.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]


smime.p7m
Description: S/MIME encrypted message
___
cobbler mailing list -- cobbler@lists.fedorahosted.org
To unsubscribe send an email to cobbler-le...@lists.fedorahosted.org


[cobbler] Re: After install issue.

2016-12-19 Thread alastair
Hi

Tried google? Something like this: https://bugs.centos.org/view.php?id=7177

--
Alastair Munro

-Original Message-
From: Chris Johnson 
To: cobbler mailing list , "R. Christopher 
Johnson" 
Sent: Sun, 18 Dec 2016 20:01
Subject: [cobbler] After install issue.

Hi.

Strictly speaking this isn't a cobbler problem.  But I thought somebody 
might know a way to get around it in kickstart.

I'm installing CentOS 7.3.1611.  That works.  But when the system just 
installed boots up, it is asking a question about licensing on screen.  
I have to answer it on screen before it continues and apparently 
finishes up some kind of configuration.  It didn't used to ask about 
this.  Its' a pain when you just have nine nodes.  But if you have ten 
or twenty thousand like some bigger number crunching systems have this 
becomes impossible.  Is there any way to configure either the answers  
or to turn this off and do whatever extra configuration is needed?  Does 
anyone know what that extra remainder configuration is?

Thanks.

Chris J.
___
cobbler mailing list -- cobbler@lists.fedorahosted.org
To unsubscribe send an email to cobbler-le...@lists.fedorahosted.org
___
cobbler mailing list -- cobbler@lists.fedorahosted.org
To unsubscribe send an email to cobbler-le...@lists.fedorahosted.org