File tree Expand file tree Collapse file tree
stages/bosh_aws_agent_settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ function get_partitioner_type_mapping {
3+ echo ' "PartitionerType": "parted",'
4+ }
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
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+ "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
You can’t perform that action at this time.
0 commit comments