azvyagintsev | 1e5b9d8 | 2018-08-03 12:53:19 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | salt_control_cluster_rng_backend: "/dev/random" |
Vasyl Saienko | ea356da | 2018-11-23 18:28:24 +0200 | [diff] [blame^] | 4 | salt_control_cluster_vcp_lvm_device: '/dev/vda3' |
azvyagintsev | 1e5b9d8 | 2018-08-03 12:53:19 +0200 | [diff] [blame] | 5 | salt: |
| 6 | control: |
| 7 | cluster: |
| 8 | internal: |
| 9 | rng: |
| 10 | backend: ${_param:salt_control_cluster_rng_backend} |
Andrei Danin | c0e4807 | 2018-10-03 06:52:25 -0700 | [diff] [blame] | 11 | seed: cloud-init |
| 12 | cloud_init: |
| 13 | user_data: |
| 14 | salt_minion: |
| 15 | conf: |
| 16 | master: ${_param:infra_config_deploy_address} |
Vasyl Saienko | ea356da | 2018-11-23 18:28:24 +0200 | [diff] [blame^] | 17 | # This part is needed to grow disk for LVM based VCP |
| 18 | # NOTE: device name here is dependent on Disk model we connecting |
| 19 | # to particular VCP. By default it is virtio. |
| 20 | growpart: |
| 21 | mode: auto |
| 22 | devices: |
| 23 | - '/' |
| 24 | - ${_param:salt_control_cluster_vcp_lvm_device} |
| 25 | ignore_growroot_disabled: false |
| 26 | runcmd: |
| 27 | - 'if lvs vg0; then pvresize ${_param:salt_control_cluster_vcp_lvm_device}; fi' |
| 28 | - 'if lvs vg0; then /usr/bin/growlvm.py --image-layout-file /usr/share/growlvm/image-layout.yml; fi' |