35 Commits

Author SHA1 Message Date
8e4247fd58
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).

* First attempt to add metasploit installer.

* Fix check for Linux and macOS to use System, not Distro.

* Add more memorable aliases for msfconsole.

* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.

* Add missing pipe.

* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.

* Add note for future removal.

* Use general gather for all groups. Move user variables to it.

* Feodra Workstation succeeds now! Add newline to end of file.

* First attempt at doing host variables via local files.

* Try using ini as lookup.

* Remove "-" typo.

* Add an initial gather even though it may not have all values properly populated on a machine's first run.

* Fix typo in ignore.

* Try default values.

* Try defaults without quotes.

* Add a section header. Add a default back.

* Rename section to global.

* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.

* Put flags back on Dell so that programs are not removed while configuring files.

* Add provision config read to workstation.

* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.

* Change {{}} to (()) in comments to avoid undefined variable error.

* Attempt to modify existing task groups instead of moving all tasks to one large group.

* Try to use blocks.

* Name blocks and remove redundant calls.

* Do the bare minimum for miner and server so the variables are at least defined.

* Ensure Server and Miner look at their own files.

* Test how block variables are handled.

* Are the variables true Booleans, not strings??

* Change exits to tests so we can see which ones work.

* Add more tests.

* Add the test results.

* Add config_dir for plays to use when making any config files.

* Move provision config dir.

* Add results of test.

* Remove the exit. Fix the blocks' whens.

* Do provision after starting, that way all facts exist.

* Fix all "true"'s.

* Adjust variable checks for provision_config changes.

* Change gui to wrk. Add aliases to cat files.

* Comment entire hosts file.

* Add localhost,

* Try localhost rather than host file group.

* Fix typo in "prov_dir".

* Add newline to end of file.

* Add newline to end of file.

* Add newline to end of file.

* Debug variable. Should be getting set but receiving errors on Fedora.

* Add newline to end of file.

* Fix debug property, var not name.

* Fix show-config. Change show-config-all to only hit active files, not backups.

* Uncomment commented workstation.

* Add commands to edit files.

* Attempt to fix gitlab installer variables.

* Attempt to fix gitlab play variable.

* Replacing `ling` for `{{ user }}`.

* Remove TODO.

* Remove `config_dir` and move provision config back near top.

* `user_root` is not needed, already moved to /usr/local/etc/.

* Add value for running anything at all. This allows user to set up files before first run.

* Reduce the check frequency,

* Ensure files are printed in correct order. Also add a newline between each.

* Only send file if it exists, and then remove it if it sends successfully.

* Always set the destination variables.

* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
d536e167c0 Only run apt updates on apt machines. 2021-04-03 09:07:17 -05:00
34dd043e33 Disable auto-updates on miners for a bit. 2021-04-02 07:19:36 -05:00
79349484fa Update name. 2021-03-05 17:57:05 -06:00
f068c12cd7 Add sudo to update commands. 2021-03-05 17:52:50 -06:00
8e3d71a96f Need to use sudo to reboot successfully. ;D 2021-02-18 07:46:57 -06:00
637358e793 Obviously this only needs run on apt machines lol. Just in case I test mining on Arch later. 2021-02-17 05:18:44 -06:00
38a73884c0 Fix name. 2021-02-17 05:14:12 -06:00
7953bc7a51 GPU mining performance starting to report lower over time, looks like lots of watchdog processes running. Add a daily reboot as well as follow-up patch. Refactor current schedule document across a few files. 2021-02-17 05:12:25 -06:00
51f50c4118 Stop CPU mining on x570, was opnly for testing. Get greedy with scheduling. 2021-02-15 20:07:55 -06:00
08e64f1c97 Add extra call for default script name just in case not called from cron. 2021-02-15 19:38:06 -06:00
693e7eee5b Always recreate script file. Kill both exec and script. 2021-02-15 19:30:06 -06:00
fdd1db85e5 Move check alive to be in script, not cron. 2021-02-15 18:58:06 -06:00
acc33c61c1 Add space. 2021-02-15 18:41:58 -06:00
29fbf12b62 Set mfn up for using bash expressions in cron. 2021-02-15 18:41:16 -06:00
744fc87318 Rename property. 2021-02-15 18:31:36 -06:00
e9841366d1 Woops, use script not executable and fix killall command. 2021-02-15 18:29:23 -06:00
c2e0d532da Change jobs to be every 5 minutes. Fix loop variables in non-loop. 2021-02-15 18:27:44 -06:00
84cb8194ca Setting up for showtime. 2021-02-15 18:19:32 -06:00
b1d0245ae9 Add quotes. 2021-02-15 14:14:17 -06:00
ced0e9e752 Dumbify variables a bit and take some hints from finally discovered documentation on boolean functions. 2021-02-15 14:13:04 -06:00
d8c45fd477 Try to do variables in a different way. No idea if it will work. 2021-02-15 13:57:22 -06:00
5a5b799c8a It worked!? Name was the same on both tasks though lol. 2021-02-15 12:18:07 -06:00
7b53d2b67b Try not on the inside. 2021-02-15 12:13:49 -06:00
9212efca40 Add quotes for job without function. 2021-02-15 12:10:40 -06:00
41d89d5100 Try not as function. 2021-02-15 12:09:25 -06:00
cd656c3b61 Fix error. 2021-02-15 11:23:57 -06:00
5891b80054 Try single brace. 2021-02-15 11:22:58 -06:00
705bfaea2e Trying craziness. 2021-02-15 11:22:20 -06:00
9673f33716 Try putting not inside brackets. 2021-02-15 11:17:21 -06:00
f5c23d9b9b 13 is too close to */15, move to 7. Try forcing the variable to a bool. 2021-02-15 11:16:06 -06:00
5f4f57c83f Try using not. 2021-02-15 11:12:04 -06:00
a9965087b8 Try ! on outside. 2021-02-15 11:10:37 -06:00
caff57f16e First attempt to create miner cron jobs. Unsure if ! will work. 2021-02-15 11:09:34 -06:00
2a6edcb788 Beginning to put together tasks for ETH mining. 2021-02-11 08:05:34 -06:00