34 Commits

Author SHA1 Message Date
e39aeb20e7
Save Battery Life (#32)
* Added parameters (also made the script more of a program).

* Add additional options for unplugged devices.

* Allow disabling of cron jobs and lowering of telegraf frequency through new config options.

* Fix cron package name.

* Fix ssh service name for Ubuntu.

* Add output to the options so user knows they were switched.

* Prevent some tasks when device is mobile.

* Enhance and add to comments.

* Add function to check flatpak app disk usage.

* Add repair into flatpak commands to help clean disk space of unused apps.

* Remove "Done!" output from flatpak-usage.

* Go ahead and add function for purging Flatpak apps.

* Few more comment changes.
2022-12-03 15:28:29 -06:00
3109891a7e
Remove Share Drives (#28)
* Add another requirement for Debian to download key.

* Add setup script instead of using scm.hyperling.com.

* Fix setup permissions.

* Starting effort to remove share drives from script. Downsizing homelab.

* Remove files which are no longer useful without mounts.

* Allow initializing on alternate branches.

* Fix Lynis and NMap log locations.

* Remove deleted files from main.

* Fix nmap filename.

* Remove _name from report variables.
2022-08-23 19:22:27 -05: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
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
c59e706c17
Add initial HUGO support, FreeBSD 13 support, and script for Ansible to hit dev branch. (#4)
* Create HUGO file.

* Add HUGO.

* Add script for running system against development branch.

* Add newline to end of file.

* Comment unused blocks.

* Add path of site that HUGO should host.

* Newlines, comments, and HUGO path. (#2) (#3)

* Create HUGO file.

* Add HUGO.

* Add script for running system against development branch.

* Add newline to end of file.

* Comment unused blocks.

* Add path of site that HUGO should host.

* FreeBSD is complaining about certbot not having dict object stdout. This whole playbook is supposed to be skipped though, lol.

* FreeBSD 13 is still mad. Ansible 2.11.2, jinja 2.11.2 (same version number??), Python 3.8.10.

* Fix root group to be existing variable. FreeBSD uses wheel.

* Allow choosing Github branch dynamically.

* `branch` needs to be at General level. Testing if this works...

* Change other `localhost` to `everything`.

* Update FreeBSD status.

* Goodbye, Code-OSS on Linux!

* Delete a terrible file.

* Remove excess tag.

* "Fix" SSHFS for FreeBSD.

* Variablize FreeBSD's loading of fusefs.

* Variablize /etc/rc.conf. Enable FuseFS more properly.

* Add beginning ticks.

* Add missing playbook.

* Enable FreeBSD mount job.

* Rearrange items to be more consistent with comment.

* It seems  FreeBSD removed the `gnome3` metapackage. Use `gnome3-lite` instead. Also add Telegram.

* Python is to 3.8 now.

* Expand on FreeBSD work.

* Expand on FreeBSD work.

* Add placeholders for Gitlab.

* Add parameter for Gitlab install.

* Add Gitlab playbook.

* Ensure FreeBSD uses the correct Python install.

* Add newline.

* Fix NFS for FreeBSD workstations.

* Remove unnecessary line, restricted install to Linux in playbook.

* Fix mount options for FreeBSD.

* Fix mount number, as well as system-specific facts.

* Add placeholders for remote viewing.

* Add RDP for FreeBSD.

* Omg! It works! Add setting enforcement.

* Always remove OSS.

* Remove hosts from explicit dev testing.
2021-07-19 07:07:03 -05:00
a62336f139
Release HUGO and scm-dev.sh additions. (#1)
* Create HUGO file.

* Add HUGO.

* Add script for running system against development branch.
2021-07-13 06:47:31 -05:00
e492c62bc7 Remove TODO. 2021-02-20 13:05:38 -06:00
3681a952c5 Placing the file needs to be as root for non-sshfs machines. 2021-02-20 12:55:43 -06:00
a14231ac46 Only give the deets, nothing fancy. Remove unneeded sudos. 2021-02-20 12:17:08 -06:00
5e22193827 Put neofetch in heartbeat. 2021-02-20 11:28:02 -06:00
f6e06fb34c Consistency of calling scm. 2021-02-15 09:47:07 -06:00
caac162f2f Comment disabled on absent job. 2021-02-11 11:11:14 -06:00
71f59cc4ac Hide report copying on sshfs machines rather than just disabling. 2021-02-11 11:10:41 -06:00
f8fd6881c8 Fix special_time attribute. 2021-02-11 11:09:09 -06:00
cee400076e Add forced weekly job run for 24/7 systems. 2021-02-11 11:05:52 -06:00
866a2cbd25 Remove the removal. Should not be necessary. 2021-02-07 13:52:49 -06:00
41eb2077f2 Fix colliding cron job names. 2021-02-07 13:49:31 -06:00
96b8415e42 Add removal of report. Doesn't seem like modified timestamp is updating from some systems properly. 2021-02-07 13:25:39 -06:00
2e33a8a93c Fix report names and cron job. 2021-02-07 09:29:24 -06:00
20efa69af9 FIx disable again. 2021-02-07 09:04:46 -06:00
5fec8bb608 Fix typo. Fix disable scp jobs. 2021-02-07 09:01:40 -06:00
f6754f616c Fox quote. VS Code is annoying sometimes. 2021-02-07 07:28:48 -06:00
ebe579a205 Variablize ssh. Make non-sshfs report cron job a loop. 2021-02-07 07:26:54 -06:00
396f6cd711 Partition FreeBSD cron jobs. Add security update. 2021-02-06 11:02:29 -06:00
248855feda Moce cron jobs from root to ansible now that permissions are fixed. 2021-02-06 09:58:18 -06:00
6e12534299 Fix ansible sudoer permissions. 2021-02-06 09:42:47 -06:00
1a43936c6b Provide method for non-SSHFS machines to report. 2021-02-06 09:18:23 -06:00
62aefb0ffb Dangit, cancelled the ansible-pull job again. Also fix root cron being done twice. 2021-02-06 07:49:11 -06:00
fc3953ae29 Adjust report permissions. 2021-02-06 07:37:31 -06:00
4ffc25c804 Save reports and heartbeat to 1337 drive. Fix some fact names. 2021-02-06 07:16:19 -06:00
3edada0912 Fix ansible cron (again). 2021-02-03 21:32:03 -06:00
86e1881090 General FreeBSD and account improvements. 2021-02-03 21:17:48 -06:00
2951b687ae Better names. :) 2021-02-02 21:28:17 -06:00
af1eee5f03 More organization and beginning to add 1337 share. 2021-02-01 05:03:27 -06:00