@host.interfaces in Parameterized Classes

Hi,

how can i use the Parmeters from @host.interfaces in Parameterized Classes

when i use it as Smart Class Parameterized
Parameter type: string
Default value: <%= @host.interfaces %>

I get the following error, when request the host YAML
Unable to generate output, Check log files\n
in the log
Processing by HostsController#externalNodes as HTML
Parameters: {"name"=>"HOSTNAME", "id"=>"HOSTNAME"}
No SSL cert with CN supplied - request from IP,
Failed to generate external nodes for HOSTNAME with unexpected '['. near
line 2: "1] ).to_s); _erbout.force_encoding(ENCODING)"
Rendered text template (0.0ms)
Completed 412 Precondition Failed in 272ms (Views: 0.6ms | ActiveRecord:
10.2ms)

Could you help me!.
I'm using Foreman 1.3 on CentOS 6.4
Locations and Organizations is configuerd and enabled

thx

> Hi,
>
> how can i use the Parmeters from @host.interfaces in Parameterized Classes
>
> when i use it as Smart Class Parameterized
> Parameter type: string
> Default value: <%= @host.interfaces %>
>
interfaces would be an array, not a string… which value are you
trying to fetch?

Ohad

··· On Thu, Nov 14, 2013 at 8:55 AM, PAF wrote:

I get the following error, when request the host YAML
Unable to generate output, Check log files\n
in the log
Processing by HostsController#externalNodes as HTML
Parameters: {“name”=>“HOSTNAME”, “id”=>“HOSTNAME”}
No SSL cert with CN supplied - request from IP,
Failed to generate external nodes for HOSTNAME with unexpected ‘[’. near
line 2: "1] ).to_s); _erbout.force_encoding(ENCODING)"
Rendered text template (0.0ms)
Completed 412 Precondition Failed in 272ms (Views: 0.6ms | ActiveRecord:
10.2ms)

Could you help me!.
I’m using Foreman 1.3 on CentOS 6.4
Locations and Organizations is configuerd and enabled

thx


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.
For more options, visit https://groups.google.com/groups/opt_out.

Hi,
thx, for the fast reply

I will fetch the

  • ipaddress
  • subnetmask (from the subnets)
    for the second, third, … Interfaces

When i define it as Parameter type: array and submit it,
then it doesn't save it and it is on the old parameter

franz

··· Am Donnerstag, 14. November 2013 15:07:30 UTC+1 schrieb ohad: > > On Thu, Nov 14, 2013 at 8:55 AM, PAF <franz....@gmail.com > > wrote: > > Hi, > > > > how can i use the Parmeters from @host.interfaces in Parameterized > Classes > > > > when i use it as Smart Class Parameterized > > Parameter type: string > > Default value: <%= @host.interfaces %> > > > interfaces would be an array, not a string.. which value are you > trying to fetch? > > Ohad > > > I get the following error, when request the host YAML > > Unable to generate output, Check log files\n > > in the log > > Processing by HostsController#externalNodes as HTML > > Parameters: {"name"=>"HOSTNAME", "id"=>"HOSTNAME"} > > No SSL cert with CN supplied - request from IP, > > Failed to generate external nodes for HOSTNAME with unexpected '['. > near > > line 2: "1] ).to_s); _erbout.force_encoding(__ENCODING__)" > > Rendered text template (0.0ms) > > Completed 412 Precondition Failed in 272ms (Views: 0.6ms | > ActiveRecord: > > 10.2ms) > > > > Could you help me!. > > I'm using Foreman 1.3 on CentOS 6.4 > > Locations and Organizations is configuerd and enabled > > > > thx > > > > -- > > 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. > > For more options, visit https://groups.google.com/groups/opt_out. >

Hi,

how can I use the @host.interfaces in Parameterized Classes

··· Am Donnerstag, 14. November 2013 15:27:30 UTC+1 schrieb PAF: > > Hi, > thx, for the fast reply > > I will fetch the > - ipaddress > - subnetmask (from the subnets) > for the second, third, ... Interfaces > > When i define it as Parameter type: array and submit it, > then it doesn't save it and it is on the old parameter > > franz > > Am Donnerstag, 14. November 2013 15:07:30 UTC+1 schrieb ohad: >> >> On Thu, Nov 14, 2013 at 8:55 AM, PAF wrote: >> > Hi, >> > >> > how can i use the Parmeters from @host.interfaces in Parameterized >> Classes >> > >> > when i use it as Smart Class Parameterized >> > Parameter type: string >> > Default value: <%= @host.interfaces %> >> > >> interfaces would be an array, not a string.. which value are you >> trying to fetch? >> >> Ohad >> >> > I get the following error, when request the host YAML >> > Unable to generate output, Check log files\n >> > in the log >> > Processing by HostsController#externalNodes as HTML >> > Parameters: {"name"=>"HOSTNAME", "id"=>"HOSTNAME"} >> > No SSL cert with CN supplied - request from IP, >> > Failed to generate external nodes for HOSTNAME with unexpected '['. >> near >> > line 2: "1] ).to_s); _erbout.force_encoding(__ENCODING__)" >> > Rendered text template (0.0ms) >> > Completed 412 Precondition Failed in 272ms (Views: 0.6ms | >> ActiveRecord: >> > 10.2ms) >> > >> > Could you help me!. >> > I'm using Foreman 1.3 on CentOS 6.4 >> > Locations and Organizations is configuerd and enabled >> > >> > thx >> > >> > -- >> > 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. >> > For more options, visit https://groups.google.com/groups/opt_out. >> >