browningluke / homelab

Terraform + Ansible + configs + docs monorepo for my homelab. Currently being split into smaller repos.
5 stars 0 forks source link

Question regarding modules #24

Open marksie1988 opened 1 year ago

marksie1988 commented 1 year ago

Hi Luke,

I've been attempting to setup terraform in a similar format to yourself, however have had some troubles with the yaml data files.

I wanted to see if you would br willing to share the modules you have written? I'm new to terraform and trying to learn, I love the way you use the yaml data files but can't get a working replica of the modules.

Specifically the cloudflare and swarm pve ones.

Any help or pointers would be appreciated

Steve

browningluke commented 1 year ago

Hey @marksie1988,

Thanks for opening this issue! Glad you've found this repo useful.

I currently have a few midterms that have all of my attention, so I might have to delay writing a full detailed response for you - should only be a couple of days. Just wanted to let you know so that you're not left waiting around.

In the meantime, feel free to have a look at this org: https://github.com/browningluke-tf I put most of my modules here, so you might find something interesting there. Although do note that most of these are archived, that is because I've restructured how I do the modules - see below.

I've also moved a lot of my TF code to this org: https://github.com/orgs/browningluke-iac/repositories?type=all I have tried to break up this monorepo into a set of smaller, individual repos, and then merge the relevant modules into those repos. I'm sure you'll see what I mean just by digging through there.

I separated it into an organization, rather than my personal account, so that I can give granular permissions to a bot user (just a user I created, and grabbed the PAT) for Terraform Cloud integration.

Hope that helps! Let me know if you have anymore questions :)

marksie1988 commented 1 year ago

Hi Luke,

Thanks for the response, this will help me loads, I didnt realise they were in another org, but thats a neat idea to stop them getting lost in your personal account as well.

Good luck with your midterms.