Puppet class parameter override

Hello,

I am trying to override default class parametr within foreman in
puppetlabs-ntp module, but it failing with:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
"{ ['192.168.3.1'], }" is not an Array. It looks to be a String at
/etc/puppet/environments/modules/ntp/manifests/init.pp:40 on node
node.example.com.

When I take a look in to module the array is expected, but in foreman in
Puppet classes -> ntp -> servers when I press override the Parameter type
is string. When I want to change it to array, after submit, foreman fails.
So, the question is how to change value of ntp server or how to change
variable type from string to array?

Thanks.

Iam using latest foreman and module is:
https://forge.puppetlabs.com/puppetlabs/ntp

Under Configure -> Puppet Classes -> ntp -> Smart Class Parameter ->
servers

Ensure that "override" is checked, that the "parameter type" is set to
"array", and "default value" is set to a valid array, ex:
["tick.usnogps.navy.mil","tock.usno.navy.mil"]

··· On 2014-08-21 10:21, Jakub Bittner wrote:

Hello,

I am trying to override default class parametr within foreman in
puppetlabs-ntp module, but it failing with:

Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: “{ [‘192.168.3.1’], }” is not an Array. It looks to be a String
at /etc/puppet/environments/modules/ntp/manifests/init.pp:40 on node
node.example.com.

When I take a look in to module the array is expected, but in foreman
in Puppet classes -> ntp -> servers when I press override the Parameter
type is string. When I want to change it to array, after submit,
foreman fails. So, the question is how to change value of ntp server or
how to change variable type from string to array?

Thanks.

Iam using latest foreman and module is:
https://forge.puppetlabs.com/puppetlabs/ntp


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users [1].
For more options, visit https://groups.google.com/d/optout [2].

Links:

[1] http://groups.google.com/group/foreman-users
[2] https://groups.google.com/d/optout

Thank you. It works.

Dne čtvrtek, 21. srpna 2014 22:32:01 UTC+2 waz0wski napsal(a):

··· > > Under Configure -> Puppet Classes -> ntp -> Smart Class Parameter -> > servers > > Ensure that "override" is checked, that the "parameter type" is set to > "array", and "default value" is set to a valid array, ex: > ["tick.usnogps.navy.mil","tock.usno.navy.mil"] > > > On 2014-08-21 10:21, Jakub Bittner wrote: > > > Hello, > > > > I am trying to override default class parametr within foreman in > > puppetlabs-ntp module, but it failing with: > > > > Error: Could not retrieve catalog from remote server: Error 400 on > > SERVER: "{ ['192.168.3.1'], }" is not an Array. It looks to be a String > > at /etc/puppet/environments/modules/ntp/manifests/init.pp:40 on node > > node.example.com. > > > > When I take a look in to module the array is expected, but in foreman > > in Puppet classes -> ntp -> servers when I press override the Parameter > > type is string. When I want to change it to array, after submit, > > foreman fails. So, the question is how to change value of ntp server or > > how to change variable type from string to array? > > > > Thanks. > > > > Iam using latest foreman and module is: > > https://forge.puppetlabs.com/puppetlabs/ntp > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users [1]. > > For more options, visit https://groups.google.com/d/optout [2]. > > > Links: > ------ > [1] http://groups.google.com/group/foreman-users > [2] https://groups.google.com/d/optout >