Using hiera in testing environments

asked 2017-08-14 02:47:16 -0600

fuzzy186 gravatar image

HI I have puppet 3.6.2 and hiera 1.3.4 I have a manifest file, where I added new 'efs' sitemounttype

hiera file in production environment

- 'efs'
- ''

While running puppet agent I get this error.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown sitemounttype. Received efs at

Manifest file in testing environment:

$efs_server     = hiera('efs::primary_server')
$site_type      = hiera('profiles::site_mount_type', 'nfs-aws')
case $site_type {
'efs':  {
              efs::mount { '/EFS/saas_data':
                alias   => "mount-${::customerid}_saas-share",
                server  => "${efs_server}:/c${::customerid}_saas_data",
                rw      => true,
                mounted => true,
                repo    => false,
 default:    {
              fail("Unknown site_mount_type. Received ${site_type}")

My assumption is, that hiera is not associated with test environment. I haven't deployed this environment and can't figure out how my predecessor was testing manifests in testing environment.

This is what I found.

ll -ah /etc/puppet/hiera/test/
total 16K
drwxr-x---. 2 puppet puppet 4.0K Aug 14 07:11 .
drwx------. 9 puppet puppet 4.0K Aug 11 12:36 ..
-rw-r-----. 1 puppet puppet  623 Aug 13  2015 hiera.yaml
-rwxr-x---. 1 puppet puppet 3.6K Aug 13  2015 runtest

This is runtest file I found in /etc/puppet/hiera/test folder. C:\fakepath\runtest.PNG

Can anyone figure out how my predecessor was using testing environment with hiera ?

edit retag flag offensive close merge delete