Stefan Hermes wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Michael DeHaan schrieb: >> Actually, we already have a --environment parameter for repos, so you >> can specify what environment variables to use when doing similar things. >> >> Maybe see if that works for you? > > It works for me[tm] here. > > Regards, > -Stefan >
Thank you for replies. How did you set it up? Here is what I tried (with no luck so far): I run the following command: cobbler repo edit --name=F10-i386-rpmfusion-free --environment='http_proxy=http://192.168.1.130:3128' (That was all in one line of course) Here is the question - did you use proxy or http_proxy? Another issue - once I go to web interface for this repo and click on safe (even without any changes), this variable gets changed: Before Web interface it looks like this: grep http_proxy /var/lib/cobbler/config/repos.d/* /var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {http_proxy: 'http://192.168.1.130:3128'} After save - using the same grep command: /var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {'http://192.168.1.130:3128}': null, '{http_proxy:': null} If I safe more, it gets worse. I was using WebUI to switch the flag to mirror repo locally. Now to the main problem. Even if I edit environment variable manually and don't touch it, it does not seems to work. My RPM list is empty as I wanted to mirror everything on this repo. 'cobbler reposync' output: environment: http_proxy=http://192.168.1.130:3128 - creating: /var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free/.origin/F10-i386-rpmfusion-free.repo - /usr/bin/yumdownloader --resolve -c /var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free/.origin/F10-i386-rpmfusion-free.repo --destdir=/var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free Usage: "usage: yumdownloader [options] package1 [package2] [package..] Options: -h, --help show this help message and exit -t, --tolerant be tolerant of errors -C run entirely from cache, don't update cache -c [config file] config file location -R [minutes] maximum command wait time -d [debug level] debugging output level --showduplicates show duplicates, in repos, in list/search commands -e [error level] error output level -q, --quiet quiet operation -v, --verbose verbose operation -y answer yes for all questions --version show Yum version and exit --installroot=[path] set install root --enablerepo=[repo] enable one or more repositories (wildcards allowed) --disablerepo=[repo] disable one or more repositories (wildcards allowed) -x [package], --exclude=[package] exclude package(s) by name or glob --disableexcludes=[repo] disable exclude from main, for a repo or for everything --obsoletes enable obsoletes processing during updates --noplugins disable Yum plugins --nogpgcheck disable gpg signature checking --disableplugin=[plugin] disable plugins by name --enableplugin=[plugin] enable plugins by name --skip-broken skip packages with depsolving problems --color=COLOR control whether color is used --destdir=DESTDIR destination directory (defaults to current directory) --urls just list the urls it would download instead of downloading --resolve resolve dependencies and download required packages --source operate on source packages --archlist=ARCHLIST only download packages of certain architecture(s) - createrepo /var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free Saving Primary metadata Saving file lists metadata Saving other metadata - creating: /var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free/config.repo yumdownloader did not like the empty list and just gave me a help message. All of the above is the same if I use proxy instead of http_proxy. Am I doing something wrong/stupid here? Thanks, Leon _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
