Get a yaml from external source and apply it

asked 2017-09-12 01:57:53 -0600

Jonathan Schaeffer gravatar image

In my IT team, we use an external tool to describe and manage a tree of directories with ownership and permissions. This tool is able to provide the description of the directories in a custom format (let's say yaml).

Is it possible for a puppet module to get this yaml description and realize the directories described in that file ? The idea is like an ENC but for managing a file resource.

Is it even possible ? How would I do this ?

edit retag flag offensive close merge delete


I would supply that yaml to hiera, either 'pushed' to your master, or via a custom backend

DarylW gravatar imageDarylW ( 2017-09-13 06:23:25 -0600 )edit

Good idea. I'm also thinking of embedding this in a script and getting independent from the master. The script would : 1. download the yaml file 2. execute a puppet apply

Jonathan Schaeffer gravatar imageJonathan Schaeffer ( 2017-09-15 10:06:42 -0600 )edit