44 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
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
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
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
aff17f56ef Ensure user owns all assets including logs accidentally created when runing by root. 2021-02-15 20:02:18 -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
39161a82a9 Fix comment state. 2021-02-15 18:25:24 -06:00
c4ab2a3434 Aesthetic changes. 2021-02-15 18:23:03 -06:00
e7e76fb892 Ensure correct user owns tarball. 2021-02-15 18:11:48 -06:00
fc974a1b7a Fix permissions and ensure correct config is used. 2021-02-15 18:10:21 -06:00
5f4bead14a Ignore if file is not already created. 2021-02-15 18:03:09 -06:00
cc25dda677 Begin ensuring everything in mfn directory is owned by mfn. 2021-02-15 18:00:12 -06:00
3a1bb2ea1d Fix pool debug. Do most nanominer tasks as mfn. 2021-02-15 17:55:23 -06:00
ba9745fcd0 First commit for creating nanomine config file. 2021-02-15 17:48:04 -06:00
4287c89924 Change name. 2021-02-15 16:06:48 -06:00
73bedd015a Fix variable names. 2021-02-15 14:37:13 -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
a6afe34294 Fix Code being dumb. 2021-02-15 10:24:26 -06:00
45884ffd5c Begin variablizing miner tasks. 2021-02-15 10:23:23 -06:00
3ed9b83d44 Reorganize and simplify users. Move Downloads folder creation from miner plays. 2021-02-15 10:11:46 -06:00
efbb66a426 Starting changes for how x570 is actually mining. 2021-02-14 07:12:05 -06:00