Created
April 19, 2021 17:28
-
-
Save stephaneerard/03ef18ee31774e54d730d715414d2462 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $json = get-content "$PSScriptRoot/../init.json" -raw -Encoding ascii | convertfrom-json | |
| $machinesTypes = $json.vagrant.'machines-types'; | |
| foreach($machineType in $machinesTypes) { | |
| frenchex2 vagrant:machine-type:add ` | |
| --name "${machineType.Name}" ` | |
| --vcpus "${machineType.Vcpus}" ` | |
| --cpucap "${machineType.CpuCap}" ` | |
| --os-type "${machineType.'os-type'}" ` | |
| --os-version "${machineType.'os-version'}" ` | |
| --ram-mb "${machineType."ram-mb"}" ` | |
| --vram-mb "${machineType."vram-mb"}" ` | |
| --no-3d ` | |
| --no-gui ` | |
| --provider "${machineType.Provider}" ` | |
| --enabled ` | |
| --box "${machineType.box}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "vagrant": { | |
| "machines-types": { | |
| "dev": { | |
| "vcpus": 4, | |
| "cpucap": 100, | |
| "os-type": "Debian_64", | |
| "os-version": "10.9.0", | |
| "ram-mb": 2048, | |
| "vram-mb": 8, | |
| "3d": false, | |
| "gui": false, | |
| "provider": "virtualbox", | |
| "enabled": true, | |
| "box": "debian/contrib-buster64" | |
| } | |
| }, | |
| "provisioners": [ | |
| ] | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is correct