Skip to content

Commit eeead17

Browse files
committed
fix: replace files dropped in merge forward
1 parent 220d86b commit eeead17

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
function get_partitioner_type_mapping {
3+
echo '"PartitionerType": "parted",'
4+
}

stemcell_builder/stages/bosh_aws_agent_settings/apply.sh

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,34 @@
22

33
base_dir=$(readlink -nf $(dirname $0)/../..)
44
source $base_dir/lib/prelude_apply.bash
5+
source $base_dir/lib/prelude_agent.bash
56

6-
cp $assets_dir/agent.json $chroot/var/vcap/bosh/agent.json
7+
cat > $chroot/var/vcap/bosh/agent.json <<JSON
8+
{
9+
"Platform": {
10+
"Linux": {
11+
$(get_partitioner_type_mapping)
12+
"DevicePathResolutionType": "virtio",
13+
"CreatePartitionIfNoEphemeralDisk": true,
14+
"UseMonitIptablesFirewall": true,
15+
"InstanceStorageDevicePattern": "/dev/nvme*n1",
16+
"InstanceStorageManagedVolumePattern": "/dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_*"
17+
}
18+
},
19+
"Infrastructure": {
20+
"Settings": {
21+
"Sources": [
22+
{
23+
"Type": "HTTP",
24+
"URI": "http://169.254.169.254",
25+
"UserDataPath": "/latest/user-data",
26+
"InstanceIDPath": "/latest/meta-data/instance-id",
27+
"SSHKeysPath": "/latest/meta-data/public-keys/0/openssh-key",
28+
"TokenPath": "/latest/api/token"
29+
}
30+
],
31+
"UseRegistry": true
32+
}
33+
}
34+
}
35+
JSON

0 commit comments

Comments
 (0)