[Pulp-list] automatize repo create from cli
Juanjo Presa
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
launch pulp-admin
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.
Any advice?
Thanks and apologize for my english.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20130313/49f92117/attachment.htm>
More information about the Pulp-list
mailing list