Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-05 Thread Henrik Lindberg

On 05/03/16 09:42, Sans wrote:

Can this look-up done from agent as well?

-S



The first release of lookup runs on the master side, but it uses the 
last facts posted by the node; so result is node specific. No way 
currently to run it from an agent against the master though.


If you are set up so that puppet apply works on the agent, then lookup 
will also work there.


- henrik



On Friday, March 4, 2016 at 4:52:05 PM UTC, Henrik Lindberg wrote:


Recent would be >= 4.2 wrt. lookup functionality.
Sorry.
- henrik


--
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+unsubscr...@googlegroups.com
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/2a78f835-cef9-4e84-8871-0f9ba6fe347b%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.



--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/56DAEB48.1000206%40puppetlabs.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-05 Thread Sans
Can this look-up done from agent as well?

-S


On Friday, March 4, 2016 at 4:52:05 PM UTC, Henrik Lindberg wrote:

>
> Recent would be >= 4.2 wrt. lookup functionality. 
> Sorry. 
> - henrik 
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2a78f835-cef9-4e84-8871-0f9ba6fe347b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-04 Thread Henrik Lindberg

On 04/03/16 16:41, Sans wrote:


I'm on v3.8.4
Can it be run from agent? If it does, then it gonna solve my another
issue as well.



Recent would be >= 4.2 wrt. lookup functionality.
Sorry.
- henrik



-San


On Thursday, March 3, 2016 at 6:10:33 PM UTC, Henrik Lindberg wrote:


If you are on a newer puppet version where the lookup command is
available you can use 'puppet lookup --explain your::variable'
as it will tell you how it searched for the value.

- henrik


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/


--
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+unsubscr...@googlegroups.com
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/8f38c396-c514-40f0-ac8c-b36d4406d4a2%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.



--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/56D9BD25.5040803%40puppetlabs.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-04 Thread Sans

I'm on v3.8.4
Can it be run from agent? If it does, then it gonna solve my another issue 
as well.

-San


On Thursday, March 3, 2016 at 6:10:33 PM UTC, Henrik Lindberg wrote:
>
>
> If you are on a newer puppet version where the lookup command is 
> available you can use 'puppet lookup --explain your::variable' 
> as it will tell you how it searched for the value. 
>
> - henrik 
>
>
> -- 
>
> Visit my Blog "Puppet on the Edge" 
> http://puppet-on-the-edge.blogspot.se/ 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/8f38c396-c514-40f0-ac8c-b36d4406d4a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-03 Thread Henrik Lindberg

On 03/03/16 17:46, Trevor Vaughan wrote:

You can try using the hiera command line tool on your hiera.yaml file.

hiera -c '/path/to/hiera.yaml' your::variable.



If you are on a newer puppet version where the lookup command is 
available you can use 'puppet lookup --explain your::variable'

as it will tell you how it searched for the value.

- henrik


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/56D87E05.4060501%40puppetlabs.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-03 Thread Trevor Vaughan
You can try using the hiera command line tool on your hiera.yaml file.

hiera -c '/path/to/hiera.yaml' your::variable.

You may also need to check your server logs to see if there is an error.

If you're using the Java Pupperserver, you may want to restart it due to
the change in environment caching.

Finally, you can add a notify to the code in question and see what comes
out the other side.

Trevor

On Thu, Mar 3, 2016 at 9:02 AM, Sans  wrote:

>
> Looks like to me it's not getting value from the Hiera at all. How can I
> make sure of that?
>
> -S
>
> On Thursday, March 3, 2016 at 1:28:51 PM UTC, Trevor Vaughan wrote:
>>
>> Hi Sam,
>>
>> Are you 100% sure that $wp_multisite is getting the value from Hiera?
>>
>> In this case, it looks like the value is empty.
>>
>> Thanks,
>>
>> Trevor
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/8cc362dc-cc0e-4e5a-bde2-aeec9045ef29%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

-- This account not approved for unencrypted proprietary information --

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANs%2BFoVz03ChxSvtJaPxHiECFAbH1M4UvMXgA14TOupzWtuiOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-03 Thread Sans

Looks like to me it's not getting value from the Hiera at all. How can I 
make sure of that?

-S

On Thursday, March 3, 2016 at 1:28:51 PM UTC, Trevor Vaughan wrote:
>
> Hi Sam,
>
> Are you 100% sure that $wp_multisite is getting the value from Hiera?
>
> In this case, it looks like the value is empty.
>
> Thanks,
>
> Trevor
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/8cc362dc-cc0e-4e5a-bde2-aeec9045ef29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-03 Thread Trevor Vaughan
Hi Sam,

Are you 100% sure that $wp_multisite is getting the value from Hiera?

In this case, it looks like the value is empty.

Thanks,

Trevor

On Thu, Mar 3, 2016 at 5:23 AM, Sans  wrote:

>
> Hi guys,
>
> Suddenly started getting this error, which I cannot understand why I'm
> getting this:
>
>
> Error: Evaluation Error: Error while evaluating a Function Call, "" is not
> a boolean.  It looks to be a String at /usr/local/K101/puppet/modules/apps
> /manifests/app.pp:32:5 on node..
>
> the line 32 is: validate_bool($wp_multisite), which is coming from hiera
> and set to true
> Running PM in foreground or running the agent with --trace doesn't
> provide any additional information. I'm running out of ideas. Can anyone
> please help? Thanks in advance!!
>
> -S
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/b6cc0809-a742-4f29-828b-27da5eda904e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

-- This account not approved for unencrypted proprietary information --

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANs%2BFoUoeQW6ScDhMEZE4x7UOjBJeaGdw9Kmw9TnQphmPE%3DPwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] validate_bool() throwing in error syaing the value not a boolean

2016-03-03 Thread Sans

Hi guys,

Suddenly started getting this error, which I cannot understand why I'm 
getting this:


Error: Evaluation Error: Error while evaluating a Function Call, "" is not 
a boolean.  It looks to be a String at /usr/local/K101/puppet/modules/apps/
manifests/app.pp:32:5 on node..

the line 32 is: validate_bool($wp_multisite), which is coming from hiera 
and set to true
Running PM in foreground or running the agent with --trace doesn't provide 
any additional information. I'm running out of ideas. Can anyone please 
help? Thanks in advance!!

-S

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b6cc0809-a742-4f29-828b-27da5eda904e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.