On Mon, Mar 9, 2015 at 8:21 AM, Raphaël Pinson <
[email protected]> wrote:
> Hi Felix,
>
> By default, Puppet 3 stringifies all facts. And apparently,
> "--stringify_facts false" does not work with puppet apply…
>
For any boolean setting, "--some_boolean false" doesn't work, and you
instead need to use "--no-some_boolean".
So in this case, this seems to work:
puppet apply --parser=future --no-stringify_facts -e 'notify{
"${os['name']}": }'
Kylo
>
> Raphaël
>
>
> On Monday, March 9, 2015 at 4:13:33 PM UTC+1, Felix Frank wrote:
>>
>> Hi,
>>
>> me I'm now utterly confused by how this (not) works in the wild.
>>
>> $ bundle exec puppet apply -e 'notice $os'
>> Notice: Scope(Class[main]): {"name"=>"Debian", "family"=>"Debian",
>> "release"=>{"major"=>"jessie/sid", "full"=>"jessie/sid"},
>> "lsb"=>{"distcodename"=>"sid", "distid"=>"Debian",
>> "distdescription"=>"Debian GNU/Linux unstable (sid)",
>> "distrelease"=>"unstable", "majdistrelease"=>"unstable"}}
>>
>> OK, but
>>
>> $ bundle exec puppet apply -e 'notice $os[name]'
>> Error: os is not a hash or array when accessing it with name at line 1
>> on node hypnos.mpex.net
>>
>> $ bundle exec puppet apply --parser=future -e 'notice $os["name"]'
>> Error: Evaluation Error: The value 'name' cannot be converted to
>> Numeric. on node hypnos.mpex.net
>>
>> This is Puppet 3.7.3. Please tell me I'm Doing It Wrong.
>>
>> Thanks,
>> Felix
>>
>> On 03/09/2015 03:54 PM, Johan De Wit wrote:
>> > Again , I'm loosing the fight
>> >
>> > When i split up my rspec, it works, but the demo test always fails,
>> > There is something I overlook.
>> >
>> > Maybe someone else sees my mistake ??
>> >
>> > https://github.com/witjoh/rspec
>> >
>> > Grts
>> >
>> > Johan
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/902db327-b5fb-4289-9123-20066c0646be%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/902db327-b5fb-4289-9123-20066c0646be%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
Kylo Ginsberg | [email protected] | irc: kylo | twitter: @kylog
*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Early Adopter discount
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter>
*
*—**save $349!*
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/CALsUZFE8iYut%2BadfWpWhbHU7ZRVUOt%3DFiVL7PyKT9JWMpBk%3DVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.