Commit Graph

345 Commits

Author SHA1 Message Date
f7e97f5c81 Merge pull request 'feat: Add score and opnsense implementation to register dhcp leases in dns server' (#8) from feat/dnsRegisterDhcpLeases into master
Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/8
2024-12-18 17:45:54 +00:00
Jean-Gabriel Gill-Couture
478fd9e941 feat: Add score and opnsense implementation to register dhcp leases in dns server 2024-12-18 12:38:04 -05:00
51c6f1818c feat: remove the getMacAddress 2024-12-18 09:38:17 -05:00
58f81f0e58 Merge pull request 'feat/opnsenseDNS' (#6) from feat/opnsenseDNS into master
Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/6
2024-12-18 14:21:54 +00:00
Jean-Gabriel Gill-Couture
18c67adfad feat: Harmony now sets dhcp next boot server for PXE on okd setup 2024-12-17 22:45:37 -05:00
Jean-Gabriel Gill-Couture
b15df3c93f feat: OKD Dhcp config works and is actually savec on opnsense firewall, its alive!! First real run on wk cluster 2024-12-17 15:15:41 -05:00
Jean-Gabriel Gill-Couture
d0d81af796 feat(macro): Add mac_address macro 2024-12-17 09:54:23 -05:00
Jean-Gabriel Gill-Couture
1e0c2eb470 feat: Added new crate harmony_macros with ip! macro to facilitate creating ip addresses 2024-12-09 15:23:12 -05:00
jeangab
3592b176e5 chore: Some cleanup in harmony repo 2024-12-03 10:43:50 -05:00
58a4e7882b Merge pull request 'Actual implementation of opnsense dhcp' (#4) from feat/opnsenseDhcp into master
Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/4
2024-11-29 14:53:22 +00:00
jeangab
9c18c8be6d Integrated opnsense-config API in harmony, pretty easy, pretty happy. very much encouraging 2024-11-26 15:58:42 -05:00
Jean-Gabriel Gill-Couture
d30e909b83 feat(opnsense-config): Public API now complete for dhcp add_static_mapping and remove_static_mapping, not perfect but good enough to move forward 2024-11-23 15:07:04 -05:00
Jean-Gabriel Gill-Couture
b14d0ab686 feat: Can now save configuration, refactored repository into manager as it also executes commands to reload services and calling it a repository was found misleading by @stremblay" 2024-11-22 14:15:23 -05:00
Jean-Gabriel Gill-Couture
9a37aa1321 feat(opnsense-config): Public API now a bit simpler, added support for latest opnsense version in xml types 2024-11-21 21:49:38 -05:00
Jean-Gabriel Gill-Couture
cc9bcb902c feat: DhcpConfig can now effectively manage a config file to add a static map entry 2024-11-18 17:05:48 -05:00
Jean-Gabriel Gill-Couture
cb1fea1eda wip: Interfaces using NamedList helper type to handle dynamic interface names, some refactoring on top 2024-11-18 07:08:03 -05:00
Jean-Gabriel Gill-Couture
65c395aeae wip(opnsense-config): Refactoring to improve usability and features 2024-11-14 23:45:13 -05:00
jeangab
85786cf648 feat(opnsense-config): ip_in_range function works 2024-11-07 09:22:22 -05:00
0700265622 wip: Implement add static mapping public function 2024-11-07 07:49:13 -05:00
Jean-Gabriel Gill-Couture
50ca6afb47 feat(opnsense-config): Xml parsing now works great to parse a full production config. Only some element ordering that is not consistent across multiple elements of the same type sometimes does not match but moving some stuff around gets us easily to a 100% matching file 2024-11-06 16:23:08 -05:00
Jean-Gabriel Gill-Couture
ab59923dae feat(opnsense-config): Add MaybeString type to preserve xml serialization of empty elements 2024-11-02 13:51:12 -04:00
Jean-Gabriel Gill-Couture
ebdc83b21b wip: RawXml ser/de works well, still a few more complex cases to test but seems good wnough for the opnsense config case 2024-10-20 07:39:41 -04:00
Jean-Gabriel Gill-Couture
e0acbf304b wip: Full opnsense deserializer almost done, works on a slightly cheated config file, next step is to try the real config file 2024-10-18 00:48:57 -04:00
Jean-Gabriel Gill-Couture
b332723431 feat(opnsense-config): Refactor config to use a repository trait, implement file based and ssh, save a full config file 2024-10-14 16:13:20 -04:00
Jean-Gabriel Gill-Couture
8459c38499 wip(opnsense-config): It compiles now, still have to test it 2024-10-14 07:53:02 -04:00
Jean-Gabriel Gill-Couture
32cea6c3ff wip: New crate opnsense-config 2024-10-13 08:48:56 -04:00
Jean-Gabriel Gill-Couture
6a5ebdbac7 wip: xml parser 2024-10-04 11:26:55 -04:00
jeangab
407bdbc032 wip: OPNSense XML config editor coming along 2024-09-30 16:20:11 -04:00
jeangab
465106438a wip: Actual implementation of opnsense dhcp 2024-09-27 16:51:49 -04:00
b0fc55e1fb Merge pull request 'feat: Significant refactoring to introduce the HostBinding struct that has for sole purpose to bind a PhysicalHost and LogicalHost together. The PhysicalHost contains everything hardware up to the mac address, LogicalHost ip address, name and above' (#3) from feat/architecture_v1 into master
Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/3
2024-09-27 13:29:20 +00:00
jeangab
13ba3964c0 feat: Improve DHCP architecture, much better, architecture feels good right now 2024-09-26 22:22:56 -04:00
jeangab
1e1aa53eaa feat: Significant refactoring to introduce the HostBinding struct that has for sole purpose to bind a PhysicalHost and LogicalHost together. The PhysicalHost contains everything hardware up to the mac address, LogicalHost ip address, name and above 2024-09-23 00:30:27 -04:00
jeangab
9d0aa406e4 wip: Trying to figure out a nice way to have inventory and topology bound, maybe creating nodes that have this only purpose would make sense 2024-09-21 09:35:49 -04:00
Jean-Gabriel Gill-Couture
042ff7e7dd chore: Move client setups to private repos that can be cloned manually by the developer 2024-09-13 16:19:49 -04:00
532f600283 Merge pull request 'feat/opnsenseFqm' (#2) from feat/opnsenseFqm into master
Reviewed-on: https://git.nationtech.io/johnride/harmony/pulls/2
2024-09-10 15:41:14 +00:00
Jean-Gabriel Gill-Couture
df714e216a feat: Topology, inventory, score, its all coming together and compiles. I think its very usable as a first alpha version. Game on 2024-09-08 22:42:29 -04:00
Jean-Gabriel Gill-Couture
ff3d53c704 wip: Working hard on topology, seems to have something that may work, next step is put the building blocks together for real 2024-09-08 19:06:21 -04:00
Jean-Gabriel Gill-Couture
87a9ec3ec4 wip: FQM topology with OKDHaCluster, not satisfied yet with the cluster topology data structure 2024-09-08 11:32:19 -04:00
jeangab
8592a3bc36 feat: Refactored harmony into a workspace with independent modules per client, completed RusshClient test_connection implementation. Needs refactoring though 2024-09-06 16:10:06 -04:00
jeangab
cc01ec5fe5 chore(harmony): Use Cargo workspaces for core harmony and client specific implementation 2024-09-06 12:17:23 -04:00
aa28ab37b8 Core domain structure for harmony rs (#1)
Co-authored-by: jeangab <jeangabriel.gc@gmail.com>
Co-authored-by: Jean-Gabriel Gill-Couture <jeangabriel.gc@gmail.com>
Reviewed-on: https://git.nationtech.io/johnride/harmony/pulls/1
Co-authored-by: jeangab <jg@nationtech.io>
Co-committed-by: jeangab <jg@nationtech.io>
2024-09-06 12:41:00 +00:00
231b1cca9f feat(watchguard): debut d'automation, structure tftp 2024-09-02 07:49:56 -04:00
411e3ce8cd doc(adr): Wrote ADR for Rust Language and Hexagonal architecture 2024-09-01 16:11:20 -04:00
Jean-Gabriel Gill-Couture
1881428a63 try out ipmi and redfish rust crates 2024-08-30 11:44:25 -04:00
jeangab
7d69ac447a Try out bifrost and see if we want to use it as bare metal provisionner 2024-08-28 16:16:36 -04:00