File tree Expand file tree Collapse file tree
stages/bosh_aws_agent_settings Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33base_dir=$( readlink -nf $( dirname $0 ) /../..)
44source $base_dir /lib/prelude_apply.bash
5- source $base_dir /lib/prelude_agent.bash
65
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- "ServiceManager": "systemd",
15- "DiskIDTransformPattern": "^vol-(.+)$",
16- "DiskIDTransformReplacement": "nvme-Amazon_Elastic_Block_Store_vol${1} ",
17- "UseMonitIptablesFirewall": true,
18- "InstanceStorageDevicePattern": "/dev/nvme*n1",
19- "InstanceStorageManagedVolumePattern": "/dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_*"
20- }
21- },
22- "Infrastructure": {
23- "Settings": {
24- "Sources": [
25- {
26- "Type": "HTTP",
27- "URI": "http://169.254.169.254",
28- "UserDataPath": "/latest/user-data",
29- "InstanceIDPath": "/latest/meta-data/instance-id",
30- "SSHKeysPath": "/latest/meta-data/public-keys/0/openssh-key",
31- "TokenPath": "/latest/api/token"
32- }
33- ],
34- "UseRegistry": true
35- }
36- }
37- }
38- JSON
6+ cp $assets_dir /agent.json $chroot /var/vcap/bosh/agent.json
Original file line number Diff line number Diff line change 66 "CreatePartitionIfNoEphemeralDisk" : true ,
77 "ServiceManager" : " systemd" ,
88 "DiskIDTransformPattern" : " ^vol-(.+)$" ,
9- "DiskIDTransformReplacement" : " nvme-Amazon_Elastic_Block_Store_vol${1}"
9+ "DiskIDTransformReplacement" : " nvme-Amazon_Elastic_Block_Store_vol${1}" ,
10+ "UseMonitIptablesFirewall" : true ,
11+ "InstanceStorageDevicePattern" : " /dev/nvme*n1" ,
12+ "InstanceStorageManagedVolumePattern" : " /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_*"
1013 }
1114 },
1215 "Infrastructure" : {
2427 "UseRegistry" : true
2528 }
2629 }
27- }
30+ }
You can’t perform that action at this time.
0 commit comments