Re: [Puppet Users] Hiera question

2016-07-01 Thread Alex Samad
Okay I have progressed further with the help of the blog my hiera.yaml looks like this --- :backends: - yaml # Hierarchy # First takes precedence ??? I think :hierarchy: # node specific - "nodes/%{::trusted.certname}" # OS specific #- "environment/%{server_facts.environment}" - "%

Re: [Puppet Users] Hiera question

2016-07-01 Thread Alex Samad
Hi Thanks for replying But I have been looking not saying it's not there but a quick URL to start with might be helpful. There is lots of doco. I've done the learning vm twice but it didn't answer the questions I'm looking Found this which seems to have all the answers for now http://www.slashr

Re: [Puppet Users] Hiera question

2016-07-01 Thread Henrik Lindberg
On 01/07/16 06:20, Alex Samad wrote: Hi I have in my common.yaml --- classes: - ssh How do I say if the OS is linux then add that class ? I think it is best if you try to read the documentation and look at tutorials. This very first step is clearly shown there. - henrik Thanks Alex

[Puppet Users] Hiera question

2016-06-30 Thread Alex Samad
Hi I have in my common.yaml --- classes: - ssh How do I say if the OS is linux then add that class ? Thanks Alex -- 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 e

[Puppet Users] Hiera question: Nested hash

2014-05-02 Thread Sans
In my module, I have something like this to installed some base packages: package { > 'rpm-mon-ntp': > ensure => latest, > require => Yumrepo[ "mon-repo-test" ]; > > 'rpm-mon-utils': > ensure => installed, > require => Yumrepo[ "mon-utils-test" ]; > >'rpm-mon

Re: [Puppet Users] Hiera Question: hiera.rb

2013-03-07 Thread Jakov Sosic
On 03/07/2013 06:31 PM, GregC wrote: > > How does Hiera know which hiera.rb to call. I have serveral hiera rb > scripts here. How can I know which one Hiera will actually use? > > /etc/puppet/modules/hiera-puppet/lib/puppet/parser/functions/hiera.rb > /usr/lib/ruby/gems/1.8/gems/hiera-0.3.0/lib/h

[Puppet Users] Hiera Question: hiera.rb

2013-03-07 Thread GregC
How does Hiera know which hiera.rb to call. I have serveral hiera rb scripts here. How can I know which one Hiera will actually use? /etc/puppet/modules/hiera-puppet/lib/puppet/parser/functions/hiera.rb /usr/lib/ruby/gems/1.8/gems/hiera-0.3.0/lib/hiera.rb /usr/lib/ruby/gems/1.8/gems/hiera-puppet

[Puppet Users] Hiera question -- accessing a hash from an erb template

2013-02-11 Thread Gonzalo Servat
Hi All, Simple question (hopefully). Say I have this: common.yaml: foo: bar: 10GB ... and in the manifest: $config = hiera('foo') file { '/etc/foo.conf': content => template('module/foo.erb') } ... and in foo.erb: file_size: <%= @config['bar'] %> For some reason, the output in /etc/f