Hudson/Jenkins updating host parameter?

20 views
Skip to first unread message

mkochco

unread,
Feb 10, 2012, 12:18:45 AM2/10/12
to Puppet Users, mk...@tendrilinc.com
Hello,

We have constructed the following class for deploying some_service;

class some_service {

include platform_common
platform_common::deployWarService { 'some_service':
repo => "our-repo-name",
service => $some_service_name,
version => $some_service_version,
web_context => $some_service_name,
undeploy_old_versions => "true"
}

}

This config has already been applied to machine_a in our development
platform.

Now we are trying to implement the following use case;

1) Developer commits code changes for some_service
2) Hudson/Jenkins job is triggered, compiles, tests, and generates war
artifact for some_service in our maven repository
3) Same Hudson/Jenkins job updates the the "some_service_version"
parameter in our puppetmaster ( this is a host specific parameter )
4) Puppet runs on machine_a, retrieves new config with
"some_service_version", retrieves and deploys the new war

Can I get suggestions on how to accomplish step 3. I know foreman
provides a REST API but it doesn't appear to allow modification of
"host" parameters.

Thanks,
Mark

Ohad Levy

unread,
Feb 12, 2012, 5:54:05 AM2/12/12
to puppet...@googlegroups.com
On Fri, Feb 10, 2012 at 7:18 AM, mkochco <mko...@gmail.com> wrote:
>
> Can I get suggestions on how to accomplish step 3.   I know foreman
> provides a REST API but it doesn't appear to allow modification of
> "host" parameters.

AFAIK, all parameters can be modified over the API, including host
parameters.. feel free to provide more details on the foreman users
list.

Cheers,
Ohad

Reply all
Reply to author
Forward
0 new messages