366 Commits (9153397f45a10aee011a11e5754d751dd9b8d925)

Author SHA1 Message Date
Digimer a294c6c4fa * Updated the database components to use the name 'anvil' and the user 'admin'. The 'database::user' and 'database::name' variables are still supported, but now hidden. 7 years ago
Digimer e4f7bcf661 * Created Storage->backup() that makes a backup of the given file under the Anvil! backup directory with a time-stamped suffix and preserving the original directory path. 7 years ago
Digimer d6846841a2 * Added the 'job_status' column to the 'jobs' table where progress to be shown to users is stored. 7 years ago
Digimer 7694847160 * Fixed a bug in Database->insert_or_update_jobs(). 7 years ago
Digimer e38bc826dd * Fixed a bug in resync_databases where undefined column values weren't being handled properly. 7 years ago
Digimer 0370d6acef * Fixed a bug in the network_interfaces SQL procedure that broke how data was recorded in the history schema. 7 years ago
Digimer 527848de97 * Added logging to a plain file to aid in debugging. We will revert to journald logging before first release. 7 years ago
Digimer c21b326f1a * Changed all methods to take a 'debug' argument for setting log level on calls. 7 years ago
Digimer 6f4df4ed22 * Changed 'database::X::ping_before_connect' to 'database::X::ping' and made the value be the actual timeout to wait for pings when trying to connect to a database. 7 years ago
Digimer fe4a1d5a1c * Working on timing for DB connections. 7 years ago
Digimer f72d8e0f70 * Added a version file and Tools->_anvil_version() which reports the version in it. 7 years ago
Digimer 2170c00add * Added the 'debug' parameter to System->check_alert_sent. Also updated it to use 'alert_sent_uuid'. 7 years ago
Digimer f1bd4b99ca * Fixed more issues with anvil-prep-database. 7 years ago
Digimer d03213b860 * Fixed some string and path issues from the 'anvil' merger. 7 years ago
Digimer 5d78ca6624 * Finished (but still need to test) Database->insert_or_update_jobs(); 7 years ago
Digimer 5976e7ea32 * Adding a new Database->insert_or_update_jobs() method and associated database tables. 7 years ago
Digimer 1cb42080c3 ** Major Changes ** 7 years ago
Digimer bb89254207 * Added an undocumented (does this count?) parameter 'log_level' to Database->insert_or_update_variables() to allow per-call logging levels. 7 years ago
Digimer 3d385a5731 * Updated the configuration step 2 to properly show interface link changes again (had to add the network status XML generator back), and added displaying the 'up order', which tells the order that interfaces last cycles. This allows a user to unplug and plug the network cables in without watching the screen and be able to determine which interfaces cycled in a given order. This makes it easier to map MAC addresses to desired roles. 7 years ago
Digimer 1e7fe44c23 * Updated Get->host_uuid to record the UUID to a cache file when run with root privs, but read from the cache when an unpriv user. 7 years ago
Digimer 96670756ab * Created Database->insert_or_update_network_interfaces to handle pushing data into update_network_interfaces. 7 years ago
Digimer c4a857e8d8 * Created Validate->is_alphanumeric, ->is_domain_name and ->is_positive_integer. 7 years ago
Digimer c962a9ac79 * Added the loading of the CGI module when the environment is set to 'html'. 7 years ago
Digimer 692e3a1d97 * Started work on the database archiving method, but won't be continuing it until enough data is being collected to have a working data set. 7 years ago
Digimer 0af03deca9 * Fixed a problem with resync'ing a table with a host_uuid column. 7 years ago
Digimer e68ebe31a0 * Fixed a problem in the resync code where differing time zones on two DB servers caused their time stamps to appear different. 7 years ago
Digimer 1d1258e8b5 * Resync'ing tables works!! (Well, kind of, loooots more testing needed). 7 years ago
Digimer 1aefa7fb8a * Made more progress on the resync code. 7 years ago
Digimer 21694716e8 * Made more progress on the automatic DB resync code. It now pulls the table columns and reads the data from the DB. 7 years ago
Digimer ce607238f8 * Fixed Database->_find_behind_databases(), making it a lot simpler in the process. 7 years ago
Digimer 3ce3a80c98 * Started working on the updated Databse->_find_behind_databases logic. 7 years ago
Digimer b5e7054a33 * Added Scalar::Util->weaken to help avoid memory leaks. 7 years ago
Digimer 9b8922b530 * Created System->is_local that takes a hostname or IP address and returns '1' if that matches the local host or one of the local IPs. 7 years ago
Digimer cd5a78091f * Started work on managing the firewall in System. 7 years ago
Digimer 57f1b60bdb * Fixed several minor issues and silenced a lot of logging. 7 years ago
Digimer c6ad16a7a1 * Added a timeout to System->ping to reduce the delay caused by the host being unable to resolve a hostname. 8 years ago
Digimer 9936554cdb * Created Tools->nice_exit 8 years ago
Digimer 6080ae0bb3 * Connecting to a database now adds/updates the host in the database via the new Database->insert_or_update_hosts and Database->get_hosts(). 8 years ago
Digimer 4aff8a1722 * Fixed bad calls to $an->_hostname and $an->_short_hostname. 8 years ago
Digimer a932b44d28 * Fixed a few more problems with the SQL schema and setting up the database when needed. 8 years ago
Digimer 13352bad6d * Moved most of 'scancore-database' into the new Database->configure_pgsql() method. I had renamed that script, but now it will be removed soon. 8 years ago
Digimer ae58dd6f12 * This commit gets m3 back to being able to compile. It very likely doesn't actually work yet though. 8 years ago
Digimer 66a984adbc NOTE: Certainly a broken commit. 8 years ago
Digimer 13ae1f1701 Some more work on the database (and related methods). Still a long way from working. 8 years ago
Digimer 3ea562a79c Note: Broken Commit 8 years ago
Digimer 632f677f04 * Added two new modules; Convert.pm for converting data types and Database.pm for managing all things related to databases. 8 years ago