Is there a way in cobbler today that automates using the MAC address for eth0 as the parameter place on the kernel line for the ksdevice, i.e. ksdevice=00:2c:3e:23:4d:1e instead of the default using ksdevice=eth0 or whichever device you specify in the /etc/cobbler/settings file.
I know that passing ksdevice = {My MAC} on the kernel options line in system settings works, but I am looking for something that requires no user intervention. That is I want to use the interface's MAC address as my default.
This is because of NIC enumeration issue on HP Blade Centers.
Thanks joe
Joseph Boyer Jr Enterprise Technology Services Liquidnet Holdings, Inc. Joseph.Boyer@liquidnet.commailto:aengelhardtsen@liquidnet.com T +1 646.660.8352 C +1 646.284.8394
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files added there during sync.
Does that answer the question?
--Michael
Thanks for the reply. Unfortunately it seems something else is going on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files added there during sync.
Does that answer the question?
--Michael
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Brown, Scott CTR -Navair - Siap wrote:
Thanks for the reply. Unfortunately it seems something else is going on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
Import does not take ISOs directly, you have to mount them on a loopback. That seems to be the problem.
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files added there during sync.
Does that answer the question?
--Michael
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
Sorry I should of mentioned that I already had a loop in place on the /mn/<iso> directory.
Interesting enough though, after messing around with 1.0.2 over the weekend, it seems that my kickstart file is not being accepted anymore. By this I mean that everything in my script past the %post part is not 'added' to the system. Almost like it is being ignored for some reason. For security reasons I can not post my script but I can post a couple of snippets from it for reference. Thanks..
--------------------------------------------------- # GEN000020 (G001) # GEN000040 (G002) # GEN000060 (G003) # L224 - removed echo "Locking down GEN000020, GEN000040, GEN000060" echo "Require the root pw when booting into single user mode" >> /etc/inittab echo "~~:S:wait:/sbin/sulogin" >> /etc/inittab echo "GEN000020, GEN000040,GEN000060 Complete"
# GEN000700 # Change the password expiration time from undefined to 60 days echo "Locking down GEN000700" perl -npe 's/PASS_MAX_DAYS\s+99999/PASS_MAX_DAYS 60/' -i /etc/login.defs chage -M 60 root echo "GEN000700 Complete"
# GEN000540 # Ensure that the user cannot change their password more than once a day. echo "Locking down GEN000540" perl -npe 's/PASS_MIN_DAYS\s+0/PASS_MIN_DAYS 1/g' -i /etc/login.defs echo "GEN000540 Complete"
------------------------------------------------------------------------
Thanks...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 17:01 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Thanks for the reply. Unfortunately it seems something else is going on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
Import does not take ISOs directly, you have to mount them on a loopback. That seems to be the problem.
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot
of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the
following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files added there during sync.
Does that answer the question?
--Michael
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
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Brown, Scott CTR -Navair - Siap wrote:
Sorry I should of mentioned that I already had a loop in place on the /mn/<iso> directory.
Any import, (unless you are using the --available-as flag) should copy files over. Unless of course you've modified /etc/cobbler/rsync.exclude or something?
Interesting enough though, after messing around with 1.0.2 over the weekend, it seems that my kickstart file is not being accepted anymore. By this I mean that everything in my script past the %post part is not 'added' to the system. Almost like it is being ignored for some reason. For security reasons I can not post my script but I can post a couple of snippets from it for reference. Thanks..
For starters, visit http://cobbler/svc/op/ks/system/$system_name (or /profile/$profile_name) to make sure the kickstarts look as you suspect they look.
Then also run "cobbler validateks" to see if any errors are detected...
--Michael
# GEN000020 (G001) # GEN000040 (G002) # GEN000060 (G003) # L224 - removed echo "Locking down GEN000020, GEN000040, GEN000060" echo "Require the root pw when booting into single user mode" >> /etc/inittab echo "~~:S:wait:/sbin/sulogin" >> /etc/inittab echo "GEN000020, GEN000040,GEN000060 Complete"
# GEN000700 # Change the password expiration time from undefined to 60 days echo "Locking down GEN000700" perl -npe 's/PASS_MAX_DAYS\s+99999/PASS_MAX_DAYS 60/' -i /etc/login.defs chage -M 60 root echo "GEN000700 Complete"
# GEN000540 # Ensure that the user cannot change their password more than once a day. echo "Locking down GEN000540" perl -npe 's/PASS_MIN_DAYS\s+0/PASS_MIN_DAYS 1/g' -i /etc/login.defs echo "GEN000540 Complete"
Thanks...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 17:01 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Thanks for the reply. Unfortunately it seems something else is going on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
Import does not take ISOs directly, you have to mount them on a loopback. That seems to be the problem.
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot
of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the
following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files added there during sync.
Does that answer the question?
--Michael
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
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
Hi,
Did you remove #raw from the top of the %post section so that cobbler doesn't try to parse the post section.
I thought I put a comment in there about that.
A
On Mon, Jul 14, 2008 at 9:46 AM, Brown, Scott CTR -Navair - Siap scott.brown4.ctr@navy.mil wrote:
Sorry I should of mentioned that I already had a loop in place on the /mn/<iso> directory.
Interesting enough though, after messing around with 1.0.2 over the weekend, it seems that my kickstart file is not being accepted anymore. By this I mean that everything in my script past the %post part is not 'added' to the system. Almost like it is being ignored for some reason. For security reasons I can not post my script but I can post a couple of snippets from it for reference. Thanks..
# GEN000020 (G001) # GEN000040 (G002) # GEN000060 (G003) # L224 - removed echo "Locking down GEN000020, GEN000040, GEN000060" echo "Require the root pw when booting into single user mode" >> /etc/inittab echo "~~:S:wait:/sbin/sulogin" >> /etc/inittab echo "GEN000020, GEN000040,GEN000060 Complete"
# GEN000700 # Change the password expiration time from undefined to 60 days echo "Locking down GEN000700" perl -npe 's/PASS_MAX_DAYS\s+99999/PASS_MAX_DAYS 60/' -i /etc/login.defs chage -M 60 root echo "GEN000700 Complete"
# GEN000540 # Ensure that the user cannot change their password more than once a day. echo "Locking down GEN000540" perl -npe 's/PASS_MIN_DAYS\s+0/PASS_MIN_DAYS 1/g' -i /etc/login.defs echo "GEN000540 Complete"
Thanks...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 17:01 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Thanks for the reply. Unfortunately it seems something else is going on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
Import does not take ISOs directly, you have to mount them on a loopback. That seems to be the problem.
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot
of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the 'kickstart' directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the
following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files added there during sync.
Does that answer the question?
--Michael
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
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
Yup, there is no #raw above %post section. On my 0.8 version of cobbler it puts some sort of [cheetah] commands in front of each section and ultimately does not parse the lockdowns. In 1.0.2 cobbler, the kickstart never parses. Due to operational commitments, I had to go back to the working version of cobbler for me and that was 0.8 . All I do is replace the 'blank' kickstart with the modded one until I can figure this out... Thanks ...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Aaron Lippold Sent: Thursday, July 17, 2008 16:43 To: cobbler mailing list Subject: Re: Custom Kickstarts
Hi,
Did you remove #raw from the top of the %post section so that cobbler doesn't try to parse the post section.
I thought I put a comment in there about that.
A
On Mon, Jul 14, 2008 at 9:46 AM, Brown, Scott CTR -Navair - Siap scott.brown4.ctr@navy.mil wrote:
Sorry I should of mentioned that I already had a loop in place on the /mn/<iso> directory.
Interesting enough though, after messing around with 1.0.2 over the weekend, it seems that my kickstart file is not being accepted
anymore.
By this I mean that everything in my script past the %post part is not
'added' to the system. Almost like it is being ignored for some
reason.
For security reasons I can not post my script but I can post a couple of snippets from it for reference. Thanks..
# GEN000020 (G001) # GEN000040 (G002) # GEN000060 (G003) # L224 - removed echo "Locking down GEN000020, GEN000040, GEN000060" echo "Require the root pw when booting into single user mode" >> /etc/inittab echo "~~:S:wait:/sbin/sulogin" >> /etc/inittab echo "GEN000020, GEN000040,GEN000060 Complete"
# GEN000700 # Change the password expiration time from undefined to 60 days echo "Locking down GEN000700" perl -npe 's/PASS_MAX_DAYS\s+99999/PASS_MAX_DAYS 60/' -i /etc/login.defs chage -M 60 root echo "GEN000700 Complete"
# GEN000540 # Ensure that the user cannot change their password more than once a day. echo "Locking down GEN000540" perl -npe 's/PASS_MIN_DAYS\s+0/PASS_MIN_DAYS 1/g' -i /etc/login.defs echo "GEN000540 Complete"
--
Thanks...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 17:01 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Thanks for the reply. Unfortunately it seems something else is going
on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
Import does not take ISOs directly, you have to mount them on a loopback. That seems to be the problem.
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no
files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot
of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the
'kickstart'
directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the
following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files
added there during sync.
Does that answer the question?
--Michael
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
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
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Hi
You need to have #raw and #end raw in the post section because of a few of the scripts. Put it right after the %post section line and cobbler should be happy.
A
Sent from my iPhone
On Jul 18, 2008, at 9:08 AM, "Brown, Scott CTR -Navair - Siap" <scott.brown4.ctr@navy.mil
wrote:
Yup, there is no #raw above %post section. On my 0.8 version of cobbler it puts some sort of [cheetah] commands in front of each section and ultimately does not parse the lockdowns. In 1.0.2 cobbler, the kickstart never parses. Due to operational commitments, I had to go back to the working version of cobbler for me and that was 0.8 . All I do is replace the 'blank' kickstart with the modded one until I can figure this out... Thanks ...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Aaron Lippold Sent: Thursday, July 17, 2008 16:43 To: cobbler mailing list Subject: Re: Custom Kickstarts
Hi,
Did you remove #raw from the top of the %post section so that cobbler doesn't try to parse the post section.
I thought I put a comment in there about that.
A
On Mon, Jul 14, 2008 at 9:46 AM, Brown, Scott CTR -Navair - Siap scott.brown4.ctr@navy.mil wrote:
Sorry I should of mentioned that I already had a loop in place on the /mn/<iso> directory.
Interesting enough though, after messing around with 1.0.2 over the weekend, it seems that my kickstart file is not being accepted
anymore.
By this I mean that everything in my script past the %post part is not
'added' to the system. Almost like it is being ignored for some
reason.
For security reasons I can not post my script but I can post a couple of snippets from it for reference. Thanks..
# GEN000020 (G001) # GEN000040 (G002) # GEN000060 (G003) # L224 - removed echo "Locking down GEN000020, GEN000040, GEN000060" echo "Require the root pw when booting into single user mode" >> /etc/inittab echo "~~:S:wait:/sbin/sulogin" >> /etc/inittab echo "GEN000020, GEN000040,GEN000060 Complete"
# GEN000700 # Change the password expiration time from undefined to 60 days echo "Locking down GEN000700" perl -npe 's/PASS_MAX_DAYS\s+99999/PASS_MAX_DAYS 60/' -i /etc/login.defs chage -M 60 root echo "GEN000700 Complete"
# GEN000540 # Ensure that the user cannot change their password more than once a day. echo "Locking down GEN000540" perl -npe 's/PASS_MIN_DAYS\s+0/PASS_MIN_DAYS 1/g' -i /etc/login.defs echo "GEN000540 Complete"
--
Thanks...
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 17:01 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Thanks for the reply. Unfortunately it seems something else is going
on in the background. While I was waiting I decided to test out a theory by doing the following:
Cobbler import --path=/mnt/<.iso> --name=Test1 --kickstart=/root/kickstart/ks.cfg
Import does not take ISOs directly, you have to mount them on a loopback. That seems to be the problem.
The import seemed to work just fine except when I selected the Test1 in the menu, its saying that it needs some files from the <server>/cobbler/ks_mirror/Test1/images/stage2.img. But there are no
files at all in the ks_mirror directory. Only a Config directory. What's really weird is that while watching the import, there was a lot
of 'processing' going on putting files in that directory...
Also as per your below URL, the only thing in my svc directy are 3 python files. No sub-directories.... Thanks..
Scott
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Michael DeHaan Sent: Friday, July 11, 2008 15:20 To: cobbler mailing list Subject: Re: Custom Kickstarts
Brown, Scott CTR -Navair - Siap wrote:
Recently I've updated from 0.8.2 to 1.0.2 and when I did my cobbler sync after 'tweaking' the settings to fit my network, the
'kickstart'
directory with my custom kickstarts is gone. How do I associate custom kickstarts to my profiles I added? Thanks..
Scott _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Cobbler does not save kickstarts it renders on the filesystem. It renders them dynamically.
See http://server/cblr/svc/op/ks/system/name OR http://server/cblr/svc/op/ks/profile/name
This is true for any values to --kickstart that are stored on the filesystem.
If you have a kickstart that is not being managed by a cobbler template, you can, however, make it available over http and do the
following:
cobbler profile add --name=foo --kickstart=http://...
And it will not treat it as a template and will use it verbatim
Note: A user should never put any content of their own into /var/www/cobbler as cobbler owns that directory and will remove files
added there during sync.
Does that answer the question?
--Michael
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
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
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
Joseph Boyer Jr. wrote:
Is there a way in cobbler today that automates using the MAC address for eth0 as the parameter place on the kernel line for the ksdevice, i.e. ksdevice=00:2c:3e:23:4d:1e instead of the default using ksdevice=eth0 or whichever device you specify in the /etc/cobbler/settings file.
I know that passing ksdevice = {My MAC} on the kernel options line in system settings works, but I am looking for something that requires no user intervention. That is I want to use the interface’s MAC address as my default.
This is because of NIC enumeration issue on HP Blade Centers.
I could see this as possible. Two options here -- file an RFE in Trac (fedorahosted.org/cobbler), or implement support for it.
I don't think the patch would be too painful -- adding a boolean option to each interface that says --use-as-explicit-ksdevice that would only be legal /if/ the mac was enabled.
This would be a slightly involved patch -- should mostly involve item_system.py and the "blender" code that evaluates the object tree in utils.py -- but doable.
The RFE list in cobbler is very long so I can't say this is something I would knock out soon. But if someone else finds it interesting maybe they could help.
--Michael
Thanks
joe
*Joseph Boyer Jr* *Enterprise Technology Services** ** **Liquidnet Holdings, Inc.* *_Joseph.Boyer_**@liquidnet.com mailto:aengelhardtsen@liquidnet.com* *T** * +1 646.660.8352 *C ** *+1 646.284.8394
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Joe, what version of Anaconda are you using?
2008/7/11 Michael DeHaan mdehaan@redhat.com:
Joseph Boyer Jr. wrote:
Is there a way in cobbler today that automates using the MAC address for eth0 as the parameter place on the kernel line for the ksdevice, i.e. ksdevice=00:2c:3e:23:4d:1e instead of the default using ksdevice=eth0 or whichever device you specify in the /etc/cobbler/settings file.
I know that passing ksdevice = {My MAC} on the kernel options line in system settings works, but I am looking for something that requires no user intervention. That is I want to use the interface's MAC address as my default.
This is because of NIC enumeration issue on HP Blade Centers.
I could see this as possible. Two options here -- file an RFE in Trac (fedorahosted.org/cobbler), or implement support for it.
I don't think the patch would be too painful -- adding a boolean option to each interface that says --use-as-explicit-ksdevice that would only be legal /if/ the mac was enabled.
This would be a slightly involved patch -- should mostly involve item_system.py and the "blender" code that evaluates the object tree in utils.py -- but doable.
The RFE list in cobbler is very long so I can't say this is something I would knock out soon. But if someone else finds it interesting maybe they could help.
--Michael
Thanks
joe
*Joseph Boyer Jr* *Enterprise Technology Services** ** **Liquidnet Holdings, Inc.* *_Joseph.Boyer_**@liquidnet.com mailto:aengelhardtsen@liquidnet.com* *T** * +1 646.660.8352 *C ** *+1 646.284.8394
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
Michael DeHaan wrote:
Joseph Boyer Jr. wrote:
Is there a way in cobbler today that automates using the MAC address for eth0 as the parameter place on the kernel line for the ksdevice, i.e. ksdevice=00:2c:3e:23:4d:1e instead of the default using ksdevice=eth0 or whichever device you specify in the /etc/cobbler/settings file.
I know that passing ksdevice = {My MAC} on the kernel options line in system settings works, but I am looking for something that requires no user intervention. That is I want to use the interface’s MAC address as my default.
This is because of NIC enumeration issue on HP Blade Centers.
I could see this as possible. Two options here -- file an RFE in Trac (fedorahosted.org/cobbler), or implement support for it.
I don't think the patch would be too painful -- adding a boolean option to each interface that says --use-as-explicit-ksdevice that would only be legal /if/ the mac was enabled.
This would be a slightly involved patch -- should mostly involve item_system.py and the "blender" code that evaluates the object tree in utils.py -- but doable.
The RFE list in cobbler is very long so I can't say this is something I would knock out soon. But if someone else finds it interesting maybe they could help.
--Michael
I've previously done this by adding a trigger that looked up the mac address from our ldap server. In theory, you could make a trigger that would grab it from the cobbler api. Another option, possibly simpler and certainly more robust than another command-line flag, but one that could, in rare cases, cause unintended behavior would be to run the kopts string through cheetah, thus allowing one to do 'cobbler system edit --name=spam --mac=$mac_address'.
Ben
cobbler@lists.fedorahosted.org