|
[11:21] == kristian_ [5512f402@gateway/web/freenode/ip.85.18.244.2] has joined #theforeman
|
|
[11:22] <kristian_> Hi There! Does anybody know if "hammer" can trigger the same action as the "Import environments from puppet" available in the Foreman Web UI?
|
|
[11:24] <Zhenech> pretty sure it can
|
|
[11:24] <Zhenech> (as you can via api too)
|
|
[11:25] <Zhenech> hammer proxy import-classes
|
|
[11:25] <Zhenech> that should do it
|
|
[11:25] <Zhenech> oh wait
|
|
[11:25] <Zhenech> that's classes, not envs
|
|
[11:25] <kristian_> oh.. :(
|
|
[11:29] <kristian_> This feature is really needed in my opinion. Just finished integrating my puppet master with r10k and gitlab but I still have to manually use The Foreman Web UI to trigger this necessary action.
|
|
[11:30] <Zhenech> damn, don't see it it the api
|
|
[11:30] <Zhenech> must have confused it with classes in my head
|
|
[11:32] <sean797> kristian_, Zhenech i think that API is just badly named.
|
|
[11:32] <sean797> kristian_ please try hammer proxy import-classes like Zhenech suggested
|
|
[11:34] <kristian_> be back in a second...
|
|
[11:36] <kristian_> sean797: Zhenech: it worked!
|
|
[11:37] <Zhenech> cool
|
|
[11:37] <Zhenech> then we should update the apidocs
|
|
[11:37] <sean797> Zhenech++
|
|
[11:38] <kristian_> Zhenech: yeah... that could help! :D ... BTW... I also noticed that the command did indeed add the new environment but it did not delete deleted ones... :(
|
|
[11:39] <wandering_vagran> hammer can do the job of importing environments from Puppet? Didn't know that...
|
|
[11:40] <wandering_vagran> ah kristian_ has faced a small (shall I say) problem
|
|
[11:40] <wandering_vagran> :)
|
|
[11:40] <kristian_> wandering_vagran: yeah... it worked just now! I'm on 1.15.2-1
|
|
[11:56] <kristian_> sean797: Zhenech: wandering_vagran: I was wrong! "import-classes" is working as expected. I had a deleted environment still associated with a hostgroup. "hammer proxy import-classes --id 1" failed silently though... user feedback should be improved and the naming of "import-classes" is very confusing...
|
|
[11:58] <sean797> kristian_, please raise an issue for each thing http://projects.theforeman.org/projects/foreman/issues/new
|
|
[11:59] <sean797> kristian_, also a PR if you have time and expertise or want to learn :)
|
|
[11:59] <Zhenech> what he said ^^
|
|
[12:02] <kristian_> sean797: great! I'll definitely look into it. I indeed would like to learn. Thanks for the pointers!
|