Thanks for the suggestions Rich.

I did try double quotes and the result if the same so still no progress.

Hoping someone out there has a colon in their data and can point me in the 
right direction.

On Friday, 4 July 2014 15:37:49 UTC-4, Rich Burroughs wrote:
>
> Ah ok. I was looking at this page:
>
> http://www.yaml.org/YAML_for_ruby.html
>
> Which is linked here:
>
> http://docs.puppetlabs.com/hiera/1/data_sources.html
>
> It seems to indicate that you don't need to escape colons in single quoted 
> strings but maybe I'm misreading it.
>
> I don't think I've ever had a colon in my data. You might try double 
> quotes too if you haven't. Or maybe someone who knows for sure will pipe in 
> :)
>
>
> Rich 
>
> On Friday, July 4, 2014, Marc Whittaker <[email protected] <javascript:>> 
> wrote:
>
>> Actually if I remove the backslash the result is instead
>>
>> marcstest1.password='CheckingThis'
>>
>>
>> and if I shift the backslash to after the colon I get 
>>
>> marcstest1.password='Checking:\ This'
>>
>>
>> On Friday, 4 July 2014 14:28:09 UTC-4, Rich Burroughs wrote:
>>>
>>> Hi Marc,
>>>
>>> Have you tried removing that backslash? I don't think you need to escape 
>>> the colon.
>>>
>>>
>>> Rich 
>>>
>>> On Friday, July 4, 2014, Marc Whittaker <[email protected]> wrote:
>>>
>>>> Hi Everyone,
>>>>
>>>> I have run into an issue using puppet with hiera. The situation is I 
>>>> have the following in a yaml file
>>>>
>>>> - marcstest1.password='Checking\: This'
>>>>
>>>> When I try to fill this into a file using a template similar to below 
>>>> this is what gets put into the file instead
>>>>  
>>>> # General Settings
>>>> <% props.each do |prop| -%>
>>>> <%= prop %>
>>>> <% end -%>
>>>>
>>>> marcstest1.password='Checking\This'
>>>>  
>>>> when the expected result is marcstest1.password='Checking: This'
>>>>
>>>> Can anyone tell me what I am doing wrong?
>>>>
>>>> -- 
>>>> 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 [email protected].
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/puppet-users/b08b25d5-621f-467c-96a2-92a2cf9231e2%
>>>> 40googlegroups.com 
>>>> <https://groups.google.com/d/msgid/puppet-users/b08b25d5-621f-467c-96a2-92a2cf9231e2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>  -- 
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/fddcac35-1bc7-474d-b892-8450e2201e6d%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/puppet-users/fddcac35-1bc7-474d-b892-8450e2201e6d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ae2d8365-512c-4b90-b228-87d91fecc41d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to