Thank you for your response! I was moving to Sweden and it took my a while 
to get completely setup here so thats why my reaction is a bit late. This 
look like a viable way, although I am missing any information on how to 
create/import a host. There is no explanation about in any of the examples. 
Is this also possible or is this something that still needs to be 

Op maandag 15 augustus 2016 17:49:46 UTC+2 schreef Michael Hofer:
> Hi there 
> On Mon, 15 Aug 2016 09:01:15 -0400 
> Alvin Starr < <javascript:>> wrote: 
> > I would +1 for the idea of using the CSV tools to upload a 
> configuration. 
> > 
> > I have tried to use the CSV files to rebuild a configuration from 
> > scratch and it kind of works but needs some work to fill out the corner 
> > cases. 
> > 
> > The upside of using the CSV import is that it will be part of the code 
> > base and should see fixes as the code changes over time. 
> > 
> > It should be possible to build a generator to take your client 
> > configuration and generate a set of CSV files. 
> > Once you have the CSV files you can then run them against the hammer 
> > interface and you have a fully configured system. 
> [...] 
> You could also use the Python CLI tool foreman-yml [1]. It allows you to 
> basically define your whole Foreman configuration in a YAML file and then 
> execute it to apply it to your Foreman instance. In addition it can also 
> dump 
> an existing Foreman configuration into a YAML file. 
> The advantage to other CLI tools like hammer is that you don't need to 
> resolve 
> all the template IDs etc. on your own. Instead you can define the 
> canonical 
> name for it and foreman-yml will take care of resolving all IDs and 
> linking 
> them accordingly. Here an example to add a new operating system: 
> os: 
>   - name: Ubuntu 
>     major: 14 
>     minor: 4 
>     description: Ubuntu 14.04 LTS 
>     family: Debian 
>     release-name: trusty 
>     password-hash: SHA512 
>     architecture: 
>       - name: x86_64 
>     provisioning-template: 
>       - name: Ubuntu PXE 
>       - name: Ubuntu Preseed 
>     medium: 
>       - name: Ubuntu Mirror 
>     partition-table: 
>       - name: Ubuntu Default 
>     parameters: 
>       version: "14.04" 
>       codename: "trusty" 
> Maybe not all possible configuration options are currently implement. I 
> think 
> the Location and Organization part is missing as we haven't had any use 
> for it 
> so far but feel free to contribute or open pull requests and issues. :) 
> Please note that the tool can currently on create or dump configs. Already 
> existing objects won't be updated but this shouldn't be too hard to 
> implement. 
> [1] 
> Cheers 
> Michael 

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to