https://github.com/flopberry/home-server
Personal home server setup
https://github.com/flopberry/home-server
ansible proxmox terraform
Last synced: about 2 months ago
JSON representation
Personal home server setup
- Host: GitHub
- URL: https://github.com/flopberry/home-server
- Owner: flopberry
- Created: 2024-12-26T23:00:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-11T01:19:14.000Z (over 1 year ago)
- Last Synced: 2025-03-28T02:52:12.260Z (over 1 year ago)
- Topics: ansible, proxmox, terraform
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Create proxmox user:**
Run this command in proxmox cli
```
pveum user add ansible@pve # Create ansible user
pveum role add Ansibler -privs "Datastore.AllocateSpace Datastore.AllocateTemplate Datastore.Audit Pool.Allocate Sys.Audit Sys.Console Sys.Modify VM.Allocate VM.Audit VM.Clone VM.Config.CDROM VM.Config.Cloudinit VM.Config.CPU VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.Migrate VM.Monitor VM.PowerMgmt SDN.Use" # Create Ansibler role
pveum aclmod / -user ansible@pve -role Ansibler # Set Ansibler role to terraform user
pveum user token add ansible@pve ansible --privsep=0 # Create auth token. You need to copy it from output
```
Then copy token to your vers file
**Configure vars file:**
```
cp vars.yaml.example vars.yaml
vim vars.yaml
cp proxmox.yaml.example proxmox.yaml
vim proxmox.yaml
```
And edit your variable to finish setup
**Start deploying:**
```
ansible-playbook playbook.yaml # To configure proxmox
```