Why is puppet not finding my environment module path? -


i have simple environment set puppet. on master have

[root@ak-puppetm develop]# pwd /etc/puppet/environments/develop  [root@ak-puppetm develop]# puppet config print modulepath --section master --environment develop /etc/puppet/modules:/usr/share/puppet/modules  [root@ak-puppetm develop]# ls -lah total 28k drwxr-xr-x 5 akropp akropp 4.0k jul 16 15:16 . drwxr-xr-x 4 akropp akropp 4.0k jul 16 15:16 .. -rw-r--r-- 1 akropp akropp 6.1k jul 16 15:16 .ds_store drwxr-xr-x 4 akropp akropp 4.0k jul 16 15:16 files drwxr-xr-x 2 akropp akropp 4.0k jul 16 15:16 manifests drwxr-xr-x 3 akropp akropp 4.0k jul 16 15:20 modules  [root@ak-puppetm develop]# ls -lah modules/ total 12k drwxr-xr-x 3 akropp akropp 4.0k jul 16 15:20 . drwxr-xr-x 5 akropp akropp 4.0k jul 16 15:16 .. drwxr-xr-x 3 akropp akropp 4.0k jul 16 15:08 domains [root@ak-puppetm develop]# 

and yet can see module path doesn't seem contain develop?

if move module code /etc/puppet/modules puppet finds classes fine.

i tried putting

modulepath=$confdir/environments/$environment/modules:$confdir/modules 

into puppet.conf didn't find still , got deprecation warnings instead

my environment though working, have manifest in there , works great nodes tagged develop environment. can't seem modules pick up

inside /etc/puppet/environments/develop need file name environment.conf. content of file can similar :

modulepath = /etc/puppet/environments/develop/modules:$basemodulepath 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -