Re: [cobbler] Firstboot script
by Zack Perry
> Hello,
> I have my own bash script and I want cobbler execute it after the
> first reboot for my hosts. Current my cobbler release is
> cobbler-2.4.0-beta3.el6.noarch.
If I were you, I would use the cobbler's built-in configuration
management feature, see http://cobbler.github.com/manuals/2.4.0/5/3/1_-_Built-In_Configuration_Ma...
You can use it to copy your bash script to /etc/rc.d/init.d/firstboot
From there, what the script does should be under your control. The
script should be implemented in such a way that it erases itself upon
success (or at least makes itself non-executable).
FWIW, nowadays I tend to always provision minimal systems, and then
use a configuration management framework to do desired changes to
hosts in different categories. I used to use firstboot, but since
I adopted the aforementioned approach, I haven't had a need to use
a firstboot script anymore. Even for desktop installations, in
kickstart files, I turn off the firstboot option (which runs the
Setup Agent) as well.
Regards,
-- Zack
> Could you please advice?
> I appreciated your guidance for the best practice.
> --------------------------
> Best Wishes,
> Waleed Harbi
11 years, 3 months
Firstboot script
by Waleed Harbi
Hello,
I have my own bash script and I want cobbler execute it after the first
reboot for my hosts. Current my cobbler release
is cobbler-2.4.0-beta3.el6.noarch.
Could you please advice?
I appreciated your guidance for the best practice.
--------------------------
Best Wishes,
Waleed Harbi
Dream | Do | Be
11 years, 3 months
Cobbler_web not working on Fedora17
by Kashif Mohammad
Hi
I have installed cobbler on fedora 17
cobbler-web-2.2.3-2.fc17.noarch
cobbler-2.2.3-2.fc17.noarch
Configured modules.conf and created account etc
[authentication]
module = authn_configfile
but when I go to http://myserver/cobbler_web it fails with this error
equest Method: GET
Request URL: https://myserver/cobbler_web/
Django Version: 1.4.3
Exception Type: ImproperlyConfigured
Exception Value:
Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'"
Exception Location: /usr/lib/python2.7/site-packages/django/template/loader.py in find_template_loader, line 101
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/usr/lib64/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/PIL',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
'/usr/share/cobbler/web',
'/usr/share/cobbler/web/cobbler_web']
Server time: Thu, 10 Jan 2013 15:50:24 +0000
Has any one seen this issue ?
Thanks
Kashif
11 years, 3 months
LDAP auth with SSL on port 636: "Bad file descriptor"
by Robert Jacobson
I tried to setup LDAP auth with SSL on my cobbler server, per the wiki
instructions at:
https://github.com/cobbler/cobbler/wiki/Ldap
I was able to get LDAP auth *without* SSL working.
However, when I enable SSL, I get the error "Bad file descriptor" in
cobbler.log. I found an existing issue documented at:
https://github.com/cobbler/cobbler/issues/217
I messed around with the config a bunch, and did find a working
configuration with TLS:
1. use port 389
2. use ldap_tls = 1
But as far as I can tell, there is no way to use port 636 -- I tried it
with "ldap_tls" both 0 and 1. I either get "Bad file descriptor" or
"Can't contact LDAP server".
I'd like to use 636 because it ensures SSL or TLS is being used --
whereas port 389 will allow cleartext if the client is not configured
correctly. Is there are a way to do that?
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson Robert.C.Jacobson(a)nasa.gov
Lead System Admin Solar Dynamics Observatory (SDO)
Bldg 14, E222 (301) 286-1591
11 years, 3 months
Citrix XenServer
by Eddie Velez
Has anyone used cobbler with Citrix XenServer? I have modified pxegen.py and codes.py and created pxe_tempeles so will be added to pxe boot menus.
I am running into one problem. I can't get to http://server_ip/cblr/svc/op/ks/profile/XenServer-6.0.2 profile. Any thoughts in what I could be missing.
Thanks
________________________________
Eddie Velez
Sr. UNIX System Administrator
2650 N 1st Suit 300
San Jose, CA, 95135
408.904.4136 Office
408.307.1632 Mobile
http://www.emulex.com<http://www.emulex.com/>
[Emulex]<http://www.emulex.com/emulex-connects/>
This message contains Emulex confidential information intended only for specific recipients and is not to be forwarded to anyone else. If you have received this message in error, please delete it immediately. Thank you.
11 years, 3 months