[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Pulp-list] automatize repo create from cli



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.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]