Specify agent.json in bosh-stemcell


Kara Felix
 

Is there a way to specify a different agent.json file to use in building a stemcell? If so, how is it done?

Thanks,

Kara


Dmitriy Kalinin
 

There is usually a stage that specifies agent settings (e.g.
https://github.com/cloudfoundry/bosh/blob/master/stemcell_builder/stages/bosh_aws_agent_settings/apply.sh).
Long term plan is to consolidate all stemcells into one and publish it in
different formats so I'm curious which settings you want to configure.

On Tue, Nov 10, 2015 at 6:02 PM, Kara Felix <kfelix(a)us.ibm.com> wrote:

Is there a way to specify a different agent.json file to use in building a
stemcell? If so, how is it done?

Thanks,

Kara


Alexander Lomov
 

Could you please tell more about plan of consolidating stemcell? As far as I can see stemcell tends to be a IaaS dependent part of BOSH and each infrastructure should have its own agent.json. Otherwise you need a to pass options to bosh-agent somehow and each IaaS has different ways to do it.

On Nov 11, 2015, at 5:18 AM, Dmitriy Kalinin <dkalinin(a)pivotal.io<mailto:dkalinin(a)pivotal.io>> wrote:

There is usually a stage that specifies agent settings (e.g. https://github.com/cloudfoundry/bosh/blob/master/stemcell_builder/stages/bosh_aws_agent_settings/apply.sh). Long term plan is to consolidate all stemcells into one and publish it in different formats so I'm curious which settings you want to configure.

On Tue, Nov 10, 2015 at 6:02 PM, Kara Felix <kfelix(a)us.ibm.com<mailto:kfelix(a)us.ibm.com>> wrote:
Is there a way to specify a different agent.json file to use in building a stemcell? If so, how is it done?

Thanks,

Kara


Kara Felix
 

I'm trying to specify agent settings for using SoftLayer--the agent.json I need is as follows:
{
"Platform": {
"Linux": {
"CreatePartitionIfNoEphemeralDisk": false
}
},
"Infrastructure": {
"Settings": {
"DevicePathResolutionType": "virtio",
"NetworkingType": "manual",
"Sources": [
{
"Type": "File",
"SettingsPath": "/var/vcap/bosh/user_data.json"
}
],
"UseRegistry": true
}
}
}

Am I understanding correctly then that (at the current state of things, I'm also curious about the plan of consolidating stemcell) it would need to be put in a bosh_softlayer_agent_settings stage?

thanks,

Kara