[11:21] == kristian_ [5512f402@gateway/web/freenode/ip.85.18.244.2] has joined #theforeman [11:22] 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] pretty sure it can [11:24] (as you can via api too) [11:25] hammer proxy import-classes [11:25] that should do it [11:25] oh wait [11:25] that's classes, not envs [11:25] oh.. :( [11:29] 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] damn, don't see it it the api [11:30] must have confused it with classes in my head [11:32] kristian_, Zhenech i think that API is just badly named. [11:32] kristian_ please try hammer proxy import-classes like Zhenech suggested [11:34] be back in a second... [11:36] sean797: Zhenech: it worked! [11:37] cool [11:37] then we should update the apidocs [11:37] Zhenech++ [11:38] 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] hammer can do the job of importing environments from Puppet? Didn't know that... [11:40] ah kristian_ has faced a small (shall I say) problem [11:40] :) [11:40] wandering_vagran: yeah... it worked just now! I'm on 1.15.2-1 [11:56] 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] kristian_, please raise an issue for each thing http://projects.theforeman.org/projects/foreman/issues/new [11:59] kristian_, also a PR if you have time and expertise or want to learn :) [11:59] what he said ^^ [12:02] sean797: great! I'll definitely look into it. I indeed would like to learn. Thanks for the pointers!