I've got a smart variable set up for a puppet class,
when I run the ENC script, I see in the forman log the query for the lookup
values, running it against the MySQL indeed returns the row I need,
but I don't see it in the output of the ENC script.
tried to access the URL listed in the API
here: http://theforeman.org/projects/foreman/wiki/Smart_Variables
and the log outputs error "Completed 406 Not Acceptable"
Screenshot attached.
···
On Tue, Sep 11, 2012 at 4:42 PM, Shmiti wrote:
I’ve got a smart variable set up for a puppet class,
when I run the ENC script, I see in the forman log the query for the
lookup values, running it against the MySQL indeed returns the row I need,
but I don’t see it in the output of the ENC script.
tried to access the URL listed in the API here: Smart Variables - Foreman
and the log outputs error "Completed 406 Not Acceptable"
Screenshot attached.
···
On Tuesday, September 11, 2012 5:20:59 PM UTC+3, ohad wrote:
>
> did you enable the smart vars in enc output ?
>
> Ohad
>
> On Tue, Sep 11, 2012 at 4:42 PM, Shmiti <el...@shmiti.com >wrote:
>
>> I've got a smart variable set up for a puppet class,
>> when I run the ENC script, I see in the forman log the query for the
>> lookup values, running it against the MySQL indeed returns the row I need,
>> but I don't see it in the output of the ENC script.
>> tried to access the URL listed in the API here:
>> http://theforeman.org/projects/foreman/wiki/Smart_Variables
>> and the log outputs error "Completed 406 Not Acceptable"
>> Screenshot attached.
>>
>> Thank you
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Foreman users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/foreman-users/-/vW2RrSi0N90J.
>> To post to this group, send email to forema...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> foreman-user...@googlegroups.com .
>> For more options, visit this group at
>> http://groups.google.com/group/foreman-users?hl=en.
>>
>
>
···
On Tuesday, September 11, 2012 5:20:59 PM UTC+3, ohad wrote:
>
> did you enable the smart vars in enc output ?
>
> Ohad
>
> On Tue, Sep 11, 2012 at 4:42 PM, Shmiti <el...@shmiti.com >wrote:
>
>> I've got a smart variable set up for a puppet class,
>> when I run the ENC script, I see in the forman log the query for the
>> lookup values, running it against the MySQL indeed returns the row I need,
>> but I don't see it in the output of the ENC script.
>> tried to access the URL listed in the API here:
>> http://theforeman.org/projects/foreman/wiki/Smart_Variables
>> and the log outputs error "Completed 406 Not Acceptable"
>> Screenshot attached.
>>
>> Thank you
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Foreman users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/foreman-users/-/vW2RrSi0N90J.
>> To post to this group, send email to forema...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> foreman-user...@googlegroups.com .
>> For more options, visit this group at
>> http://groups.google.com/group/foreman-users?hl=en.
>>
>
>
I’ve got a smart variable set up for a puppet class,
when I run the ENC script, I see in the forman log the query for the
lookup values, running it against the MySQL indeed returns the row I need,
but I don’t see it in the output of the ENC script.
tried to access the URL listed in the API here: http://theforeman.org/**
projects/foreman/wiki/Smart_**Variableshttp://theforeman.org/projects/foreman/wiki/Smart_Variables
and the log outputs error "Completed 406 Not Acceptable"
Screenshot attached.
···
On Wednesday, September 12, 2012 9:32:15 AM UTC+3, ohad wrote:
>
>
>
> On Wed, Sep 12, 2012 at 9:28 AM, Shmiti <el...@shmiti.com >wrote:
>
>> but I do get this:
>>
>> Stopping foreman: [ OK ]
>> Starting foreman:
>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
>> warning: already initialized constant ENC_NONE
>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
>> warning: already initialized constant ENC_EUC
>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
>> warning: already initialized constant ENC_SJIS
>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
>> warning: already initialized constant ENC_UTF8
>> [ OK ]
>>
>
> thats not related and harmless.
>
>
> can you confirm you are not seeing it in the yaml output (e.g. when
> selecting the host from the host list and clicking on the yaml button)?
>
> and of course I assume you assigned the class to the host in question?
>
> Ohad
>
>
>>
>>
>> On Tuesday, September 11, 2012 5:20:59 PM UTC+3, ohad wrote:
>>
>>> did you enable the smart vars in enc output ?
>>>
>>> Ohad
>>>
>>> On Tue, Sep 11, 2012 at 4:42 PM, Shmiti wrote:
>>>
>>>> I've got a smart variable set up for a puppet class,
>>>> when I run the ENC script, I see in the forman log the query for the
>>>> lookup values, running it against the MySQL indeed returns the row I need,
>>>> but I don't see it in the output of the ENC script.
>>>> tried to access the URL listed in the API here: http://theforeman.org/*
>>>> *projects/foreman/wiki/Smart_**Variables
>>>> and the log outputs error "Completed 406 Not Acceptable"
>>>> Screenshot attached.
>>>>
>>>> Thank you
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Foreman users" group.
>>>> To view this discussion on the web visit https://groups.google.com/d/**
>>>> msg/foreman-users/-/**vW2RrSi0N90J
>>>> .
>>>> To post to this group, send email to forema...@googlegroups.com**.
>>>> To unsubscribe from this group, send email to foreman-user...@**
>>>> googlegroups.com.
>>>>
>>>> For more options, visit this group at http://groups.google.com/**
>>>> group/foreman-users?hl=en
>>>> .
>>>>
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Foreman users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/foreman-users/-/lJg51IQJ1aMJ.
>>
>> To post to this group, send email to forema...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> foreman-user...@googlegroups.com .
>> For more options, visit this group at
>> http://groups.google.com/group/foreman-users?hl=en.
>>
>
>
> I see the yaml report, both with the ENC script and the web UI,
> in both I see the puppet class, but not the variable.
not under the parameters section?
Ohad
···
On 09/12/2012 09:46 AM, Shmiti wrote:
>
>
>
> On Wednesday, September 12, 2012 9:32:15 AM UTC+3, ohad wrote:
>
>
>
> On Wed, Sep 12, 2012 at 9:28 AM, Shmiti > wrote:
>
> but I do get this:
>
> Stopping foreman: [ OK ]
> Starting foreman:
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
> warning: already initialized constant ENC_NONE
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
> warning: already initialized constant ENC_EUC
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
> warning: already initialized constant ENC_SJIS
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
> warning: already initialized constant ENC_UTF8
> [ OK ]
>
>
> thats not related and harmless.
>
>
> can you confirm you are not seeing it in the yaml output (e.g.
> when selecting the host from the host list and clicking on the
> yaml button)?
>
> and of course I assume you assigned the class to the host in question?
>
> Ohad
>
>
>
> On Tuesday, September 11, 2012 5:20:59 PM UTC+3, ohad wrote:
>
> did you enable the smart vars in enc output ?
>
> Ohad
>
> On Tue, Sep 11, 2012 at 4:42 PM, Shmiti > wrote:
>
> I've got a smart variable set up for a puppet class,
> when I run the ENC script, I see in the forman log the
> query for the lookup values, running it against the
> MySQL indeed returns the row I need,
> but I don't see it in the output of the ENC script.
> tried to access the URL listed in the API here:
> http://theforeman.org/projects/foreman/wiki/Smart_Variables
>
> and the log outputs error "Completed 406 Not Acceptable"
> Screenshot attached.
>
> Thank you
>
> --
> You received this message because you are subscribed
> to the Google Groups "Foreman users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/foreman-users/-/vW2RrSi0N90J
> .
> To post to this group, send email to
> forema...@googlegroups.com.
> To unsubscribe from this group, send email to
> foreman-user...@googlegroups.com.
>
> For more options, visit this group at
> http://groups.google.com/group/foreman-users?hl=en
> .
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Foreman users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/foreman-users/-/lJg51IQJ1aMJ
> .
>
> To post to this group, send email to
> forema...@googlegroups.com .
> To unsubscribe from this group, send email to
> foreman-user...@googlegroups.com .
> For more options, visit this group at
> http://groups.google.com/group/foreman-users?hl=en
> .
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Foreman users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/foreman-users/-/WSIGonRZu_0J.
> To post to this group, send email to foreman-users@googlegroups.com.
> To unsubscribe from this group, send email to
> foreman-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/foreman-users?hl=en.
oh… found it…
thought it should be near the puppet class itself.
the paramaters are available to the puppet classes?
···
On Wednesday, September 12, 2012 9:52:08 AM UTC+3, ohad wrote:
>
> On 09/12/2012 09:46 AM, Shmiti wrote:
>
> I see the yaml report, both with the ENC script and the web UI,
> in both I see the puppet class, but not the variable.
>
>
> not under the parameters section?
>
> Ohad
>
>
>
>
> On Wednesday, September 12, 2012 9:32:15 AM UTC+3, ohad wrote:
>>
>>
>>
>> On Wed, Sep 12, 2012 at 9:28 AM, Shmiti wrote:
>>
>>> but I do get this:
>>>
>>> Stopping foreman: [ OK ]
>>> Starting foreman:
>>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
>>> warning: already initialized constant ENC_NONE
>>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
>>> warning: already initialized constant ENC_EUC
>>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
>>> warning: already initialized constant ENC_SJIS
>>> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
>>> warning: already initialized constant ENC_UTF8
>>> [ OK ]
>>>
>>
>> thats not related and harmless.
>>
>>
>> can you confirm you are not seeing it in the yaml output (e.g. when
>> selecting the host from the host list and clicking on the yaml button)?
>>
>> and of course I assume you assigned the class to the host in question?
>>
>> Ohad
>>
>>
>>>
>>>
>>> On Tuesday, September 11, 2012 5:20:59 PM UTC+3, ohad wrote:
>>>
>>>> did you enable the smart vars in enc output ?
>>>>
>>>> Ohad
>>>>
>>>> On Tue, Sep 11, 2012 at 4:42 PM, Shmiti wrote:
>>>>
>>>>> I've got a smart variable set up for a puppet class,
>>>>> when I run the ENC script, I see in the forman log the query for the
>>>>> lookup values, running it against the MySQL indeed returns the row I need,
>>>>> but I don't see it in the output of the ENC script.
>>>>> tried to access the URL listed in the API here:
>>>>> http://theforeman.org/projects/foreman/wiki/Smart_Variables
>>>>> and the log outputs error "Completed 406 Not Acceptable"
>>>>> Screenshot attached.
>>>>>
>>>>> Thank you
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Foreman users" group.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msg/foreman-users/-/vW2RrSi0N90J.
>>>>> To post to this group, send email to forema...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> foreman-user...@googlegroups.com.
>>>>>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/foreman-users?hl=en.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Foreman users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/foreman-users/-/lJg51IQJ1aMJ.
>>>
>>> To post to this group, send email to forema...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> foreman-user...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/foreman-users?hl=en.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/foreman-users/-/WSIGonRZu_0J.
> To post to this group, send email to forema...@googlegroups.com
> .
> To unsubscribe from this group, send email to
> foreman-user...@googlegroups.com .
> For more options, visit this group at
> http://groups.google.com/group/foreman-users?hl=en.
>
>
>
> oh… found it…
> thought it should be near the puppet class itself.
> the paramaters are available to the puppet classes?
>
> This is included in foreman 1.1, and will be merged into the develop
branch within a few days…
Ohad
···
On Wed, Sep 12, 2012 at 10:06 AM, Shmiti wrote:
On Wednesday, September 12, 2012 9:52:08 AM UTC+3, ohad wrote:
On 09/12/2012 09:46 AM, Shmiti wrote:
I see the yaml report, both with the ENC script and the web UI,
in both I see the puppet class, but not the variable.
not under the parameters section?
Ohad
On Wednesday, September 12, 2012 9:32:15 AM UTC+3, ohad wrote:
I’ve got a smart variable set up for a puppet class,
when I run the ENC script, I see in the forman log the query for the
lookup values, running it against the MySQL indeed returns the row I need,
but I don’t see it in the output of the ENC script.
tried to access the URL listed in the API here: http://theforeman.org/**projects/foreman/wiki/Smart_**Variableshttp://theforeman.org/projects/foreman/wiki/Smart_Variables
and the log outputs error "Completed 406 Not Acceptable"
Screenshot attached.