Having variables like artifacts & version with values, getting from a
run-deck job.
I need to dynamically change an existing cookbook artifacts file’s variable
values
with value getting from a run-deck job . How do I change this ?
why not treat them as variables? and grab them via some web api call? I
have done similar stuff where i fetched artifact/build details from
teamcity using teamcity API,
Having variables like artifacts & version with values, getting from a
run-deck job.
I need to dynamically change an existing cookbook artifacts file's
variable values
with value getting from a run-deck job . How do I change this ?
I find that building an external API server that eg returns JSON, and then building a Chef library to consume that is often the easiest way to integrate with external systems.
If you make it look somewhat like a data bag, that makes it easy and flexible.
why not treat them as variables? and grab them via some web api call? I have done similar stuff where i fetched artifact/build details from teamcity using teamcity API,
Having variables like artifacts & version with values, getting from a run-deck job.
I need to dynamically change an existing cookbook artifacts file's variable values
with value getting from a run-deck job . How do I change this ?
@Ranjib
i already stored the values in the variables through rundeck-api, now i
want to pass those value in existing cookbook & update attribute file's
variable at runtime.
I find that building an external API server that eg returns JSON, and then
building a Chef library to consume that is often the easiest way to
integrate with external systems.
If you make it look somewhat like a data bag, that makes it easy and
flexible.
why not treat them as variables? and grab them via some web api call? I
have done similar stuff where i fetched artifact/build details from
teamcity using teamcity API,
Having variables like artifacts & version with values, getting from a
run-deck job.
I need to dynamically change an existing cookbook artifacts file's
variable values
with value getting from a run-deck job . How do I change this ?
There is a few ways we do this. Not sure which one is the best.
For some java applications we put the binary artifacts in Nexus. We
have several different repositories (development, uat, release) and in
our chef cookbooks we "search" for the highest version artifact in
nexus. However our development chef environments searches in the
development repository, the uat chef environment searches in uat and
production/training/staging searches in the release repository. Our
"release" process often involves moving an artifact between
environments and kicking off another chef run.
Another approach is that we store the version information in databags
specific to each environment. The release process involves updating
the databag from our external tool (i.e. Jenkins) and kicking off chef
runs.
@Ranjib
i already stored the values in the variables through rundeck-api, now i
want to pass those value in existing cookbook & update attribute file's
variable at runtime.
I find that building an external API server that eg returns JSON, and then
building a Chef library to consume that is often the easiest way to
integrate with external systems.
If you make it look somewhat like a data bag, that makes it easy and
flexible.
why not treat them as variables? and grab them via some web api call? I
have done similar stuff where i fetched artifact/build details from teamcity
using teamcity API,
Having variables like artifacts & version with values, getting from a
run-deck job.
I need to dynamically change an existing cookbook artifacts file's
variable values
with value getting from a run-deck job . How do I change this ?