Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Dynamic list of files managed from hiera
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Guillem Liarte  
View profile  
 More options Nov 1 2012, 9:35 am
From: Guillem Liarte <guillem.lia...@googlemail.com>
Date: Thu, 1 Nov 2012 06:35:46 -0700 (PDT)
Local: Thurs, Nov 1 2012 9:35 am
Subject: Dynamic list of files managed from hiera

All,

I use hiera in an straight way, for example:

---
mode: '0644'

that makes easy to do:

file { somefile:
     mode => hiera('mode')

}

So far so good. But what about more complex structures? I would liek to be
able to handle hashes of data like this:

in yaml:

---
file_list:
    - file1:
      fname: 'config.conf'
      fpath: '/path/to/destination/'
      fmode: '640'
      fowner: 'sam'
      fgroup: 'admin'
  - file2:
      fname: 'parameters.xml'
      fpath: '/path/to/destination/'
      fmode:  '660'
      fowner: 'tom'
      fgroup:  'finance'

Is it possible to handle this right now? What can I do in order to get a
list of items that contain attributes?  I understand taht this type of
parsing happens for example when an ENC produces YAML in this way:

clasees:
   myapp:
      parameter1: 'value1'
      parameter2: 'value2'

Can I do something similar to this with puppet-hiera?

And also, is the a decent piece of *documentation* for hiera and
hiera-puppet? there seems to be almost nothing but fragmented
documentation. I am happy top read and research all this in my own but I
have struggled finding documentation.

Many thanks in advance!

Guillem


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.