On 12/06/2012 12:24 AM, iamauser wrote:
> Thanks, but I have tried that already, it doesn't help.
>
You have another syntax problem that escaped me first time I reviewed
your code...
This is the problem:
link_files { '$mynamevar' :
$linkcase => "var",
}
You should remove quotes around array, dollar sign in front of linkcase,
and replace doublequotes around simple string with singleqoutes:
link_files { $mynamevar :
linkcase => 'var',
}
Really, your code is a mess... You have doublequote where singlequotes
would be enough, singleqoutes where they should not be at all, dollar
sign in front of param in resource, you don't use two-space as
identation, you don't have default: {} in your case conditional, you
have blanks after the end of line, etc, etc...
I urge you to use 'puppet parser validate' and 'puppet-lint' to review
your code. It would be even better if you would use it in your
pre-commit hooks, so that you cannot commit code that is written bellow
certain standards.
]# gem install puppet-lint
*** buffer overflow detected ***: /usr/bin/ruby terminated
======= Backtrace: =========
/lib64/libc.so.6(__chk_fail+0x2f)[0x2af4423bffaf]
/usr/lib64/ruby/1.8/x86_64-linux/syck.so(rb_syck_mktime+0x48e)[0x2af44284149e]
/usr/lib64/ruby/1.8/x86_64-linux/syck.so(yaml_org_handler+0x860)[0x2af442841db0]
/usr/lib64/ruby/1.8/x86_64-linux/syck.so(syck_defaultresolver_node_import+0x39)[0x2af442841fb9]
/usr/lib64/libruby.so.1.8[0x2af441737a9e]
/usr/lib64/libruby.so.1.8[0x2af441737fb8]
/usr/lib64/libruby.so.1.8[0x2af441738562]
.....
.....
and goes on...
am I missing something trivial in here ?
]# gem --version
1.3.1
]# ruby --version
ruby 1.8.5 (2006-08-25) [x86_64-linux]