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+ "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
You can’t perform that action at this time.
0 commit comments