puppet resource commands with defaults from hiera

asked 2016-02-16 07:49:59 -0500

szemlyanoy gravatar image

updated 2016-02-16 09:20:42 -0500

Hey folks,

I want to run command like

puppet resource ec2_instance instanceName ensure=present region=eu-central-1 security_groups='nnn' subnet='nnn' instance_type=m3.medium

and expect puppet to lookup for required attribute 'image_id' from hiera where I have predefined hash in common.yaml

But it seems not working for me:

Error: Could not set 'present' on ensure: missing required parameter params[:image_id]

Is it possible at all in puppet RAL?

Thanks ahead, Sergey

edit retag flag offensive close merge delete