is it possible to have a create_resources in a define type

asked 2015-11-06 09:03:26 -0500

dba59 gravatar image

updated 2015-11-07 12:13:06 -0500

lupin gravatar image

hi all,

in my yaml i have a param

mytruc::server:
  metadata1:
    param1:  undef    ( or not /path/to/bin/)
  metadata2:
    param1:  undef    ( or not /path/to/bin/)

i would define it following some conditions if param1 undef if install_package case os 1 : param1 = /usr/path/to/bin/ 2 : param1 = /usr/bin

this is in a class binary_path to check the conditions and set the path

this class is used in other class paramfile to create a file with a template erb by a createresources so i should set param1 to the correct path according to the installed package

thanks in adavance for answers

edit retag flag offensive close merge delete