[Pulp-list] automatize repo create from cli
juanjop at gmail.com
Wed Mar 13 12:27:55 UTC 2013
Hi, I'm trying to automatize the creation and updating of pulp repos with
puppet/scripting but i've found a problem.
I need to execute series of commands to determine if the repo exists or not
yet . i.e:
pulp-admin repo list | grep $repo-id
... but, how can I know, for example, if the feed its correct or i need to
update it. Somethin like this may be ok:
pulp-admin repo search --str-eq='feed=http://foo/bar' | grep $repo-id
if the exit is 0 the feed is correct, if the exit is 1 i need to
rpm repo update....
But this command not exists.
Maybe the correct way to obtain this is trought the API but for a in-home
creation of a puppet custom definition is easiest this way.
Thanks and apologize for my english.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pulp-list