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}"
- "%
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
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
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
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
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
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
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