126 Commits

Author SHA1 Message Date
791dc245a6
General Improvements + Miner Deprecation (#23)
* Add volume key controls.

* Add placeholder for LBRY app.

* Refactor gui into gnome and packages. Remove deprecated lineinfiles. Enhance package management.

* Variablize tar to fix FreeBSD.

* Variablize tar to fix FreeBSD.

* Take FreeBSD gui.yml refactor into account.

* Unfinished changes to use self-signed cert so local traffic can hit https. Server starts fine, but getting "gnutls_handshake() failed: An unexpected TLS packet was received." on client's `git clone`.

* Make D2D optional. FreeBSD is still having a hard time compiling it.

* Use a block for Dash To Dock so only one ignore_errors is necessary.

* Deprecate miner section since machines have been decommissioned.

* Remove deprecated file.

* Switch to lightdm on FreeBSD.

* Automate GPU driver installation.

* Updated DWM config and added TODO's.

* Move lynis to src folder for cleanliness.

* Remove debug.

* Refactor for "shared" system type folder.

* Fix FreeBSD gpu.yml location.

* Add a default hosts file to hide warnings.
2022-01-10 13:41:54 +00:00
451e76559d
Add Git Server To Keep ansible-pull Traffic Local (#21)
* Fedora Minimal does not come with tar. Need installed for Telegraf.

* First attempt at automating HTTP git server setup.

* Add cron jobs to keep projects up to date.

* Add new git playbook to server.

* Add new server variables for git. Put all variables in a dictionary.

* Put variables into run file.

* Fix the loop variables to be dictionaries, not jinja.

* Upgrade nanominer.

* Attempt to fix templating error.

* Attempt to fix templating error, but in the right spot this time. :)

* Attempt another fix for building list of dictionaries.

* Change strings to dicts.

* Add quotes for jinja variables.

* Remove extra curly brackets.

* Fix the rest of the file's dictionaries now that General works.

* Remove testing code.

* Variablize ansible repo. Begin watching personal repos rather than pinging GitHub.

* Fix variables to append, not replace.

* Fix variable names.

* Try to prevent variables from being strings, without getting formatting error.

* Try to fix variables, again.

* Fixed git.yml. Found a way to test locally and all is working now.
2021-12-24 14:55:21 -06:00
98f24fbbef
General Fixes (#20)
* Remove redundant calls to facts.

* Must have accidentally removed miner/system thinking it was general/system.

* Add missing variable xmr_stak_cpu.

* Ignore when connection to GitHub fails.

* Telegraf agents have been hoarding resources on Debian servers. Reset job will killall should work properly now.

* Once the function sets accept, it is staying for the session. Need to unset in case `update -y` is run, cancelled, and then `update` is run.
2021-12-17 17:34:21 -06:00
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
b3b2874ad3
Software Updates, FreeBSD Sendmail, GitLab Fixes (#18)
* Assign test to dev branch.

* Update telegraf Linux binary.

* First attempt at making sure sendmail is on FreeBSD systems.

* Change gitlab_url to be specified in host file.

* Upgrade nanominer.

* Fix FINISH file being populated without START on non-containers.

* Prevent installer from trying to set up certificate.

* Fix name spacing.

* Fix gitlab_url variable.

* Change names to show both parameter name and value.

* Fix gitlab_url values to contain the protocol.

* Fix gitlab_url example.
2021-11-21 22:28:11 +00:00
1f5fdb7eb5
General Release (#17)
* Add a few aliases for initializing projects.

* Begin creating executables in bin for flatpaks. Create an array to reduce future changes.

* Add quotes.

* Create files as user and set executable permissions.

* Split exec dir from array section.

* Increase interval for Telegraf but keep the flush at 30s.

* Add alias goodbye/bye, modify alias names for initializing program and video projects.

* Add newline.

* Add content to file to remove warning.

* Use arrays for Flatpak sections. Create executable files for them.

* Move sudoer files into shared folder.

* First stab at automating a GitLab install.

* First stab at automating DWM install.

* Fix 'usr' typo.

* Lowercase dwm.

* Fix config play. Install font-awesome.

* Add placeholder.

* Add dmenu and st.

* Fix typo. Hopefully also fixes ~/bin executables.

* Add Signal. Remove Discord.

* Remove extra line.

* Add newline.

* Move dbus-launch to correct app.

* Fix clock minutes.

* Add server for GitLab.

* Change check, package was not registering anything.

* Change success to failed.

* Change to http. Will use reverse proxy.

* Remove useless sudo. Go ahead and allow postfix to be installed.

* Fix debug option "var".

* Only give the out lines. Remove exit, doesn't stop the job.

* Add a few games and test them on dell-laptop.

* Ignore Lutris errors, Rolling Rhino doesn't like the PPA. ;)

* Add goodbye for updating then quitting.

* Add airbook to gaming.

* Add dnf.

* Fix missing underscores.

* Install cronie on Fedora.

* Beginning to add Fedora.

* Add Fedora values.

* Make font-awesome optional since it may need installed manually on some systems.

* Fix typo in ignore_errors.

* Allow DWM to fail, won't work for all workstations. Fedora doesn't have X11 headers.

* Most dists are using python3-psutil for the psutil package name. Make it the default.

* Fix firefox_esr variable.

* More Fedora support.

* Move installation of cron to more applicable task list.

* Fic nfs-utils typo.

* The font is honestly pretty important. ;)

* Add Librewolf for testing vs Brave.

* For some reason the other link didn't work for Fedora, add the one from flatpak's instructions.

* Fedora status update.

* Add games to Inspiron.

* LibreWolf is amazing. Use it as default if available.

* Use English rather than code for `and` and `or`.

* Always have LibreWolf pinned if it's available. Brave should still be the main browser for URL-clicking compatibility.

* Fix comma.

* Add entry for testing Fedora Gitlab server.

* Attempt to automate more of the Gitlab setup, especially the part of being behind a reverse proxy. Also add Fedora family support.

* Specify the package managers for Gitlab.

* Add missing bracket.

* Add another missing bracket.

* Fix gitlab's when clause.

* Another fix for the gitlab when.

* Change original gitlab install to be Community Edition.

* Fix mgr typo. Create config file if it doesn't exist.

* Remove duplicate `when` on Lutris uninstall.

* Gitlab script gets a packagecloud.io error for Fedora. Looks like only CentOS and its derivatives are supported.

* Update status of Fedora.
2021-11-07 12:40:31 -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
37c5b122f8
Add commands and scripts to user. (#7)
* If we're gonig to exit then we should be more sure about our messaging.

* Only have GIMP installed from Flatpak.

* Playbook is causing Ubuntu 20.04 to fail.

* Define gnome_install.failed since some Ansible versions are picky.

* Try again for mad non-Parrot versions of Ansible.

* Add debug.

* Still trying to make Ubuntu 20.04's Ansible happy.

* Fix typos.

* Ubuntu does not need to install Dash To Dock. Also ensure `make` is installed on other distros so that the project is compiled.

* Remove debug.

* Add remount and upgrade commands to RC files.

* Copy root scripts to also be for user.

* Call the new user script.

* Add new commands to rc_common so they're added to the rc files.

* Remove update file on Parrot OS.
2021-08-14 10:03:55 -05:00
b869e7078d Software tasks need to run before config tasks. Brave was missing from Favorites. 2021-07-19 10:28:33 -05:00
618c7ff267 Add calls to new files. 2021-07-19 07:38:33 -05:00
058de83bf0 Update comment groups. 2021-07-19 07:30:37 -05:00
3a90368883 Add RDP for FreeBSD. 2021-07-14 07:29:12 -05:00
cefa9f73ec Add placeholders for remote viewing. 2021-07-14 07:08:27 -05:00
502f579951 Add Gitlab playbook. 2021-07-14 06:33:28 -05:00
81a41e020e Rearrange items to be more consistent with comment. 2021-07-13 21:27:20 -05:00
cf32450e18 Add missing playbook. 2021-07-13 21:16:33 -05:00
669ec5736e Change other localhost to everything. 2021-07-13 08:15:55 -05:00
e54e7b7b69 branch needs to be at General level. Testing if this works... 2021-07-13 08:13:41 -05:00
ef68b36bc1 Add HUGO. 2021-07-13 06:21:05 -05:00
e1476e88e4 Install GNOME and tell user to configure it as part of a Parrot OS setup. 2021-07-11 11:30:59 -05:00
8614717e14 Attempt to add NFS install and share drive. 2021-04-24 20:45:42 -05:00
c71eb79a91 Add certbot installation. 2021-04-10 12:18:09 -05:00
8e30106c63 Add playbook for Brave to main. 2021-04-10 11:33:19 -05:00
c5dfbd7307 Fix comment. Still unsure why cerbot task not showing up in logs. It's working though. 2021-04-07 20:50:31 -05:00
49b538b30f Avoid using pre and post task sections, they don't always log to the output if being skipped. 2021-04-07 20:46:41 -05:00
81f11b72de Add components to help keep certs up to date. 2021-04-07 20:32:12 -05:00
a42143299f Install certain deb files for applicable systems. 2021-04-03 09:18:59 -05:00
f926621db3 Unleash the beast! Telegraf for all! 2021-03-20 13:44:03 -05:00
7eefa9aab2 Try hardcoding the test dummies. 2021-03-20 12:34:36 -05:00
ec4cae4e2e Debug group doesn't get localhost facts, not a good test. 2021-03-20 12:33:16 -05:00
e434710a23 Create debug group. 2021-03-20 12:29:46 -05:00
9250767d10 First attempt at domain-wide Telegraf logging. (debug-only) 2021-03-20 12:05:18 -05:00
366c4635d6 Split Influx 1 and 2 setup. 1 works with grafana very easily. 2 must not be implemented well yet. 2021-03-20 05:03:19 -05:00
132a1393a5 Add names. Only use tasks: once. 2021-03-16 19:54:22 -05:00
05b1f91d92 Add InfluxDB and Telegraf for apt. 2021-03-16 19:44:55 -05:00
40a101c4c3 Add check if server is meant for grafana. 2021-03-14 19:39:18 -05:00
6e48c25e9c Add script for installing OnlyOffice. 2021-02-19 08:00:20 -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
6547edc89d Call mining fact gatherer. 2021-02-15 18:42:52 -06:00
9389e240ec Rename file. 2021-02-15 16:12:20 -06:00
23dfbf346e Add system facts. 2021-02-15 15:26:19 -06:00
7e9a363298 Try loading wallet addresses to variables. 2021-02-15 15:19:11 -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
67c2a54256 Add surrounding quotes. 2021-02-15 13:59:39 -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
45884ffd5c Begin variablizing miner tasks. 2021-02-15 10:23:23 -06:00
efbb66a426 Starting changes for how x570 is actually mining. 2021-02-14 07:12:05 -06:00
285f77073b Only use ethminer for devices that want to gpu mine. 2021-02-13 05:55:47 -06:00
f22b8c2d55 Allow ethminer to be compiled without amdgpu-pro. 2021-02-13 05:54:59 -06:00
47fce3f827 Fix FreeBSD cron location. 2021-02-12 07:55:56 -06:00