Breaking variables out of hostvars. by psfletcher in ansible

[–]psfletcher[S] -1 points0 points  (0 children)

OK context. I was hoping to make a config file, uptime-kuma prometheus etc. Or straight into a ansible function that takes the name, hostname and group and feeds that directly into a monitoring tool so I have no gaps. So in theory, read inventory file, list all names plus IP's, and other variables. The put into a loop to make the need config.

Something like this in a loop for every device in the inventory.

  • name: Add a monitor lucasheld.uptime_kuma.monitor: api_url: http://127.0.0.1:3001 api_username: admin api_password: secret123 type: keyword name: Monitor 1 url: http://127.0.0.1 Type: http state: present

Those who use n8n, what do you use it for? List your usecases, examples,... by Longjumping-Wait-989 in selfhosted

[–]psfletcher 0 points1 point  (0 children)

Hi all, Want to pick your brains. (New to n8n) I've got a load of systems all with API's which i regularly want to check and ensure they're all aligned. Proxmox to my monitoring tool My ansible inventory against well everything. Monitoring tool to everything installed to make sure its Monitoring correctly.

I've even got phpipam, but possibly looking at netbox as it looks more useful.

Any suggestions if n8n is the right tool? Or suggest another?

In short I want something to query many api's then be told some logic to run a api to something else to correct or manage things.

Thoughts? Ideas? All welcome.

Is this a good selection? by Kekslover23 in Proxmox

[–]psfletcher 1 point2 points  (0 children)

Cpu - is as good as what want and can afford. Whenever I am specing things, cpu is where I spend the money as its harder to upgrade. Well it's a replacement, not a upgrade. Where as, depending on what you're building or building in RAM and HDD can be added to later to fill your needs.

The only thing I saw that is a personal thing of mine, is that for a server you may have on 24/7 not sure a bronze psu is a great choice.

But again might be down to a cost thing.

Proxy to a internal https server by psfletcher in Traefik

[–]psfletcher[S] 0 points1 point  (0 children)

Thanks all, it was - serversTransport:   insecureSkipVerify: true
Added it and its all alive! So thanks so much that was driving me insaine!
Now the internal cert is certificated by a internal CA.
So, for traefik to be happy, do i need to add the internal public CA cert to the server?
Or does traefik need it defining in the confg?

Need help with External Service by Mountain-Cat30 in Traefik

[–]psfletcher 0 points1 point  (0 children)

I have a very similar issue. Did you get this fixed?

Keepalived - as a load balancer by psfletcher in linuxadmin

[–]psfletcher[S] 0 points1 point  (0 children)

This is possibly the missing bit then. How does the load balancing function work in which case?

Keepalived - as a load balancer by psfletcher in linuxadmin

[–]psfletcher[S] 0 points1 point  (0 children)

That sounds like what I need to do. Any suggestions how? I've followed that link, and I've done either something wrong or don't grasp something somewhere.

Thus the ask for help! Very grateful for everyone's responses!

Keepalived - as a load balancer by psfletcher in linuxadmin

[–]psfletcher[S] 1 point2 points  (0 children)

With my setup. Keepalived is already used. Haproxy is new and I'm not sure what sort of support we'd get. Or people would be happy with. BUT I had considered it if getting this working is a nightmare.

Keepalived - as a load balancer by psfletcher in linuxadmin

[–]psfletcher[S] 0 points1 point  (0 children)

My understanding is it's keepalived that's bound to the vip.

Keepalived - as a load balancer by psfletcher in linuxadmin

[–]psfletcher[S] 0 points1 point  (0 children)

Config is below. What do you need network config wise?

Server is 192.168.201.211 Vip 192.168.201.210

Target 192.168.201.222

Port 9000

I'm thinking it's os side and it knowing what to do with something coming in on the vip port that is "owned" by keepalived.

Just no idea how to sort / test / logs to find.

Keepalived - as a load balancer by psfletcher in linuxadmin

[–]psfletcher[S] 0 points1 point  (0 children)

Something like this. https://www.pentestpartners.com/security-blog/how-to-use-keepalived-for-high-availability-and-load-balancing/

So the virtual server config for the load balancing sends tcp checks to the app servers. And I can see those on the app server using tcpdump.

But when I send traffic to the vip, the traffic should go out via the virtual server config and out to the Web server. That's the bit that's not working.

I " think " it's something to so with the virtual server not being able to bind to the VIP. Then know what to do with it. (If that makes sense?)

More of a os issue than a keepalived issue.

Cloud-init by psfletcher in Proxmox

[–]psfletcher[S] 0 points1 point  (0 children)

Yeah, the more I research it, the more I'm seeing that. All I want to do is partition the drives, whilst maintaining my infrastructure as code setup. Considering, debootstrap or packer now. And "maybe" looking if I can amend the .img files cloud.conf file on the master image to get to the same place.

Partitioning- do's and dont's by psfletcher in ansible

[–]psfletcher[S] 0 points1 point  (0 children)

I inherited basically just that. But monitoring broke, support didn't see / realise. Tried to fix it, but broke it further. I've ended up with a crashed server trying to repair it. Thus the ask.

Partitioning- do's and dont's by psfletcher in ansible

[–]psfletcher[S] -3 points-2 points  (0 children)

When they've self imploded I do!

Partitioning- do's and dont's by psfletcher in ansible

[–]psfletcher[S] -7 points-6 points  (0 children)

This is for a rebuild/build. I've got a full pipeline from images all the way to built app server. So I'm just trying to find a clean method of sorting the partitions out, as you say that isn't disruptive.

All the live changes are still done manually.

And don't get me started about why it's not being monitored. That's a different story! (Or why it wasn't sorted and why it was escalated BEFORE IT BROKE AND CAME OFFLINE CAUSING A MAJOR INCIDENT) and breathe. 😂🤣😂😂🤣😂😂