Running puppet 2.6.11 opensource on Red Hat 5.6 client.

I cannot explain this logically but I have a directory structure like so:

/etc/puppet/manifests/hiera/hostgroups/

with directories for each of my application areas like so:

*clickz  core  devel  dns  icross  iswap  itch  puppet  test  ubuntu*


 *What is weird is that if I put anything under the directory named "core", 
the ext lookup works fine*, but if I move it to another directory or move 
the "core" directory to "core1" nothing works. *In addition having the 
extdata .csv file point hostgroup variable to any other directory does not 
work, and that's my real problem.*

Also as long as I have the yaml file in my "core"  directory it works. *Is 
there some clash or weird default for "core" involved in ext lookups??*

 I'm including my hiera.yaml and ext lookups files. If anyone has here or 
expierenced this please let me know becuase I have to dump every yaml file 
in this directory but it creates additional issues when trying to call site 
specific classes.

client .csv file
===========
hostgroup,core
site,hbr5
region,us
env,uslab

hirea.yaml file:
============
---
:backends: - yaml

:logger: console

:hierarchy: - hostgroups/%{hostgroup}/%{hostgroup}
            - hostgroups/%{hostgroup}/%{site}/%{site}
            - hostgroups/%{hostgroup}/%{site}/%{hostname}
            - defaults
:yaml:
   :datadir: /etc/puppet/manifests/hiera

site.pp
=====
node "puppetmaster.if.icap.com" {}

# The node lookup logic works as follows:
# Puppet looks in extlookup for the hostname.  This checks the 
$datadir/*.csv files
# CSV files return region, hostgroup and site
# Puppet then uses this info to query hiera about the host

node default {
   $region    = extlookup( "region" )
   $hostgroup = extlookup( "hostgroup" )
   $site      = extlookup( "site" )
   $env       = extlookup( "env" )
   hiera_include( "global_classes" )     # This is maintained in 
defaults.yaml
   hiera_include( "hostgroup_classes" )  # Maintained in 
hostgroups/<hostgroup>/<hostgroup>.yaml
   hiera_include( "site_classes" )       # Maintained in 
hostgroups/<hostgroup>/<site>/<site>.yaml
   hiera_include( "node_classes" )       # Maintained in 
hostgroups/<hostgroup>/<site>/<hostname>.yaml
}

$extlookup_datadir = "/etc/puppet/manifests/extdata"
$extlookup_precedence = [ "%{hostname}" ]


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


Reply via email to