Hiera lookup bug?

27 views
Skip to first unread message

Dirk Heinrichs

unread,
May 27, 2014, 2:01:42 AM5/27/14
to puppet...@googlegroups.com
Hi,

I'm facing a strange problem with Hiera, where a trailing 0 (zero) is cut off a value, for example:

myclass::version: 1.10

resolves to 1.1 when the class is applied on an agent.

The agent runs Puppet 3.4.3 with Hiera 1.3.1 on Windows Server 2008R2.

As a workaround I'm now passing the value to the class as a default parameter instead of through hiera.

Any ideas how to fix this?

Bye...

    Dirk
--

Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: d...@recommind.com
Skype: dirk.heinrichs.recommind
www.recommind.com

R.I.Pienaar

unread,
May 27, 2014, 4:16:21 AM5/27/14
to puppet...@googlegroups.com


----- Original Message -----
> From: "Dirk Heinrichs" <d...@recommind.com>
> To: puppet...@googlegroups.com
> Sent: Tuesday, May 27, 2014 7:01:20 AM
> Subject: [Puppet Users] Hiera lookup bug?
>
> Hi,
>
> I'm facing a strange problem with Hiera, where a trailing 0 (zero) is
> cut off a value, for example:
>
> myclass::version: 1.10
>
> resolves to 1.1 when the class is applied on an agent.
>
> The agent runs Puppet 3.4.3 with Hiera 1.3.1 on Windows Server 2008R2.
>
> As a workaround I'm now passing the value to the class as a default
> parameter instead of through hiera.
>
> Any ideas how to fix this?

Quote the number, 1.10 is a string

Dirk Heinrichs

unread,
May 27, 2014, 4:23:08 AM5/27/14
to puppet...@googlegroups.com
Am 27.05.2014 10:15, schrieb R.I.Pienaar:

Quote the number, 1.10 is a string 

Ah, OK. Thought that everything is a string in hiera.

Thanks...

Denmat

unread,
May 27, 2014, 4:27:38 AM5/27/14
to puppet...@googlegroups.com
Stick it in quotes?

On 27 May 2014, at 16:01, Dirk Heinrichs <d...@recommind.com> wrote:

Hi,

I'm facing a strange problem with Hiera, where a trailing 0 (zero) is cut off a value, for example:

myclass::version: 1.10

resolves to 1.1 when the class is applied on an agent.

The agent runs Puppet 3.4.3 with Hiera 1.3.1 on Windows Server 2008R2.

As a workaround I'm now passing the value to the class as a default parameter instead of through hiera.

Any ideas how to fix this?

Bye...

    Dirk
--
<Logo.gif>

Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: d...@recommind.com
Skype: dirk.heinrichs.recommind
www.recommind.com

--
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 email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53842A30.9000306%40recommind.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages