Chef cookbook used to provision a QMK dev machine.
- Ubuntu 16.04 LTS
- Chef 14.0+
default['qmk']['admin_user'] = 'vagrant'
default['qmk']['admin_passwd'] = 'vagrant'
default['qmk']['github_user'] = 'qmk'
git
clones the qmk_configurator
repo.
Usage: include_recipe 'qmk::configurator'
default recipe that utilizes the firmware
and user
recipes.
Usage: include_recipe 'qmk::default'
git
clones the qmk_firmware
repo.
Usage: include_recipe 'qmk::firmware'
Create users.
Usage: include_recipe 'qmk::users'
-
Install Vagrant and Virtualbox on your system.
-
Install Chef Workstation.
-
Download/Clone this repo and
cd
into it. -
On your terminal, examine the list of test kitchens that can be run by typing:
kitchen list
You should see output siilar to the following
Instance Driver Provisioner Verifier Transport Last Action Last Error
default-ubuntu-1604 Vagrant ChefSolo Inspec Ssh Converged <None>
-
Converge the selected instance by typing:
kitchen converge default-ubuntu-1604
You may replace default-ubuntu-1604
with your target.
-
This should result in a VM with your selected user created and
qmk_firmware
downloaded. -
Run a
kitchen verify
command to check that all packages have been installed correctly. -
Run a
kitchen login
command to log into theVM
. The other option is to open up virtualbox and open up the newly created instance and run Ubuntu in a VM.