You could try the 'csv' module[1] as well: hammer csv hosts --export

Import is functional as well, it will create or update a host.

It is katello-centric (uses orgs/locs, for example), but redmine issues for
bugs and rfe welcome.

[1] https://github.com/Katello/hammer-cli-csv

On Fri, Sep 16, 2016 at 8:08 AM, Anurag <gnu...@gmail.com> wrote:

> On Thu, Sep 15, 2016 at 10:43 PM, Thomas Cheng <guolin.ch...@gmail.com>
> wrote:
>
>> Is there a project to check foreman configs -- system variables,
>> operating systems, networks, hosts, hostgroups, etc -- into git for version
>> control?  sync back from git to foreman (write operation) is optional as
>> that is kind of dangerous operation which could affect all hosts defined.
>>
>
> Not sure if there's a separate project for this, but have you tried
> extracting these data points via hammer cli? For example:
> $ hammer --csv host list
>
> Anurag
>
> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-users+unsubscr...@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to