Pretty sure I ran across this same issue. Try pulling the :: out of the variable name. e.g. %{environment}

- Jeff

On 05/08/2014 11:21 AM, Israel Calvete wrote:
Yes, hiera file is in /etc/puppet/hiera.yaml

On Thursday, May 8, 2014 6:15:34 PM UTC+2, Brendan O'Bra wrote:

    Where is your hiera.yaml located? Default for puppet is
    /etc/puppet/hiera.yaml


    On Thu, May 8, 2014 at 8:21 AM, Israel Calvete <ical...@gmail.com
    <javascript:>> wrote:

        Hi,

        This is my hiera config.

        /---/
        /:backends: - yaml/
        /:hierarchy: - %{::environment}/
        /            - common/
        /:yaml:/
        /  :datadir:
        
"/usr/share/puppet/configuration/%{::environment}/hiera/current/hieradata"/
        /:puppet:/
        /  :datasource: data/

        It seems if puppet master can't resolve enviroment variable but
        if I change /%{::environment}/ for a fix value, all works fine.

        In a client the error is...

        /err: Could not retrieve catalog from remote server: Error 400
        on SERVER: Could not find data item mysql_monitor_user in any
        Hiera data file and no default supplied at..../

        In the puppetmaster ( repupuppet himselft ) the error is ...

        /err: Could not retrieve catalog from remote server: Error 400
        on SERVER: malformed format string - %S at/

        Both for line...

        /$cndb_db = hiera('cndb_db')/


        My hiera version is 1.2.1

        My puppet version is 2.7.23

        Thanks!!!!


        --
        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 <javascript:>.
        To view this discussion on the web visit
        
https://groups.google.com/d/msgid/puppet-users/c57ff48d-af64-4cb4-a81c-19f98ec5bb5b%40googlegroups.com
        
<https://groups.google.com/d/msgid/puppet-users/c57ff48d-af64-4cb4-a81c-19f98ec5bb5b%40googlegroups.com?utm_medium=email&utm_source=footer>.
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.




    --
    GVoice: 707.410.0371
    LinkedIn: http://www.linkedin.com/in/brendanobra
    <http://www.linkedin.com/in/brendanobra>

--
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/0cafffa8-3153-4770-8ef6-d9a0c0d4622d%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/0cafffa8-3153-4770-8ef6-d9a0c0d4622d%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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/536BAF88.9010501%40bancvue.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to