Upper case Key in hiera hash

165 views
Skip to first unread message

RG

unread,
Jun 13, 2014, 2:06:19 PM6/13/14
to puppet...@googlegroups.com
Hi,

Can i have upper case key in hiera?

I have a setenv_sh class that will take a key:value defined in hiera and put it in setenv.sh file

test.yaml:


   class::subclass1::setenv_sh:
  INSTALL_SCRIPT:
   value: '/opt/install.sh'

Thanks,
RG

Garrett Honeycutt

unread,
Jun 13, 2014, 2:12:17 PM6/13/14
to puppet...@googlegroups.com
Hi,

Yes, but your indentation needs to be corrected.


class::subclass1::setenv_sh:
'INSTALL_SCRIPT':
value: '/opt/install.sh'

Br,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

RG

unread,
Jun 13, 2014, 2:39:08 PM6/13/14
to puppet...@googlegroups.com
For some reason its not working, puppet debug message saying it got created but i don't see it in setnv.sh file

Hiera[class::subclass1::setenv_sh]/class::subclass1::Setenv_sh[INSTALL_SCRIPT]/Ini_setting[/opt/application/setenv.sh/INSTALL_SCRIPT]/ensure: created

jcbollinger

unread,
Jun 16, 2014, 9:08:56 AM6/16/14
to puppet...@googlegroups.com


On Friday, June 13, 2014 1:39:08 PM UTC-5, RG wrote:
For some reason its not working, puppet debug message saying it got created but i don't see it in setnv.sh file

Hiera[class::subclass1::setenv_sh]/class::subclass1::Setenv_sh[INSTALL_SCRIPT]/Ini_setting[/opt/application/setenv.sh/INSTALL_SCRIPT]/ensure: created




It would help to see relevant the manifest code.  If Ini_setting happens to be a custom plugin then it would also be helpful to know which.  The meaning of "created" depends heavily on those things.  Additionally, it is possible that the agent will provide additional relevant details if you run it with --debug output enabled.


John

Reply all
Reply to author
Forward
0 new messages