Problems about puppet class parameter

I am trying to pass parameters to my puppetclass use api, but i am failed.

i pass something like

"host_parameters_attributes": [
{
"name": "abc",
"value": "hello",
"nested": true
}
]

But it only add global parameters, i need to add puppetclass based
parameters.

Can you give me some advice?

At the moment, Foreman 1.2 doesn't provide an API for smart class
parameters, but this is being added for Foreman 1.3.

··· On 16/08/13 08:53, Jiang Jim wrote: > I am trying to pass parameters to my puppetclass use api, but i am failed. > > i pass something like > > "host_parameters_attributes": [ > { > "name": "abc", > "value": "hello", > "nested": true > } > ] > > But it only add global parameters, i need to add puppetclass based > parameters. > > Can you give me some advice?


Dominic Cleal
Red Hat Engineering