FAQ
Hiera was properly working in my environment. But puppet was looking at old
version even when I have the latest hiera gem installed. So I could'nt
use json backend. But puppet is not looking at my latest hiera gem. Not
sure when went wrong here.

Scenario:
I have installed hiera couple of months back. So the gem was installed
under

/opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
/opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0

Later when I updated to new version of hiera then it installed (via gem
install) under

/opt/puppet/lib/gems/1.8/gems/hiera-1.1.1
/opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0

Puppet was always using the hiera under /opt/puppet/lib/gems/1.8/gems/, so
I was unable to use new features of hiera

I have uninstalled hiera-0.3.0 manually using gem

sudo gem uninstall --install-dir /opt/puppet/lib/gems/1.8/ hiera

Then Puppet failed to find hiera() function, so its always looking under
/opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and
explicitly specified to install under /opt/puppet/lib/gems/1.8/gems

Now puppet cannot even find hiera()

err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not autoload hiera_include: no such file to load --
/opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at
/etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on
node

Looks like some thing wrong with my gem path or my puppet load path is not.
Any idea what went wrong here?


Using Ubuntu12.04LTS, PE 2.7, Hiera1.2

Any help greatly appreciated.

Regards

Sai.

EMC

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Llowder at Feb 22, 2013 at 8:07 pm

    On Friday, February 22, 2013 2:03:30 PM UTC-6, Sai_Emc wrote:
    Hiera was properly working in my environment. But puppet was looking at
    old version even when I have the latest hiera gem installed. So I could'nt
    use json backend. But puppet is not looking at my latest hiera gem. Not
    sure when went wrong here.

    Scenario:
    I have installed hiera couple of months back. So the gem was installed
    under

    /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
    /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0

    Later when I updated to new version of hiera then it installed (via gem
    install) under

    /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1
    /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0

    Puppet was always using the hiera under /opt/puppet/lib/gems/1.8/gems/, so
    I was unable to use new features of hiera

    I have uninstalled hiera-0.3.0 manually using gem

    sudo gem uninstall --install-dir /opt/puppet/lib/gems/1.8/ hiera

    Then Puppet failed to find hiera() function, so its always looking under
    /opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and
    explicitly specified to install under /opt/puppet/lib/gems/1.8/gems

    Now puppet cannot even find hiera()

    err: Could not retrieve catalog from remote server: Error 400 on SERVER:
    Could not autoload hiera_include: no such file to load --
    /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at
    /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on
    node

    Looks like some thing wrong with my gem path or my puppet load path is
    not. Any idea what went wrong here?


    Using Ubuntu12.04LTS, PE 2.7, Hiera1.2

    Any help greatly appreciated.
    Try sudo /opt/puppet/bin/gem install hiera

    I'm not a PE user, but I think that is the right path.
    Regards

    Sai.

    EMC
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Sai_Emc at Feb 22, 2013 at 9:10 pm
    Tried /opt/puppet/bin/gem , no use puppet is still failing with errors


    err: Could not retrieve catalog from remote server: Error 400 on SERVER:
    Could not autoload hiera_include: no such file to load --
    /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at
    /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46

    I can see gem -list --local shows hiera gems installed.


    /opt/puppet/bin$ /opt/puppet/bin/gem list --local

    *** LOCAL GEMS ***

    activerecord (2.3.14)

    activesupport (2.3.14)

    ar-extensions (0.9.5)

    builder (3.0.0)

    dalli (1.1.2)

    excon (0.14.1)

    fog (1.5.0)

    formatador (0.2.0)

    guid (0.1.1)

    hiera (1.1.2)

    hiera-puppet (1.0.0)



    Regards
    Sai.
    EMC
    On Friday, February 22, 2013 3:07:41 PM UTC-5, llowder wrote:


    On Friday, February 22, 2013 2:03:30 PM UTC-6, Sai_Emc wrote:

    Hiera was properly working in my environment. But puppet was looking at
    old version even when I have the latest hiera gem installed. So I could'nt
    use json backend. But puppet is not looking at my latest hiera gem. Not
    sure when went wrong here.

    Scenario:
    I have installed hiera couple of months back. So the gem was installed
    under

    /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
    /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0

    Later when I updated to new version of hiera then it installed (via gem
    install) under

    /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1
    /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0

    Puppet was always using the hiera under /opt/puppet/lib/gems/1.8/gems/,
    so I was unable to use new features of hiera

    I have uninstalled hiera-0.3.0 manually using gem

    sudo gem uninstall --install-dir /opt/puppet/lib/gems/1.8/ hiera

    Then Puppet failed to find hiera() function, so its always looking under
    /opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and
    explicitly specified to install under /opt/puppet/lib/gems/1.8/gems

    Now puppet cannot even find hiera()

    err: Could not retrieve catalog from remote server: Error 400 on SERVER:
    Could not autoload hiera_include: no such file to load --
    /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at
    /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on
    node

    Looks like some thing wrong with my gem path or my puppet load path is
    not. Any idea what went wrong here?


    Using Ubuntu12.04LTS, PE 2.7, Hiera1.2

    Any help greatly appreciated.
    Try sudo /opt/puppet/bin/gem install hiera

    I'm not a PE user, but I think that is the right path.
    Regards

    Sai.

    EMC
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Sai_Emc at Feb 25, 2013 at 7:09 pm
    This issue got resolved.

    Looks like hiera functions created as a softlink under site_ruby.


    /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions

    total 112

    lrwxrwxrwx 1 root root 84 Jun 20 2012 hiera.rb ->
    ../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera.rb

    lrwxrwxrwx 1 root root 92 Jun 20 2012 hiera_include.rb ->
    ../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera_include.rb

    lrwxrwxrwx 1 root root 89 Jun 20 2012 hiera_hash.rb ->
    ../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera_hash.rb

    lrwxrwxrwx 1 root root 90 Jun 20 2012 hiera_array.rb ->
    ../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera_a

    When I uninstalled older version hiera my links were never removed. I
    was'nt aware of these links. So even after installing new
    hiera/hiera-puppet my links were pointing to a packaged which does not
    exist. So hiera functions were failing in puppet. Which makes sense. So I
    corrected my softlinks to point latest hiera-puppet then hiera started
    working.


    Regards
    Sai.
    On Friday, February 22, 2013 4:05:30 PM UTC-5, Sai_Emc wrote:

    Tried /opt/puppet/bin/gem , no use puppet is still failing with errors


    err: Could not retrieve catalog from remote server: Error 400 on SERVER:
    Could not autoload hiera_include: no such file to load --
    /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at
    /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46

    I can see gem -list --local shows hiera gems installed.


    /opt/puppet/bin$ /opt/puppet/bin/gem list --local

    *** LOCAL GEMS ***

    activerecord (2.3.14)

    activesupport (2.3.14)

    ar-extensions (0.9.5)

    builder (3.0.0)

    dalli (1.1.2)

    excon (0.14.1)

    fog (1.5.0)

    formatador (0.2.0)

    guid (0.1.1)

    hiera (1.1.2)

    hiera-puppet (1.0.0)



    Regards
    Sai.
    EMC
    On Friday, February 22, 2013 3:07:41 PM UTC-5, llowder wrote:


    On Friday, February 22, 2013 2:03:30 PM UTC-6, Sai_Emc wrote:

    Hiera was properly working in my environment. But puppet was looking at
    old version even when I have the latest hiera gem installed. So I could'nt
    use json backend. But puppet is not looking at my latest hiera gem. Not
    sure when went wrong here.

    Scenario:
    I have installed hiera couple of months back. So the gem was installed
    under

    /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
    /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0

    Later when I updated to new version of hiera then it installed (via gem
    install) under

    /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1
    /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0

    Puppet was always using the hiera under /opt/puppet/lib/gems/1.8/gems/,
    so I was unable to use new features of hiera

    I have uninstalled hiera-0.3.0 manually using gem

    sudo gem uninstall --install-dir /opt/puppet/lib/gems/1.8/ hiera

    Then Puppet failed to find hiera() function, so its always looking under
    /opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and
    explicitly specified to install under /opt/puppet/lib/gems/1.8/gems

    Now puppet cannot even find hiera()

    err: Could not retrieve catalog from remote server: Error 400 on SERVER:
    Could not autoload hiera_include: no such file to load --
    /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at
    /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on
    node

    Looks like some thing wrong with my gem path or my puppet load path is
    not. Any idea what went wrong here?


    Using Ubuntu12.04LTS, PE 2.7, Hiera1.2

    Any help greatly appreciated.
    Try sudo /opt/puppet/bin/gem install hiera

    I'm not a PE user, but I think that is the right path.
    Regards

    Sai.

    EMC
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 22, '13 at 8:03p
activeFeb 25, '13 at 7:09p
posts4
users2
websitepuppetlabs.com

2 users in discussion

Sai_Emc: 3 posts Llowder: 1 post

People

Translate

site design / logo © 2022 Grokbase