746 Commits (5b3ff87c1f869c2669dc2296dea0da0d0919bfe0)

Author SHA1 Message Date
Digimer c3869a2ff6 * Started adding in front-end support for managing email servers and alert recipients. Added the new 'Email' module to (later) habdle all email-related tasks. 5 years ago
Digimer c2ef156e2d * Did work on adding better offline support for installing DHCP/PXE targets on RHEL 8.1 5 years ago
Digimer 974d3c3411 * Fixed the order or table creations in anvil.sql (as well as fixed a missing comma) 5 years ago
Digimer c34f56f2c8 * Disabled firewalld for now. 5 years ago
Digimer a16e86dc7c * Finished tools/anvil-configure-host! More notably, it can now update the network without a reboot, and it cleanly handles losing and reconnecting to dashboards. 5 years ago
Digimer e9ee74553a * Fixed a comment bug in Network->reconfigure_network() indicating that MAC lookup was using the wrong hash key. 5 years ago
Digimer 9bcad1c4bf * Did more work on adapting tools/anvil-configure-host to work on nodes and DR hosts. 5 years ago
Digimer 6d81e03fb2 * Created Network->match_gateway() to check if a gateway applies to a given network. 5 years ago
Digimer 86af67ecda * Created a cachine mechanism for anvil-update-states so that it can record network interface link state changes when it loses contact with all databases, as can happen when cycling NICs to map a newly build DR host or node. 5 years ago
Digimer 530d379f59 * Started work on caching network state change in tools/anvil-update-states. 5 years ago
Digimer e8d15112da * Fixed a bug in anvil.js where the state of a link always said 'up', even when it was down. 5 years ago
Digimer 90f5bf49d5 * Updated Network->load_interfces() to only assign a 'changed_order' to real interfaces. 5 years ago
Digimer 0dfd2ddbf0 * Renamed 'ip' to 'ip_address' in Striker->parse_all_status_json() and related functions. 5 years ago
Digimer 0b2439edc3 * Finished the jquery/css stuff for showing the list of hosts that can have their network configured. 5 years ago
Digimer c608ebb232 * Added bonds -> bond_bridge_uuid to track which bridge, if any, that a bond is connected to. Updated Network->load_interfces() to record this. 5 years ago
Digimer 7aaef3d6d5 * Fixed bugs in Striker->parse_all_status_json() and System->generate_state_json() where the connected interfaces to bridges and bonds wasn't be stored properly. 5 years ago
Digimer aba79cc457 * Added a check in Striker->parse_all_status_json() to set the connected interface types. 5 years ago
Digimer 54de5466cf * Renamed bond_active_slave to bond_active_interface. 5 years ago
Digimer 12b0cc28f0 * Renamed 'primary_slave' to 'primary_interface' for the bond table. 5 years ago
Digimer d5672e77eb * Standardized 'subnet_mask' over 'subnet' naming throughout. 5 years ago
Digimer b2ff4c4c53 * Created Network->get_company_from_mac() that converts a MAC address to the company name that owns it. 5 years ago
Digimer e3a8c1a01d * Created System->generate_state_json() that reads, parse and writes out the network status of all known machines on a given Striker database. 5 years ago
Digimer 7cf1db3b37 * Added strings for making size suffixes translatable and updated Convert->bytes_to_human_readable to use them. 5 years ago
Digimer d0006cc4d3 * Changed a bunch more variables to standardize on 'mac_address' instead of 'mac'. 5 years ago
Digimer 70776964d6 * Added packages needed to support offline machines to striker-manage-install-target. 5 years ago
Digimer ea27f88bcc * Removed the 'bridge_interfaces' table and related database methods. This was found to be duplicate, given that 'network_interfaces' has references to parent bonds and bridges. 5 years ago
Digimer 628f7faa45 * Updated the RPM spec file to generate '/etc/anvil/type.X' files to directly indicate the machine type. Updated System->get_host_type() to check for these files directly, falling back to parsing the host name if they don't exist. 5 years ago
Digimer 077977ad9c * Fixed tools/anvil-update-states so that it properly removed ip_addresses no longer assigned to a host. Also merged 'network::interfaces::by_name::${interface}' with 'network::local::interface::${interface}' for storing discovered interfaces.' 5 years ago
Digimer 197f5ed90e * Finished the automatic archving of the database! New in M3; Archving happens on dashboards only, and whichever database triggers an archive will archive all data in any connected databases. This is a departure from where each host archived it's own data, but will avoid putting a disk or CPU load on server hosts. 5 years ago
Digimer 650dc6eb80 * Finished Storage->compress(). Also added some missing 'port' parameters (reads and passes) in a few different Storage methods. 5 years ago
Digimer 08176a5711 * Updated Database->_archive_table() to remove double-// in paths. 5 years ago
Digimer b29bfd4c59 * Added some logging to the archive method. 5 years ago
Digimer b436500a54 * Started working on getting database archiving working. It's close to done, but needs testing/debugging and other finery. 5 years ago
Digimer b1a175baa0 * Finished Network->load_ips(). 5 years ago
Digimer 934c9b1286 * Updated logging to now log anything with 'priority' set to a new 'anvil.alert.log' file (while still also logging as normal to anvil.log). This should make it easier to watch for alert messages. 5 years ago
Digimer af6e2c076d * Fixed a tricky deep recursion bug in Network->is_local when the passed in host was an empty string. Also created a cache system where a host name that has been checked before is immediately returned, without needing to run through the logic in 'is_local', which gets called quite frequently. 5 years ago
Digimer 32bcdbe6d3 * Removed Network->is_remote, standardized on Network->is_local, and flipped calls to it to be more sensible (is_local -> local call -> else remote call). Also fixed a deep recursion issue with ->is_local where, given that it logs (which calls Storage methods which have local/remote invocations), would loop. 5 years ago
Digimer a7f93c59ea * Reworked striker-parse-oui and striker-scan-network to always lower-case the MAC address. 5 years ago
Digimer 4d0a02ce74 * Fixed a bug in Database->get_local_uuid() where ->is_local() was being called incorrectly. 5 years ago
Digimer 1d13e669a7 * Created the new tools/striker-scan-network tool that ping scans a network range and records the discovered hosts in the new 'mac_to_ip' table. Also created Database->insert_or_update_mac_to_ip() to handle the new table. 5 years ago
Digimer 7e960f1632 * Created the 'oui' database table that stores the parsed OUI data, as processed by the new 'tools/striker-parse-oui' tool. Also created Database->insert_or_update_oui() to handle inserts and updates. 5 years ago
Digimer 7cdd2f60e9 * Created Network->download() to handle downloading a file on the local system. Created ->bridge_info() to parse 'bridge' output. Created ->load_ips() to load IP address information from the database (as opposed to ->get_ips() which queries a system). 5 years ago
Digimer 183d2d9cce * Updated Storage->backup to append a short UUID to the timestamp to prevent issues if the same file is backed up twice in the same clock second. Also fixed a bug with remote_user parameter not having a default. 5 years ago
Digimer 65a27ba2f8 * Created Network->check_internet() that, well, checks to see if a machine has access to the Internet or not. 5 years ago
Digimer 3a86bed694 * Fixed tools/striker-initialize-host so that it set the hostname on the target, not locally. 5 years ago
Digimer b57546e663 * Fixed a bug in Database->manage_anvil_conf() where the wrong password and port was being set. 5 years ago
Digimer 3e01537209 * Updated how bad keys are removed. No longer are speciifc lines removed by number, but now all entries for the given target in the known_hosts file is removed. 5 years ago
Digimer 566ec896ca * Created tools/anvil-manage-keys to handle user requests to remove bad keys from known_hosts files for target machines that have been rebuilt or replaced. 5 years ago
Digimer 37f36fe99c * Updated kickstart to write the basic tools/anvil-update-issue to a freshly installed machine and run it from cron. 5 years ago
Digimer ed048a5483 * Fixed a bug in Database->get_local_uuid() where it was calling the now-removed Get->network_details(). 5 years ago