125 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
107374d93c
General Improvements + FreeBSD Fixes (#15)
* Remove Thunderbird and Audacity. Don't add Geary to new installs but don't remove it in case it comes with the distro.

* Remove Thunderbird from Favorites.

* Add more systems to Dev branch.

* Add sudo so older distros don't ask for password on every app update.

* Alias for sync to help save some time typing.

* Post less often to hopefully allow keeping up a year of data in less than 16GB.

* Allow workstations to use printers without manual intervention.

* Section does more than UI work.

* Fix file path.

* Upgrade nanominer to 3.3.13.

* Add more chances for script to automatically restart.

* Add the minhashrate for x570.

* Up the minimum for x570.

* Fix "1: syntax error, unexpected USERGROUP, expecting END or ':' or '\n'" on FreeBSD.

* Correct FreeBSD package manager.
```
ansible -m setup localhost | grep ansible_pkg_mgr
        "ansible_pkg_mgr": "pkgng"
```

* Set vi as EDITOR.

* Add FreeBSD to distros that include make. It does not have an install from pkg.

* Make on FreeBSD hates dash-to-dock's Makefile. GMake has better luck.

* Update supported OS's.
2021-10-18 07:13:49 -05:00
8ff370f0f9 Fix when statement's quotes. 2021-04-07 20:39:32 -05:00
bf8db4eea9 Placeholder to fix a warning message. 2021-04-07 20:37:54 -05:00
d536e167c0 Only run apt updates on apt machines. 2021-04-03 09:07:17 -05:00
711a88dd8d Install AMDGPU-PRO every run. 2021-04-03 09:00:09 -05:00
89e140ab8d Stay on the first known good kernel for testing why GPU isn't mining. 2021-04-02 07:21:45 -05:00
34dd043e33 Disable auto-updates on miners for a bit. 2021-04-02 07:19:36 -05:00
0808b18d65 Add explicit no memTweak per John@nanopool. 2021-03-30 06:47:28 -05:00
3aaf04c367 Update names. 2021-03-28 09:47:54 -05:00
208752c871 VSCode is a jerk. Fix quotes. 2021-03-28 09:32:50 -05:00
b9df5f3e85 Add quotes around var. 2021-03-28 09:32:21 -05:00
010a4ce7bb Add chown for script, make it a loop. 2021-03-28 09:31:31 -05:00
334e355065 Fix root_home variable to not be an ansible subdirectory. 2021-03-28 08:59:36 -05:00
cc58a0d882 Run easier command as driver test. 2021-03-28 08:56:36 -05:00
dfdc40b470 Add pool sorting. 2021-03-25 08:35:54 -05:00
61e84e8f7a autoUpdate is terrible. What a mistake. Ruined the account's home directory. 2021-03-25 08:26:40 -05:00
3e675058bf Add autoUpdate to CPU portion as well. 2021-03-25 08:23:51 -05:00
7389a14910 Add auto update. 2021-03-25 08:14:41 -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
b6d261c29e Delete unused file. 2021-02-15 20:44:25 -06:00
4bffb398e1 Disable web password, move to port 8080. 2021-02-15 20:43:06 -06:00
19319c1407 Add email parameter, site says they have to match to get alerts. Gotta get that early payout. 2021-02-15 20:35:38 -06:00
83c38d8096 Note to self. 2021-02-15 20:11:46 -06:00
51f50c4118 Stop CPU mining on x570, was opnly for testing. Get greedy with scheduling. 2021-02-15 20:07:55 -06:00
aff17f56ef Ensure user owns all assets including logs accidentally created when runing by root. 2021-02-15 20:02:18 -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
3ce0b947b2 Add script too, why not. 2021-02-15 19:35:06 -06:00
60a30de652 Add another call without full path just for safety. 2021-02-15 19:34:33 -06:00
3c81c1a6a8 Allow this to fail if job was not running. 2021-02-15 19:33:56 -06:00
b595b5dca3 Don't try to nohup, let cron do it naturally. 2021-02-15 19:32:11 -06:00
c00ceaec0a Add -x for debugging. 2021-02-15 19:31:28 -06:00
693e7eee5b Always recreate script file. Kill both exec and script. 2021-02-15 19:30:06 -06:00
463748a73c Ensure 2nd group of 13 comments are added. 2021-02-15 19:10:34 -06:00
eb801e8524 Make the check alive command a command. Further try to make the config file obvious to read. 2021-02-15 19:06:32 -06:00
fdd1db85e5 Move check alive to be in script, not cron. 2021-02-15 18:58:06 -06:00
60c8ce0af7 Attempt to spawn off the script rather than waiting for it to finish. 2021-02-15 18:48:51 -06:00
d0230d7c42 Allow ansible to kick off the script to ensure new config file gets loaded. 2021-02-15 18:46:07 -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
39161a82a9 Fix comment state. 2021-02-15 18:25:24 -06:00
c4ab2a3434 Aesthetic changes. 2021-02-15 18:23:03 -06:00