Re: [Puppet Users] How to create different types from the same hiera data

2014-06-05 Thread jcbollinger
On Wednesday, June 4, 2014 10:34:11 AM UTC-5, Vadym Chepkov wrote: On Wednesday, June 4, 2014 9:52:44 AM UTC-4, Felix.Frank wrote: Hi, On 06/04/2014 03:32 PM, Vadym Chepkov wrote: File[ensure=directory] - Mount[type=nfs,ensure=mounted] Is this possible or I have to maintain two

[Puppet Users] How to create different types from the same hiera data

2014-06-04 Thread Vadym Chepkov
Hi, I would like to have mounts entries and mount points created using create_resources from the same hiera data. I am thinking to describe directories like this: --- my::mounts: /dir1: device: server1:/share1 options: rw,soft,noatime owner: user1 mode: 0644 /dir2:

Re: [Puppet Users] How to create different types from the same hiera data

2014-06-04 Thread Felix Frank
Hi, On 06/04/2014 03:32 PM, Vadym Chepkov wrote: File[ensure=directory] - Mount[type=nfs,ensure=mounted] Is this possible or I have to maintain two sets of data? no, that is fine. The 'puppet magic' you are looking for is a defined type that accepts all the parameters you want to declare in

Re: [Puppet Users] How to create different types from the same hiera data

2014-06-04 Thread Vadym Chepkov
On Wednesday, June 4, 2014 9:52:44 AM UTC-4, Felix.Frank wrote: Hi, On 06/04/2014 03:32 PM, Vadym Chepkov wrote: File[ensure=directory] - Mount[type=nfs,ensure=mounted] Is this possible or I have to maintain two sets of data? no, that is fine. The 'puppet magic' you are looking

Re: [Puppet Users] How to create different types from the same hiera data

2014-06-04 Thread Trevor Vaughan
Vadym, This is not currently possible (but is a VERY wanted feature going back years). Most of us just use an Exec. Trevor On Wed, Jun 4, 2014 at 11:34 AM, Vadym Chepkov vchep...@gmail.com wrote: On Wednesday, June 4, 2014 9:52:44 AM UTC-4, Felix.Frank wrote: Hi, On 06/04/2014 03:32