Np.

Is there anything specific I can help out on?  I have some time to time and would be glad to help out.

Peter Halliday
Excelsior Systems
(Phone:) 607-936-2172
(Cell:) 607-329-6905
(Fax:) 607-398-7928


On Wed, Aug 12, 2009 at 4:36 PM, Michael DeHaan <mdehaan@redhat.com> wrote:
On 08/12/2009 12:34 PM, Peter Halliday wrote:
> ---
>   cobbler/action_import.py              |    2 +-
>   cobbler/settings.py                   |    1 +
>   installer_templates/settings.template |    4 ++++
>   3 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/cobbler/action_import.py b/cobbler/action_import.py
> index 9ffc535..be6b763 100644
> --- a/cobbler/action_import.py
> +++ b/cobbler/action_import.py
> @@ -481,7 +481,7 @@ class Importer:
>              config_file.write("baseurl=http://@@http_server@@/cobbler/ks_mirror/%s\n" % (urlseg))
>              config_file.write("enabled=1\n")
>              config_file.write("gpgcheck=0\n")
> -           config_file.write("priority=1\n")
> +           config_file.write("priority=$yum_distro_priority\n")
>              config_file.close()
>
>              # don't run creatrepo twice -- this can happen easily for Xen and PXE, when
> diff --git a/cobbler/settings.py b/cobbler/settings.py
> index 83d52c9..6c38ecd 100644
> --- a/cobbler/settings.py
> +++ b/cobbler/settings.py
> @@ -105,6 +105,7 @@ DEFAULTS = {
>       "xmlrpc_port"                 : 25151,
>       "yum_post_install_mirror"     : 1,
>       "createrepo_flags"            : "-c cache -s sha",
> +    "yum_distro_priority"         : 1,
>       "yumdownloader_flags"         : "--resolve",
>       "reposync_flags"              : "-l -m -d"
>   }
> diff --git a/installer_templates/settings.template b/installer_templates/settings.template
> index b513c85..6cec9e6 100644
> --- a/installer_templates/settings.template
> +++ b/installer_templates/settings.template
> @@ -353,6 +353,10 @@ webdir: /var/www/cobbler
>   # port option to koan if it is not the default.
>   xmlrpc_port: 25151
>
> +# the default yum priority for all the distros.  This is only used
> +# if yum-priorities plugin is used.  Use with caution
> +yum_distro_priority: 1
> +
>   # "cobbler repo add" commands set cobbler up with repository
>   # information that can be used during kickstart and is automatically
>   # set up in the cobbler kickstart templates.  By default, these
>

Pushed, works great, thanks very much!

--Michael



_______________________________________________
cobbler-devel mailing list
cobbler-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel