Hey Christoph

On 7 April 2016 at 09:15, Christoph Andreas Torlinsky
<christ...@nuagenetworks.net> wrote:
> Hello there, i'm looking for a puppet types generator tool / toolkit as we
> have an API (Restful interface) and spec files that we would like
> to convert to puppet types for some use. If anyone has any tips, that is
> most welcomed.
>

I'm aware of two public projects that do this currently (if other
folks know of others please link to them here, that would be great to
see):

The Puppet Labs DSC module generates the types based on DSC MOF files:

https://github.com/puppetlabs/puppetlabs-dsc/blob/master/build/dsc/templates/dsc_type.rb.erb

And my Kubernetes module
(https://github.com/garethr/garethr-kubernetes/) generates all the
types and providers based on a Swagger specification. You can see the
implementation of the generator in this repo:
https://github.com/garethr/puppet-swagger-generator. The code is
pretty rough but it works really well.

I'm not aware of any higher-level tools yet for doing this. It's not a
super common pattern yet, but my guess is it will become more and more
interesting/powerful as more and more software ships with first class
APIs for integration. If anyone wants to chat more about that problem
let me know.

Cheers

Gareth


> many thanks,
>
> c
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/d714b52a-c7f7-4104-ba1a-cb697a893d0a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Gareth Rushgrove
@garethr

devopsweekly.com
morethanseven.net
garethrushgrove.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAFi_6yLkK_TaoCKyrESjbALGzcL%2BSe1YY4c8mNj1My1w0hs6qQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to