Closed mmurali88 closed 2 years ago
Hey I'm on holiday right now so can't answer this properly but I have the config directories in my promox host. You can see them setup here: https://github.com/briandipalma/ansible/blob/main/roles/proxmox/tasks/main.yml#L103
I'll write up a better reply when I'm back.
Thank you I will look into the file.
MY expectation was that the traefik/config folder would automatically get created when the script runs for. Am I correct ?
No, those folders need to exist before hand.
Do you manually create all the folders inside the LV to hold the config ?
Yes.
Would you mind explaining the different between my storage and a volume under the mountpoint ?
I don't understand. I have two btrfs formatted hard drives that are raided to backup each other. https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices those are mounted at /mnt/storage. I think that's enough for a simple homelab use case.
Which mount strategy are you using ? Bind vs Storage backed ?
I think it's bind? I just mount a directory from my btrfs array.
Am I right in assuming that you are storing your config files outside the containers for easier migration in the future ?
It means I can nuke the container and start from scratch but not lose any configuration so yes.
I consider hardware raid redundant today, btrfs and zfs can do this in software for you at the filesystem level.
Hi,
Thanks for sharing your terraform/ansible scripts. I am starting new on my homelab journey and this comes really handy. I am playing around with the first terraform script "traefik" and I am not able to successfully deploy the LXC. The problem starts with the mount point.
I believe your are specifiying the mountpoints to hold the config externally outside the containers for easier migration. I really liked the idea and wanted to give it a shot from the get go. I created a LV "configdata" on my Raid 1 external HDD and I fstabed it under /mnt/storage/appdata
The process seems smooth until here. When I run the script I get an error
error creating LXC container: unable to create CT 101 - directory '/mnt/storage/appdata/traefik/config' does not exist, error status
The container gets created fine if I create the traefik/config folder inside it.
Few questions
My setup
The way I created my configdata LV