Thanks Steven, I uploaded my code
to https://github.com/roadtest/plm-accounts and I will study your code in
the mean time.
cheers,
carl
On Sunday, February 10, 2013 12:07:15 AM UTC-5, Steven wrote:
>
> I'm not noticing the problem, but maybe it would help to see some other
>
uid]
$real_name = $ssh_user_hash[$name][FullName]
notice ( "$user_uid is $real_name ")
plm-accounts::virtual { "$name" :
uid => $user_uid,
realname => $real_name,
}
plm-accounts::add_ssh_key { $name :
key => "${ssh_user_hash[$name][
This is very useful! Thanks for sharing!
On Friday, June 24, 2011 3:03:34 AM UTC-4, Nan Liu wrote:
>
> On Thu, Jun 23, 2011 at 7:46 AM, Patrick >
> wrote:
> > Is there anywhere that lists the available built-in variables aside
> > from facter and
> http://docs.puppetlabs.com/guides/faq.html#are-
em
> # $user_defs[$name]['comment'] to access the user's comment field
> }
>
>
> Steven
>
>
> --
> From: yg...@comcast.net
> Subject: Re: [Puppet Users] hiera query yaml parameters
> Date: Sun, 3 Feb 2013 19:19:25 -0500
>
-
> From: yg...@comcast.net
> Subject: Re: [Puppet Users] hiera query yaml parameters
> Date: Sun, 3 Feb 2013 19:19:25 -0500
> To: puppet...@googlegroups.com
>
> Could you show your solution, please ?
>
> I would like to see how you did it.
>
> On Feb 3, 2013,
I figure out the solution.
Using the create_resource to convert YAML to a hash array, then I can query
retrieve every individual value. If there is better way, feel free to
share with group.
carl
On Saturday, February 2, 2013 3:25:33 PM UTC-5, roadtest wrote:
>
> Hello,
>
> I
Hello,
I have a yaml data file containing user account with following information.
#more users.yaml
---
os_users:
user1:
locked: false
comment: System Operator
uid: '700'
gid: '700'
groups:
- admin
- sudonopw
sshkeys:
- ssh-rsa
B3NzaC1yc2EBIwAAAQEAwLBhQefRiXHSbVNZYKu2o8
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
, roadtest wrote:
>
> Hello,
>
> I follow http://puppetlabs.com/blog/first-look-installing-and-using-hiera/to
> try hiera on my 3.0.1 puppet master. I follow the instruction except
> my environment is ubuntu. Here is my /etc/hiera.yaml
> ---
> :hierarchy:
> - %{op
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:
stem}
> - common
>
>
> All the examples here http://docs.puppetlabs.com/hiera/1/hierarchy.html have
> the double-colon notation
>
> Also, just to be thorough, what does "facter -p operatingsystem" return ?
>
> On Dec 25, 2012, at 10:48 AM, roadtest wrote:
ec 24, 2012, at 10:31 PM, roadtest wrote:
>
> > Hello,
> >
> > I follow
> http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ to try
> hiera on my 3.0.1 puppet master. I follow the instruction except my
> environment is ubuntu. Here is my /etc/hiera.yam
mands 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-i
Hello,
I follow http://puppetlabs.com/blog/first-look-installing-and-using-hiera/
to try hiera on my 3.0.1 puppet master. I follow the instruction except
my environment is ubuntu. Here is my /etc/hiera.yaml
---
:hierarchy:
- %{operatingsystem}
- common
:backends:
- yaml
:yaml:
:data
14 matches
Mail list logo