Re: [cobbler] Fwd: [cobbler-devel] Templated scripts

2014-09-17 Thread alastair

Hi

I just worked out how to use them yesterday and documented here: 
https://github.com/cobbler/cobbler/wiki/Using-template-scripts-for-Debian-and-Ubuntu-seeds


Also, I think cobbler_web should have a left hand option for template 
scripts and someone might update the official docs on what they are and 
how to use them?


Thanks

Alastair

On 2014-09-16 20:23, Jörgen Maas wrote:

Hi Cobbler users,

Is anyone using the functionality as described below?
Please let us know!

Thanks

-- Forwarded message --
From: LEONID FLAKS 
Date: Tue, Sep 16, 2014 at 2:46 AM
Subject: Re: [cobbler-devel] Templated scripts
To: cobbler-de...@lists.fedorahosted.org

On 09/15/2014 08:06 PM, Alan Evangelista wrote:


On 09/07/2014 06:22 PM, Alan Evangelista wrote:


I'd like to understand better the purpose of the generic templated
scripts available in the
scripts directory in Cobbler repository. The script() method in
cobbler/services.py seems
to be the responsible for creating these and, according to
documentation, the purpose
is to generate scripts based on snippets useful for post or late
action where it
is difficult to embed the script in the
kickstart/autoyast/preseed file. I see only two
of those in upstream Cobbler: preseed_early_default and
preseed_late_default.
These scripts only include snippets and are only used in sample
preseed available
in kickstarts/ directory. I dont understand why these 2 scripts
could not be embedded
directly in the sample preseed.

Is anyone using this feature?

Regards,
Alan Evangelista


Considering the lack of answers and apparent lack of interest in
this feature, do we
need to keep it in the future versions of Cobbler? Removing it
would make code simpler.

Regards,
Alan Evangelista


  I am very much interested in this feature. The problem is that
preseed file that is used in debian/ubunty installer (d-i) is a lot
less convenient then kickstart. In particular, early- and late-
installation scripts are not very easy to configure. I had to cook a
one line command with some sort of black magic to make it work if I
used snippets. I hope those scripts made it easier and more readable.
I never got a chance to give them a try, but it is on my to-do list. I
am not sure who contributed this feature to cobbler, but the lack of
documentation or use-case example make them less appealing. I think,
they work as some sort of wrappers, which are not necessary for
anaconda-based installations.
 This mail list is not very active lately, unfortunately, but lack of
the answer does not mean lack of interst

 Leon

 ___
 cobbler-devel mailing list
 cobbler-de...@lists.fedorahosted.org
 https://lists.fedorahosted.org/mailman/listinfo/cobbler-devel [1]

--
Grtz,
Jörgen Maas

Links:
--
[1] https://lists.fedorahosted.org/mailman/listinfo/cobbler-devel

___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler

___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] Fwd: [cobbler-devel] Templated scripts

2014-09-17 Thread Michael Tiernan
On 9/17/14 5:11 AM, alast...@alastair-munro.com wrote:
> Also, I think cobbler_web should have a left hand option for template
> scripts

As just an aside, may I express displeasure with the fact that the
templating currently "reads" as "Source" = "Target" instead of the more
logical "Target" = "Source"

Currently the syntax for the templates reads as if you were saying
3+5=x instead of x=3+5

Just had to get it out there.
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


[cobbler] install issue

2014-09-17 Thread Jeremy Mordkoff
Cobbler newbie hereapologies in advance if I haven't found all of the 
online resources and this is a known issue


Running FC20 on the host and as the install image. Everything works fine most 
of the time. The exception is when I force a netboot and reboot using the 
cobbler command line, the target hangs about 60% of the time right after 
scanning the disks. The next step should ne to download the kickstart file, but 
I don't see the http request on the cobbler server.


Are there any tricks to debugging this? The anaconda console just pauses.


JLM



cobbler system edit --name grunt --netboot=1
cobbler sync
cobbler system reboot --name grunt







---
Jeremy Mordkoff
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


[cobbler] updating my install image

2014-09-17 Thread Jeremy Mordkoff
I am using the FC20 install image I downloaded months ago. I also have a mirror 
that I created months ago. I want to use


In my kickstart file, I am switching yum to use my mirrors. I do the install 
using the kickstart packages directives and then in %post I am doing a full 
update. The update takes about as long as the initial install.


Is there a more efficient way?


JLM



---
Jeremy Mordkoff
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] updating my install image

2014-09-17 Thread Mann, Owen
Add your repos on top of the base repos using the "repo" directive, and 
anaconda will figure out which packages are the newest ones.
http://fedoraproject.org/wiki/Anaconda/Kickstart#repo

Owen Mann, Interactive Data Omega
60 Codman Hill Rd, Boxborough, MA 01719
978-795-3758 owen.m...@interactivedata.com
"We have to remember that what we observe is not nature in itself, but nature 
exposed to our method of questioning." -Werner Heisenberg
"Things are not what they seem; nor are they otherwise." - Buddhist saying

From: cobbler-boun...@lists.fedorahosted.org 
[mailto:cobbler-boun...@lists.fedorahosted.org] On Behalf Of Jeremy Mordkoff
Sent: Wednesday, September 17, 2014 10:37 AM
To: cobbler@lists.fedorahosted.org
Subject: [cobbler] updating my install image


I am using the FC20 install image I downloaded months ago. I also have a mirror 
that I created months ago. I want to use



In my kickstart file, I am switching yum to use my mirrors. I do the install 
using the kickstart packages directives and then in %post I am doing a full 
update. The update takes about as long as the initial install.



Is there a more efficient way?



JLM



---
Jeremy Mordkoff


***
This message (including any files transmitted with it) may contain confidential 
and/or proprietary information, is the property of Interactive Data Corporation 
and/or its subsidiaries, and is directed only to the addressee(s). If you are 
not the designated recipient or have reason to believe you received this 
message in error, please delete this message from your system and notify the 
sender immediately. An unintended recipient's disclosure, copying, 
distribution, or use of this message or any attachments is prohibited and may 
be unlawful. 
***
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] install issue

2014-09-17 Thread Jeremy


On 09/17/2014 01:59 PM, nacc wrote:

Hi Jeremy,

On 2014-09-17 07:16, Jeremy Mordkoff wrote:

Cobbler newbie hereapologies in advance if I haven't found all of
the online resources and this is a known issue

Running FC20 on the host and as the install image. Everything works
fine most of the time. The exception is when I force a netboot and
reboot using the cobbler command line, the target hangs about 60% of
the time right after scanning the disks. The next step should ne to
download the kickstart file, but I don't see the http request on the
cobbler server.

Are there any tricks to debugging this? The anaconda console just
pauses.

JLM

cobbler system edit --name grunt --netboot=1


Isn't the flag --netboot-enabled?

-Nish

Yes it is. And if I force a second reboot using any method at all, it 
will work the second time.


It seems to hang after scanning the existing SSD. I think the next step 
is to download the kickstart file over http from the cobbler server, but 
I don't see any evidence that it even tried.


I can't debug this at all. There's no second virtual terminal on the 
console, no ssh.


Thanks,
JLM

___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] updating my install image

2014-09-17 Thread Jeremy Mordkoff
?I should probably take this to the anaconda folks ...



Here is the relevant directives:


# this is my base repo:

url 
--url=http://www.eng.riftio.com/mirrors/frozen/fedora/releases/20/Everything/x86_64/os

# it does not seem to matter whether or not I comment this one out
#repo --name="Rift Fedora Frozen" 
--baseurl=http://www.eng.riftio.com/mirrors/frozen/fedora/releases/20/Everything/x86_64/os

# these are my update repos
repo --name="Rift Fedora Updates" 
--baseurl=http://www.eng.riftio.com/mirrors/frozen/fedora/updates/20/x86_64/
repo --name="Rift Misc Packages" 
--baseurl=http://www.eng.riftio.com/mirrors/misc

The initial install seems to ignore the update repos. It installs 970 packages 
and then a yum update replaces  344 of them

I tried giving my repos the same names as the default ones ('fedora' and 
'updates') but that did not help.
?

JLM



---
Jeremy Mordkoff

From: cobbler-boun...@lists.fedorahosted.org 
 on behalf of Mann, Owen 

Sent: Wednesday, September 17, 2014 10:54 AM
To: cobbler mailing list
Subject: Re: [cobbler] updating my install image

Add your repos on top of the base repos using the "repo" directive, and 
anaconda will figure out which packages are the newest ones.
http://fedoraproject.org/wiki/Anaconda/Kickstart#repo

Owen Mann, Interactive Data Omega
60 Codman Hill Rd, Boxborough, MA 01719
978-795-3758 owen.m...@interactivedata.com
"We have to remember that what we observe is not nature in itself, but nature 
exposed to our method of questioning." -Werner Heisenberg
"Things are not what they seem; nor are they otherwise." - Buddhist saying

From: cobbler-boun...@lists.fedorahosted.org 
[mailto:cobbler-boun...@lists.fedorahosted.org] On Behalf Of Jeremy Mordkoff
Sent: Wednesday, September 17, 2014 10:37 AM
To: cobbler@lists.fedorahosted.org
Subject: [cobbler] updating my install image


I am using the FC20 install image I downloaded months ago. I also have a mirror 
that I created months ago. I want to use



In my kickstart file, I am switching yum to use my mirrors. I do the install 
using the kickstart packages directives and then in %post I am doing a full 
update. The update takes about as long as the initial install.



Is there a more efficient way?



JLM



---
Jeremy Mordkoff

***
This message (including any files transmitted with it) may contain confidential 
and/or proprietary information, is the property of Interactive Data Corporation 
and/or its subsidiaries, and is directed only to the addressee(s). If you are 
not the designated recipient or have reason to believe you received this 
message in error, please delete this message from your system and notify the 
sender immediately. An unintended recipient's disclosure, copying, 
distribution, or use of this message or any attachments is prohibited and may 
be unlawful.
***
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] updating my install image

2014-09-17 Thread Mann, Owen
The repo names shouldn’t matter at all.
If you jack up the logging level, Anaconda will tell you a lot about why it 
picked the packages it did:
http://fedoraproject.org/wiki/Anaconda/Kickstart#logging

Owen Mann, Interactive Data Omega
60 Codman Hill Rd, Boxborough, MA 01719
978-795-3758 owen.m...@interactivedata.com
“We have to remember that what we observe is not nature in itself, but nature 
exposed to our method of questioning.” -Werner Heisenberg
"Things are not what they seem; nor are they otherwise." - Buddhist saying

From: cobbler-boun...@lists.fedorahosted.org 
[mailto:cobbler-boun...@lists.fedorahosted.org] On Behalf Of Jeremy Mordkoff
Sent: Wednesday, September 17, 2014 4:36 PM
To: cobbler mailing list
Subject: Re: [cobbler] updating my install image


​I should probably take this to the anaconda folks ...





Here is the relevant directives:



# this is my base repo:

url 
--url=http://www.eng.riftio.com/mirrors/frozen/fedora/releases/20/Everything/x86_64/os

# it does not seem to matter whether or not I comment this one out
#repo --name="Rift Fedora Frozen" 
--baseurl=http://www.eng.riftio.com/mirrors/frozen/fedora/releases/20/Everything/x86_64/os

# these are my update repos
repo --name="Rift Fedora Updates" 
--baseurl=http://www.eng.riftio.com/mirrors/frozen/fedora/updates/20/x86_64/
repo --name="Rift Misc Packages" 
--baseurl=http://www.eng.riftio.com/mirrors/misc

The initial install seems to ignore the update repos. It installs 970 packages 
and then a yum update replaces  344 of them

I tried giving my repos the same names as the default ones ('fedora' and 
'updates') but that did not help.
​

JLM





---
Jeremy Mordkoff

From: 
cobbler-boun...@lists.fedorahosted.org
 
mailto:cobbler-boun...@lists.fedorahosted.org>>
 on behalf of Mann, Owen 
mailto:owen.m...@interactivedata.com>>
Sent: Wednesday, September 17, 2014 10:54 AM
To: cobbler mailing list
Subject: Re: [cobbler] updating my install image

Add your repos on top of the base repos using the “repo” directive, and 
anaconda will figure out which packages are the newest ones.
http://fedoraproject.org/wiki/Anaconda/Kickstart#repo

Owen Mann, Interactive Data Omega
60 Codman Hill Rd, Boxborough, MA 01719
978-795-3758 owen.m...@interactivedata.com
“We have to remember that what we observe is not nature in itself, but nature 
exposed to our method of questioning.” -Werner Heisenberg
"Things are not what they seem; nor are they otherwise." - Buddhist saying

From: 
cobbler-boun...@lists.fedorahosted.org
 [mailto:cobbler-boun...@lists.fedorahosted.org] On Behalf Of Jeremy Mordkoff
Sent: Wednesday, September 17, 2014 10:37 AM
To: cobbler@lists.fedorahosted.org
Subject: [cobbler] updating my install image


I am using the FC20 install image I downloaded months ago. I also have a mirror 
that I created months ago. I want to use



In my kickstart file, I am switching yum to use my mirrors. I do the install 
using the kickstart packages directives and then in %post I am doing a full 
update. The update takes about as long as the initial install.



Is there a more efficient way?



JLM



---
Jeremy Mordkoff

***
This message (including any files transmitted with it) may contain confidential 
and/or proprietary information, is the property of Interactive Data Corporation 
and/or its subsidiaries, and is directed only to the addressee(s). If you are 
not the designated recipient or have reason to believe you received this 
message in error, please delete this message from your system and notify the 
sender immediately. An unintended recipient's disclosure, copying, 
distribution, or use of this message or any attachments is prohibited and may 
be unlawful.
***


***
This message (including any files transmitted with it) may contain confidential 
and/or proprietary information, is the property of Interactive Data Corporation 
and/or its subsidiaries, and is directed only to the addressee(s). If you are 
not the designated recipient or have reason to believe you received this 
message in error, please delete this message from your system and notify the 
sender immediately. An unintended recipient's disclosure, copying, 
distribution, or use of this message or any attachments is prohibited and may 
be unlawful. 
***
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] updating my install image

2014-09-17 Thread Jeremy Mordkoff
​There were two problems


anaconda did not like spaces in my repo names

anaconda was ignoring my repos because there was no .treeinfo files


my install time is now 9:30 (it was just over 18 minutes)


thanks!


JLM




---
Jeremy Mordkoff

From: cobbler-boun...@lists.fedorahosted.org 
 on behalf of Mann, Owen 

Sent: Wednesday, September 17, 2014 4:46 PM
To: cobbler mailing list
Subject: Re: [cobbler] updating my install image

The repo names shouldn’t matter at all.
If you jack up the logging level, Anaconda will tell you a lot about why it 
picked the packages it did:
http://fedoraproject.org/wiki/Anaconda/Kickstart#logging

Owen Mann, Interactive Data Omega
60 Codman Hill Rd, Boxborough, MA 01719
978-795-3758 owen.m...@interactivedata.com
“We have to remember that what we observe is not nature in itself, but nature 
exposed to our method of questioning.” -Werner Heisenberg
"Things are not what they seem; nor are they otherwise." - Buddhist saying

From: cobbler-boun...@lists.fedorahosted.org 
[mailto:cobbler-boun...@lists.fedorahosted.org] On Behalf Of Jeremy Mordkoff
Sent: Wednesday, September 17, 2014 4:36 PM
To: cobbler mailing list
Subject: Re: [cobbler] updating my install image


​I should probably take this to the anaconda folks ...





Here is the relevant directives:



# this is my base repo:

url 
--url=http://www.eng.riftio.com/mirrors/frozen/fedora/releases/20/Everything/x86_64/os

# it does not seem to matter whether or not I comment this one out
#repo --name="Rift Fedora Frozen" 
--baseurl=http://www.eng.riftio.com/mirrors/frozen/fedora/releases/20/Everything/x86_64/os

# these are my update repos
repo --name="Rift Fedora Updates" 
--baseurl=http://www.eng.riftio.com/mirrors/frozen/fedora/updates/20/x86_64/
repo --name="Rift Misc Packages" 
--baseurl=http://www.eng.riftio.com/mirrors/misc

The initial install seems to ignore the update repos. It installs 970 packages 
and then a yum update replaces  344 of them

I tried giving my repos the same names as the default ones ('fedora' and 
'updates') but that did not help.
​

JLM





---
Jeremy Mordkoff

From: 
cobbler-boun...@lists.fedorahosted.org
 
mailto:cobbler-boun...@lists.fedorahosted.org>>
 on behalf of Mann, Owen 
mailto:owen.m...@interactivedata.com>>
Sent: Wednesday, September 17, 2014 10:54 AM
To: cobbler mailing list
Subject: Re: [cobbler] updating my install image

Add your repos on top of the base repos using the “repo” directive, and 
anaconda will figure out which packages are the newest ones.
http://fedoraproject.org/wiki/Anaconda/Kickstart#repo

Owen Mann, Interactive Data Omega
60 Codman Hill Rd, Boxborough, MA 01719
978-795-3758 owen.m...@interactivedata.com
“We have to remember that what we observe is not nature in itself, but nature 
exposed to our method of questioning.” -Werner Heisenberg
"Things are not what they seem; nor are they otherwise." - Buddhist saying

From: 
cobbler-boun...@lists.fedorahosted.org
 [mailto:cobbler-boun...@lists.fedorahosted.org] On Behalf Of Jeremy Mordkoff
Sent: Wednesday, September 17, 2014 10:37 AM
To: cobbler@lists.fedorahosted.org
Subject: [cobbler] updating my install image


I am using the FC20 install image I downloaded months ago. I also have a mirror 
that I created months ago. I want to use



In my kickstart file, I am switching yum to use my mirrors. I do the install 
using the kickstart packages directives and then in %post I am doing a full 
update. The update takes about as long as the initial install.



Is there a more efficient way?



JLM



---
Jeremy Mordkoff

***
This message (including any files transmitted with it) may contain confidential 
and/or proprietary information, is the property of Interactive Data Corporation 
and/or its subsidiaries, and is directed only to the addressee(s). If you are 
not the designated recipient or have reason to believe you received this 
message in error, please delete this message from your system and notify the 
sender immediately. An unintended recipient's disclosure, copying, 
distribution, or use of this message or any attachments is prohibited and may 
be unlawful.
***

***
This message (including any files transmitted with it) may contain confidential 
and/or proprietary information, is the property of Interactive Data Corporation 
and/or its subsidiaries, and is directed only to the addressee(s). If you are 
not the designated recipient or have reason to believe you received this 
message in error, please delete this message from your 

Re: [cobbler] install issue

2014-09-17 Thread Jeremy Mordkoff

adding 

network  --bootproto=dhcp --device=bootif

to my kickstart seems to have helped  

---
Jeremy Mordkoff


From: cobbler-boun...@lists.fedorahosted.org 
 on behalf of Jeremy 

Sent: Wednesday, September 17, 2014 4:22 PM
To: nacc; cobbler mailing list
Subject: Re: [cobbler] install issue

On 09/17/2014 01:59 PM, nacc wrote:
> Hi Jeremy,
>
> On 2014-09-17 07:16, Jeremy Mordkoff wrote:
>> Cobbler newbie hereapologies in advance if I haven't found all of
>> the online resources and this is a known issue
>>
>> Running FC20 on the host and as the install image. Everything works
>> fine most of the time. The exception is when I force a netboot and
>> reboot using the cobbler command line, the target hangs about 60% of
>> the time right after scanning the disks. The next step should ne to
>> download the kickstart file, but I don't see the http request on the
>> cobbler server.
>>
>> Are there any tricks to debugging this? The anaconda console just
>> pauses.
>>
>> JLM
>>
>> cobbler system edit --name grunt --netboot=1
>
> Isn't the flag --netboot-enabled?
>
> -Nish
>
Yes it is. And if I force a second reboot using any method at all, it
will work the second time.

It seems to hang after scanning the existing SSD. I think the next step
is to download the kickstart file over http from the cobbler server, but
I don't see any evidence that it even tried.

I can't debug this at all. There's no second virtual terminal on the
console, no ssh.

Thanks,
JLM

___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler