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

Using hiera hash for epp

$
0
0
Given a hash in hiera such as: some::property: foo: 'abcd' bar: '1234' ... and manifest code such as: $val = hiera_hash('some:property') file{ '/path/to/foo.txt': ensure => present, content => epp('bar/foo..txt.epp', $val), ... } When compiled I am getting errors like: ...error during compilation: Evaluation Error: Error while evaluating a Function Call, 'epp' parameter 'parameters' expects a Hash[Pattern[/^\w+$/], Any] value, got Struct[{'foo' => String, 'var' => String }]... Can I coerce that Struct into a Hash or is there some other way to do what I'm trying to do?

Viewing all articles
Browse latest Browse all 6104

Trending Articles