Changeset View
Changeset View
Standalone View
Standalone View
proxmox/terraform/prepare-workstation.md
- This file was added.
This is the required tooling for the following to work. | |||||
# terraform-provider-proxmox | |||||
go module to install | |||||
``` | |||||
git clone https://github.com/Telmate/terraform-provider-proxmox | |||||
cd terraform-provider-proxmox | |||||
# compile terraform proxmox provider | |||||
export GOPATH=`pwd` | |||||
make setup | |||||
make | |||||
make install | |||||
# Install so that terrafor actually sees the plugin | |||||
mkdir -p ~/.terraform.d/plugins/linux_amd64 | |||||
cp -v ~/go/bin/terraform-provi* ~/terraform.d/plugins/linux_amd64/ | |||||
``` | |||||
At the end of this, `terraform init` within /proxmox/terraform/ should now | |||||
work. | |||||
Doc: https://github.com/Telmate/terraform-provider-proxmox/blob/master/README.md | |||||
# Puppet provisionner | |||||
The second part of the terraform setup is to delegate the machine setup to | |||||
puppet. This needs other tools (bolt and some puppet modules) | |||||
bolt: | |||||
``` | |||||
wget https://apt.puppet.com/puppet-tools-release-stretch.deb | |||||
sudo dpkg -i puppet-tools-release-stretch.deb | |||||
sudo apt-get update | |||||
sudo apt-get install puppet-bolt | |||||
``` | |||||
(Even on buster, bolt ends up installed in /usr/local/bin/bolt) | |||||
Docs: https://puppet.com/docs/bolt/latest/bolt_installing.html#concept-8499 |