What do the following commands return ?
hiera -c /etc/puppet/hiera.yaml ssh-packages
hiera -c /etc/puppet/hiera.yaml operatingsystem=Ubuntu ssh-packages
On Dec 24, 2012, at 10:31 PM, roadtest wrote:
> Hello,
>
> I follow http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ to
Further testing shows hiera can parse dynamic variable using scope file,
but it can't parse facter value.
root@vm1:~# hiera --yaml /var/tmp/scope.yaml ssh_packages
["openssh-server"]
root@vm1:~# more /var/tmp/scope.yaml
operatingsystem: Ubuntu
root@vm1:~# hiera ssh_packages
nil
root@vm1:~# hier
Thanks for your reply! Here is the output.
root@vm1:/etc/puppet/modules/ssh/manifests# hiera -c /etc/puppet/hiera.yaml
ssh_packages
nil
root@vm1:/etc/puppet/modules/ssh/manifests# hiera -c /etc/puppet/hiera.yaml
operatingsystem=Ubuntu ssh_packages
ssh_packages
It appears ssh_packages is not re
OK. Consider:
--
http://docs.puppetlabs.com/facter/1.6/core_facts.html#summary
Facts appear in Puppet as normal top-scope variables
--
--
http://docs.puppetlabs.com/hiera/1/configuring.html#format
Each top-level key in the hash must be a Ruby symbol with a colon (:) prefix.
The avai
Hi,
I got the same errors after change from %{operatingsystem} to
%{::operatingsystem}.
In the mean time, I did similar testing using puppet enterprise(default
puppet is 2.7.x), which is running hiera 0.3.0 , without any problem. It
nicely parse operatingsystem to Ubuntu and worked like a char
Is there a way of determining spec testing reports of manifests? I'm
adding tests to an existing deployment and it'd be useful to find out what
code isn't being tested.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion o
Greetings,
I'm trying to add ppa:nginx/stable repo for Ubuntu 12.04.1 LTS.
Server: puppetmaster-common 3.0.1-1puppetlabs1
Agent: puppet 2.7.11
And when I try to apply manifest - getting:
puppet agent -t
info: Caching catalog for wproxy71.tpnt.net
err: Failed to apply catalog: Could not find de
Is that directory managed as a resource with puppet? Puppet doesn't recognize
non-managed resources as dependencies.
--
Brian Lalor
bla...@bravo5.org
On Dec 25, 2012, at 9:22 PM, Andrey Ageyev wrote:
> The folder - /etc/apt/sources.list.d exists.
> Does anybody know what's can be wrong?
--
This directory exists in the fresh ubuntu system.
I only found this, but there is no solution or workaround.
On Dec 26, 2012, at 4:31 AM, Brian Lalor wrote:
> Is that directory managed as a resource with puppet? Puppet doesn't recognize
> non-managed resources as dependencies.
>
> --
> Brian
Fixed by removing dependency File[$sources_list_d] in apt/manifests/ppa.pp
around line 33:
require => [
File[$sources_list_d],
Package["${package}"],
],
to
require => Package["${package}"],
среда, 26 декабря 2012 г., 4:22:35 UTC+2 пользователь Andrey Ageyev написал:
>
> Greetings,
Any Help?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/0H_inZHA98wJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe f
The right syntax should be following. The key(ssh_packages) should be put
before value assignment and it returns the right value.
#hiera -c /etc/puppet/hiera.yaml ssh_packages operatingsystem=Ubuntu
["openssh-server"]
On Tuesday, December 25, 2012 10:48:25 AM UTC-5, roadtest wrote:
>
> Thanks fo
Hi,
sorry for stupid question, but how I can specify package depends on class
with parameters?
class nginx::install (
$nginx = "nginx-light",
$ensure = 'installed'
) {
include nginx::service
package { $nginx :
ensure => $ensure,
notify => Class["nginx::service"],
}
}
Must depend on:
apt
I fixed the problem by restarting puppetmaster and all dynamic facter
variables are parsed properly. Thanks a lot to people who respond my
question during Christmas. Now I need to explain to my wife where I am
during Christmas:-)
Cheers,
carl
On Monday, December 24, 2012 10:31:18 PM UTC-5, r
I wish hiera documentation can be brought up to date soon. That is sure to
help many people who just start using hiera.
Thanks,
carl
On Monday, November 19, 2012 12:57:09 PM UTC-5, Michael Hall wrote:
>
> Yup, we have some work to do on this. I recently joined the Puppet Labs
> documentation t
15 matches
Mail list logo