Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 257

hiera automatic parameter lookup does not appear to work

$
0
0
I'm trying to convert my manifests to use automatic lookups instead of hiera-function lookups and it does not appear to be working. Here are my hiera yaml and profile manifests: my.yaml: profile::gogs::port: 8081 gogs.pp: class profile::gogs { $myport = hiera('profile::gogs::port') $myport2 = $profile::gogs::port $myport3 = $port notify {"myport: $myport, myport2: $myport2, myport3: $myport3":} I then run my puppet agent and get the following notify output: $ sudo -i puppet agent -vt --environment gitserver . . Notice: /Stage[main]/Profile::Gogs/Notify[myport: 8081, myport2: , myport3: ]/message: defined 'message' as 'myport: 8081, myport2: , myport3: ' So hiera can obviously see the value just fine, but the syntax I tried for the automatic parameter lookup (myport2 & myport3) seem to both fail. Perhaps I'm doing something wrong? NOTE: I'm using Puppet 4.3.2 with the standard roles/profiles patterns and r10k.

Viewing all articles
Browse latest Browse all 257

Trending Articles