disabling second nic and HP firmware cd...
by Corey Kovacs
Folks,
Is there a built in 'correct' way to ensure that my second nics are
not configured during build and left alone when using the network
config snippets delivered with cobbler?
RIght now, when the nodes finish building, the undefined second nic
tries to dhcp even though I've not given it a config.
I am getting around this by making the appropriate changes to
ifcfg-eth1 via two 'sed' lines but if there is a 'better' way I'd
rather do that than rely on a post config.
Also,
are people using the livecd boot method for booting HP firmware disks?
How about the SSTK?
Thanks
Corey
13 years, 3 months
Cheetah Templating for Cobbler KSMETA variables
by lists@truthisfreedom.org.uk
Hi all,
I'm trying to use cobbler's ksmeta to set some facts for Puppet for a
number of things.
I want to be able to iterate over the ksmeta (which I believe is a
dict()?) and have that output to a file, however the following is not
working:
============
#for $fact, $value in $ks_meta.items()
echo "$fact: $value" >> /var/lib/puppet/facts/facts.txt
#end for
============
Can anyone shed some light on the best way to do this?
Thanks,
Matt
13 years, 9 months
LDAP authorization in Cobbler
by Ignasi Blanco
Hi All,
I am trying to get the cobbler webui to use LDAP authorization against
our LDAP server. I check the correct LDAP configuration with
demo_connect.py.
I have can authenticated with any user of LDAP without password (no
anonymous binding), but the authorization seems to be "not necessary".
In LDAP access log no appears any connection, I guess that it does not
authorized with LDAP server.
I want to authorizing only the LDAP user from users.conf. How is it possible?
I use cobbler 2.0.3.1 and my configuration is the next:
In modules.conf:
[authentication]
module = authn_ldap
[authorization]
module = authz_configfile
In settings:
ldap_server: "ldap.xxxxx.org"
ldap_base_dn: "dc=xxxxx,dc=org"
ldap_port: 389
ldap_tls: 1
ldap_anonymous_bind: 0
ldap_search_bind_dn: 'uid=cobbler,ou=system,dc=xxxx,dc=org'
ldap_search_passwd: 'password'
ldap_search_prefix: 'uid='
In users.conf:
[dxs]
cobbler = " "
admin = " "
13 years, 9 months
Fwd: Re: Problem when adding repos for installation [solved]
by seb
You are rigth ! I was missing the $yum_repo_stanza and therefore the
repo line in the resulting kickstart!
Thanks a lot!
Le 26/07/2010 21:44, Brian Wong a écrit :
> What does the evaluated kickstart file say? Follow the example belowto list the output of the kickstart file.
> cobbler system getks --name=system-name
> Look for 'repo' statements in the output. This will give you an ideaof what is being used during installation. If there are no statements,check your kickstart template and make sure $yum_repo_stanza is beinginterpolated.
> On Mon, Jul 26, 2010 at 5:58 AM, seb<sebastien.bonnart(a)toulouse.viveris.com> wrote:> Hello,>> I am unable to have a custom repository neither during the installation of> CentOS 5.5 nor during postinstall. I haveyum_post_install_mirror at 1.> When I add a package that is in my custom repository in my kickstart> %packages section. I get an error message during the install saying that it> is nowhere to be found. Adding this package in port-install using "yum> install" does not work either. Do I really have to edit the yum config files> during the postinstall and do ayum install here ? Do you have the same> problem ?> Except from that, the installation works fine.> Here is my cobbler report result :>> distros:> ==========> Name : DistroViverisCentOS5.5-x86_64> Architecture : x86_64> Breed : redhat> Comment :> Initrd : /root/custom_distro/initrd.img> Kernel : /root/custom_distro/vmlinuz> Kernel Options : {}> Kernel Options (Post Install) : {}> KickstartMetadata : {'tree':> 'http://@@http_server@@/cobbler/repo_mirror/ViverisCentOS5.5/'}> Management Classes : []> OS Version : generic26> Owners : ['admin']> Red Hat Management Key :<<inherit>>> Red Hat Management Server :<<inherit>>> Template Files : {}>>> profiles:> ==========> Name :VBox_virtual_test> Comment :> DHCP Tag : default> Distribution : DistroViverisCentOS5.5-x86_64> Enable PXE Menu? : 1> Kernel Options : {}> Kernel Options (Post Install) : {}> Kickstart :> /var/lib/cobbler/kickstarts/VBoxPXE_virtual_test.ks> Kickstart Metadata : {}> Management Classes : []> Name Servers : []> Name Servers Search Path : []> Owners : ['admin']> Parent Profile :> Red Hat Management Key :<<inherit>>> Red Hat Management Server :<<inherit>>> Repos : ['RepoViveris_custom']> Server Override :<<inherit>>> Template Files : {}> Virt Auto Boot : 1> Virt Bridge : xenbr0> Virt CPUs : 1> Virt File Size(GB) : 5> Virt Path :> Virt RAM (MB) : 512> Virt Type : xenpv>> systems:> ==========>> repos:> ==========> Name : RepoViveris_custom> Arch : x86_64> Breed :rsync> Comment :> Createrepo Flags :<<inherit>>> Environment Variables : {}> Keep Updated : True> Mirror : /root/custom_repo/> Mirror locally : True> Owners : ['admin']> Priority : 99> RPM List : []> Yum Options : {}>> Name : ViverisCentOS5.5> Arch : x86_64> Breed : yum> Comment :> Createrepo Flags :<<inherit>>> Environment Variables : {}> Keep Updated : True> Mirror :> http://mirror.centos.org/centos/5.5/os/x86_64/> Mirror locally : True> Owners : ['admin']> Priority : 99> RPM List : ['setup', 'filesystem', 'basesystem',> 'tzdata', 'glibc-common', 'cracklib-dicts', 'nash', 'centos-release-notes',> 'termcap', 'libgcc', 'gnu-efi', 'rootfiles', 'glibc', 'zlib', 'chkconfig',> 'glib2', 'mktemp', 'popt', 'audit-libs', 'expat', 'libtermcap', 'bash',> 'info', 'libsepol', 'ncurses', 'nspr', 'nss', 'readline', 'sqlite',> 'freetype', 'elfutils-libelf', 'libgpg-error', 'bzip2-libs', 'libstdc++',> 'libgcrypt', 'sed', 'libpng', 'libattr', 'libacl', 'keyutils', 'libcap',> 'libjpeg', 'libtiff', 'db4', 'gawk', 'iptables', 'atk', 'slang', 'libsysfs',> 'libXau', 'iptables-ipv6', 'iproute', 'keyutils', 'gnutls', 'pcre', 'grep',> 'libusb', 'hmaccalc', 'procps', 'less', 'gzip', 'cpio', 'diffutils',> 'binutils', 'iputils', 'libxml2', 'wireless-tools', 'tcp_wrappers',> 'ethtool','mingetty', 'gdbm', 'libvolume_id', 'dmidecode',> 'cyrus-sasl-lib', 'sgpio', 'libXdmcp', 'sysfsutils', 'udftools', 'dialog',> 'ed', 'file', 'hdparm', 'setserial', 'centos-release', 'redhat-logos',> 'crontabs', 'bitstream-vera-fonts', 'xorg-x11-filesystem', 'libX11',> 'libXrender', 'libXext', 'libXfixes', 'libXcursor', 'libXrandr', 'libXi',> 'libXinerama', 'grub', 'libselinux', 'device-mapper', 'yum-fastestmirror',> 'e2fsprogs-libs', 'shadow-utils', 'e2fsprogs', 'findutils', 'coreutils',> 'krb5-libs', 'openssl', 'python', 'fontconfig', 'cairo', 'kpartx', 'newt',> 'cryptsetup-luks', 'libXft', 'pango', 'python-elementtree', 'python-sqlite',> 'yum-metadata-parser', 'cracklib', 'pam', 'SysVinit', 'm2crypto',> 'openldap', 'libuser', 'passwd', 'usermode', 'cups-libs', 'MAKEDEV', 'udev',> 'util-linux', 'device-mapper-multipath', 'device-mapper-event', 'lvm2',> 'libselinux-utils', 'logrotate', 'tar', 'psmisc', 'net-tools',> 'initscripts', 'kbd', 'mcstrans', 'sysklogd', 'dhclient', 'dhcpv6-client',> 'system-config-securitylevel-tui', 'prelink', 'authconfig', 'libhugetlbfs',> 'rhpl', 'vim-minimal', 'python-urlgrabber', 'python-iniparse',> 'hicolor-icon-theme', 'gtk2', 'trousers', 'ecryptfs-utils', 'fipscheck-lib',> 'dbus-libs', 'rpm', 'openssh', 'dbus', 'dmraid', 'mkinitrd',> 'module-init-tools', 'rpm-libs', 'rpm-python', 'dbus-glib', 'dmraid-events',> 'fipscheck', 'openssh-server', 'openssh-clients', 'hwdata', 'yum', 'kernel',> 'pciutils', 'hal', 'kudzu', 'pm-utils', 'wget']> Yum Options : {}>>> images:> ==========>>> Best regards,>> Sébastien BONNART>> _______________________________________________> cobbler mailing list> cobbler(a)lists.fedorahosted.org> https://fedorahosted.org/mailman/listinfo/cobbler>>
>
13 years, 9 months
problem after import path and --available-as
by Ed Deloye
I am trying to use and NFS mounted location rather than importing the
tree into /var/lib/cobbler. I ran this command, which succeeded. Set up
a system and a profile. When I run koan on the system I get the error
shown at the bottom trying to download the initrd.img file. I am new to
cobbler and I assume that I am missing a step but cannot identify what
it is. Any help would be appreciated.
Thanks,
Ed
sudo cobbler import --path=/buildtrees/RHEL-5.5-client-i386
--name=gb-rhel-5.5-i386
--available-as=nfs://rfns1:/vol/flexsrc/buildtrees/RHEL-5.5-client-i386
sudo cobbler system report gb-ws-i386
Name : gb-ws-i386
Comment :
Gateway :
Hostname :
Image :
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : <<inherit>>
Kickstart Metadata : {'use-part': 'no', 'save-keys': 'no'}
Management Classes : []
Name Servers : []
Name Servers Search Path : []
Netboot Enabled : True
Owners : ['admin']
Power Management Address :
Power ID :
Power Password :
Power Management Type : ipmitool
Power Username :
Profile : gb-rhel-5.5-i386
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : 0
Virt CPUs : <<inherit>>
Virt File Size(GB) : <<inherit>>
Virt Path : <<inherit>>
Virt RAM (MB) : <<inherit>>
Virt Type : xenpv
sudo cobbler profile report --name=gb-rhel-5.5-i386
Name : gb-rhel-5.5-i386
Comment :
DHCP Tag : default
Distribution : gb-rhel-5.5-i386
Enable PXE Menu? : True
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/workstation
Kickstart Metadata : {}
Management Classes : []
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : []
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : 1
Virt Bridge : xenbr0
Virt CPUs : 1
Virt File Size(GB) : 5
Virt Path :
Virt RAM (MB) : 512
Virt Type : qemu
sudo koan --server=gbnis03 --system=gb-ws-i386 --replace-self
- looking for Cobbler at http://gbnis03/cobbler_api
- reading URL: http://gbnis03/cblr/svc/op/ks/system/gb-ws-i386
install_tree: nfs://rfns1:/vol/flexsrc/buildtrees/RHEL-5.5-client-i386/
downloading initrd initrd.img to /boot/initrd.img
url=http://gbnis03/cobbler/images/gb-rhel-5.5-i386/initrd.img
- reading URL: http://gbnis03/cobbler/images/gb-rhel-5.5-i386/initrd.img
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/koan/utils.py", line 130, in
urlread
fd = urllib2.urlopen(url)
File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.3/urllib2.py", line 326, in open
'_open', req)
File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
result = func(*args)
File "/usr/lib/python2.3/urllib2.py", line 901, in http_open
return self.do_open(httplib.HTTP, req)
File "/usr/lib/python2.3/urllib2.py", line 895, in do_open
return self.parent.error('http', req, fp, code, msg, hdrs)
File "/usr/lib/python2.3/urllib2.py", line 352, in error
return self._call_chain(*args)
File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
result = func(*args)
File "/usr/lib/python2.3/urllib2.py", line 412, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/koan/app.py", line 1027, in
get_distro_files
utils.urlgrab(initrd,initrd_save)
File "/usr/lib/python2.3/site-packages/koan/utils.py", line 161, in
urlgrab
data = urlread(url)
File "/usr/lib/python2.3/site-packages/koan/utils.py", line 143, in
urlread
raise InfoException, "Couldn't download: %s" % url
InfoException: "Couldn't download:
http://gbnis03/cobbler/images/gb-rhel-5.5-i386/initrd.img"
error downloading files
Ed Deloye
UNIX Systems Administrator
RF Micro Devices
7628 Thorndike Road
Greensboro, NC 27409
Ed.Deloye(a)rfmd.com <mailto:Ed.Deloye@rfmd.com>
13 years, 9 months
Yumdownloader and dependencies
by Brian Wong
Cobbler list,
When running `cobbler reposync` on a locally mirrored repository with
a defined rpm-list, the dependencies are not always downloaded. The
circumstances in which the dependencies are not downloaded actually
depend on the packages installed on the server running cobbler. The
cobbler servers configuration should not have any factor in repository
mirroring.
For example, if I have a hypothetical package named 'foo' and I add it
to the rpm-list of a locally mirrored repository, the dependency 'bar'
will not be downloaded and mirrored if the cobbler machine itself has
the 'bar' package installed. Since the dependency is satisfied on the
system which cobbler resides, yumdownloader does not think it is
necessary to download that package. This causes a problem when a
system is provisioned through cobbler and configured to use this
repository. When the provisioned system tries to install package 'foo'
through yum, there will be missing dependencies because the repository
does not have 'bar'. This is a consequence of yumdownloader being run
from the cobbler server, which is unavoidable.
Ideally, Cobbler should not check against the repo database of the
system from whch cobbler is running, but should resolve dependencies
against what is available in the repos that cobbler is mirroring. This
is not a trivial task though, because Cobbler does not manage
repositories from a Systems perspective. Cobbler would not know which
repositories a given system will have access to and therefore it may
still be useless to ensure that the dependency exists in at least one
other repository definition.
Thoughts?
13 years, 9 months
Problem when adding repos for installation
by seb
Hello,
I am unable to have a custom repository neither during the installation
of CentOS 5.5 nor during postinstall. I have yum_post_install_mirror at 1.
When I add a package that is in my custom repository in my kickstart
%packages section. I get an error message during the install saying that
it is nowhere to be found. Adding this package in port-install using
"yum install" does not work either. Do I really have to edit the yum
config files during the postinstall and do a yum install here ? Do you
have the same problem ?
Except from that, the installation works fine.
Here is my cobbler report result :
distros:
==========
Name : DistroViverisCentOS5.5-x86_64
Architecture : x86_64
Breed : redhat
Comment :
Initrd : /root/custom_distro/initrd.img
Kernel : /root/custom_distro/vmlinuz
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart Metadata : {'tree':
'http://@@http_server@@/cobbler/repo_mirror/ViverisCentOS5.5/'}
Management Classes : []
OS Version : generic26
Owners : ['admin']
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Template Files : {}
profiles:
==========
Name : VBox_virtual_test
Comment :
DHCP Tag : default
Distribution : DistroViverisCentOS5.5-x86_64
Enable PXE Menu? : 1
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart :
/var/lib/cobbler/kickstarts/VBoxPXE_virtual_test.ks
Kickstart Metadata : {}
Management Classes : []
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : ['RepoViveris_custom']
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : 1
Virt Bridge : xenbr0
Virt CPUs : 1
Virt File Size(GB) : 5
Virt Path :
Virt RAM (MB) : 512
Virt Type : xenpv
systems:
==========
repos:
==========
Name : RepoViveris_custom
Arch : x86_64
Breed : rsync
Comment :
Createrepo Flags : <<inherit>>
Environment Variables : {}
Keep Updated : True
Mirror : /root/custom_repo/
Mirror locally : True
Owners : ['admin']
Priority : 99
RPM List : []
Yum Options : {}
Name : ViverisCentOS5.5
Arch : x86_64
Breed : yum
Comment :
Createrepo Flags : <<inherit>>
Environment Variables : {}
Keep Updated : True
Mirror :
http://mirror.centos.org/centos/5.5/os/x86_64/
Mirror locally : True
Owners : ['admin']
Priority : 99
RPM List : ['setup', 'filesystem', 'basesystem',
'tzdata', 'glibc-common', 'cracklib-dicts', 'nash',
'centos-release-notes', 'termcap', 'libgcc', 'gnu-efi', 'rootfiles',
'glibc', 'zlib', 'chkconfig', 'glib2', 'mktemp', 'popt', 'audit-libs',
'expat', 'libtermcap', 'bash', 'info', 'libsepol', 'ncurses', 'nspr',
'nss', 'readline', 'sqlite', 'freetype', 'elfutils-libelf',
'libgpg-error', 'bzip2-libs', 'libstdc++', 'libgcrypt', 'sed', 'libpng',
'libattr', 'libacl', 'keyutils', 'libcap', 'libjpeg', 'libtiff', 'db4',
'gawk', 'iptables', 'atk', 'slang', 'libsysfs', 'libXau',
'iptables-ipv6', 'iproute', 'keyutils', 'gnutls', 'pcre', 'grep',
'libusb', 'hmaccalc', 'procps', 'less', 'gzip', 'cpio', 'diffutils',
'binutils', 'iputils', 'libxml2', 'wireless-tools', 'tcp_wrappers',
'ethtool', 'mingetty', 'gdbm', 'libvolume_id', 'dmidecode',
'cyrus-sasl-lib', 'sgpio', 'libXdmcp', 'sysfsutils', 'udftools',
'dialog', 'ed', 'file', 'hdparm', 'setserial', 'centos-release',
'redhat-logos', 'crontabs', 'bitstream-vera-fonts',
'xorg-x11-filesystem', 'libX11', 'libXrender', 'libXext', 'libXfixes',
'libXcursor', 'libXrandr', 'libXi', 'libXinerama', 'grub', 'libselinux',
'device-mapper', 'yum-fastestmirror', 'e2fsprogs-libs', 'shadow-utils',
'e2fsprogs', 'findutils', 'coreutils', 'krb5-libs', 'openssl', 'python',
'fontconfig', 'cairo', 'kpartx', 'newt', 'cryptsetup-luks', 'libXft',
'pango', 'python-elementtree', 'python-sqlite', 'yum-metadata-parser',
'cracklib', 'pam', 'SysVinit', 'm2crypto', 'openldap', 'libuser',
'passwd', 'usermode', 'cups-libs', 'MAKEDEV', 'udev', 'util-linux',
'device-mapper-multipath', 'device-mapper-event', 'lvm2',
'libselinux-utils', 'logrotate', 'tar', 'psmisc', 'net-tools',
'initscripts', 'kbd', 'mcstrans', 'sysklogd', 'dhclient',
'dhcpv6-client', 'system-config-securitylevel-tui', 'prelink',
'authconfig', 'libhugetlbfs', 'rhpl', 'vim-minimal',
'python-urlgrabber', 'python-iniparse', 'hicolor-icon-theme', 'gtk2',
'trousers', 'ecryptfs-utils', 'fipscheck-lib', 'dbus-libs', 'rpm',
'openssh', 'dbus', 'dmraid', 'mkinitrd', 'module-init-tools',
'rpm-libs', 'rpm-python', 'dbus-glib', 'dmraid-events', 'fipscheck',
'openssh-server', 'openssh-clients', 'hwdata', 'yum', 'kernel',
'pciutils', 'hal', 'kudzu', 'pm-utils', 'wget']
Yum Options : {}
images:
==========
Best regards,
Sébastien BONNART
13 years, 9 months
DNS management
by David Allender
Hey All,
Is there a way to view/manage DNS using the web interface? Basically I am
wondering if I can connect a client to the server, so whenever I use the
webui, I would be able to check statuses and change options on each client.
Is this possible?
Thank you for your help.
-D
13 years, 9 months
DNS Backend Management Modules
by lists@truthisfreedom.org.uk
Hi all,
I'm looking at developing a back-end module for DNS that will enable
Cobbler to manage a DNS server that is based upon a MySQL database
(MyDNS/PowerDNS etc) and before I embark on this I was wondering if
either anyone had done anything similar or if there was any more
documentation on how to write these other than the comments in
cobbler/modules/manage_bind.py? :)
Thanks in advance,
Matt
13 years, 9 months