The question is rather generic, but here is very specific example:
I am using cobbler/puppet combination.
Some systems use puppet version 2 and some newer ones version 3.
There is a variable in /etc/cobbler/settings puppet_version, that can be
set to 2 or 3. In fact if it is not set at all, the default is coded as
'2', which fits most (but not all) of my clients. Now I am setting up
Fedora 20 and in order to use 'puppet agent' in
puppet_register_if_enabled snippet, I need puppet_version to be set to 3
for that system. I am trying to use this version in meta data which
seems to have no effect.
Running 'cobbler system dumpvars --name=test|grep puppet_version'
produces the following output:
ks_meta : puppet_version=3
mgmt_parameters : {'puppet_version': '3'}
puppet_version : 2
I removed irrelevant entries here.
Everything looks correct.
However, the snippet, which has an #if cheetah statement works as if the
version is set to 2.
The only way our that I can see is to re-write the snippet and use
run-time conditions in bash to use puppetd only if it exists and puppet
agent otherwise. I will have to do similar thing for the last statement
there too - chkconfig does not work on fedora 20, need to use systemd
command instead, but that is another story.
Is there any other way to use this setting?
Thanks,
--
Leon
Show replies by date