Problem 1:
When I import my puppetclasses into foreman, foreman will register the
defaults for the class variables. When i change a default on the
puppetmaster and try to re-import, foreman claims there are no changes to
be made. How do I update that class other than deleting it and importing
again ( which will also remove the class from all hosts ) ?
Problem 2:
To be able to override a class variable, I need to set them "override" (
manually, because the import doesn't set it ). But when a variable is
overridable, it will always appear in the yaml, even though it is not
overridden. This is a problem related to problem 1, as the default value on
foreman can differ from the one on the puppetmaster. Is there a way to have
non-overriden variables to be removed from the yaml output ?
Thanks in advance,
Peter.
···
--
IK GA ERVOOR
Een zorgjob. Da’s werken met je hoofd, handen en hart.
DISCLAIMER :
De personeelsleden van het agentschap doen hun best om in e-mails
betrouwbare informatie te geven. Toch kan niemand rechten doen gelden op
basis van deze inhoud. Als in de e-mail een stellingname voorkomt, is
dat niet noodzakelijk het standpunt van het agentschap. Rechtsgeldige
beslissingen of officiele standpunten worden alleen per brief toegestuurd.
> Hi,
>
> maybe this is something for the dev list.
>
> Problem 1:
> When I import my puppetclasses into foreman, foreman will register the
> defaults for the class variables. When i change a default on the
> puppetmaster and try to re-import, foreman claims there are no changes to
> be made. How do I update that class other than deleting it and importing
> again ( which will also remove the class from all hosts ) ?
>
It should update, in some cases it would ignore the class if there is a
syntax error on it, double check, and if not, please create a ticket with
exact details on how to reproduce?
>
> Problem 2:
> To be able to override a class variable, I need to set them "override" (
> manually, because the import doesn't set it ). But when a variable is
> overridable, it will always appear in the yaml, even though it is not
> overridden. This is a problem related to problem 1, as the default value on
> foreman can differ from the one on the puppetmaster. Is there a way to have
> non-overriden variables to be removed from the yaml output ?
>
I'm not sure I follow, are you asking that for variables that you defined
that you want to override, where there is no default value and the value is
empty, dont return the parameter?
Ohad
···
On Thu, Feb 28, 2013 at 12:57 PM, Peter Van Biesen wrote:
DISCLAIMER :
De personeelsleden van het agentschap doen hun best om in e-mails
betrouwbare informatie te geven. Toch kan niemand rechten doen gelden op
basis van deze inhoud. Als in de e-mail een stellingname voorkomt, is
dat niet noodzakelijk het standpunt van het agentschap. Rechtsgeldige
beslissingen of officiele standpunten worden alleen per brief toegestuurd.
problem 2:
I'm trying to reproduce the behaviour of my site.pp, which is basically
what de ENC should do. Say I have a class with a variable :
class <module>::test ( $foo = "bar", ) { }
In puppet, these two lines behave the same, but are fundamentally different
:
Class{ '<module>::test': }
Class{ '<module>::test': foo => "bar" }
In the first one, if I change the default value, the host would get the new
value.
In the second one, this doesn't work.
I would therefor assume that if I mark a variable in foreman to be
overridable, but I dont override it, the variable would be omitted entirely
from the yaml. But it is not. So if the default value in foreman is
different from the one on puppet ( see problem 1 ), the old value gets used
and not the default in the puppet manifests.
Do I make any sense ?
Kindest regards,
Peter.
···
--
IK GA ERVOOR
Een zorgjob. Da’s werken met je hoofd, handen en hart.
DISCLAIMER :
De personeelsleden van het agentschap doen hun best om in e-mails
betrouwbare informatie te geven. Toch kan niemand rechten doen gelden op
basis van deze inhoud. Als in de e-mail een stellingname voorkomt, is
dat niet noodzakelijk het standpunt van het agentschap. Rechtsgeldige
beslissingen of officiele standpunten worden alleen per brief toegestuurd.