From 3be846c946ff331b9fc1ba6244bfc12fea3d4b10 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 8 Dec 2023 10:35:08 -0500 Subject: [PATCH] cleanup --- .gitignore | 2 +- ansible.cfg | 25 --------------- files/lxcmon.pl | 19 ----------- files/lxcmon2.pl | 20 ------------ files/root.bashrc | 82 ----------------------------------------------- inventory/hosts | 0 6 files changed, 1 insertion(+), 147 deletions(-) delete mode 100644 ansible.cfg delete mode 100755 files/lxcmon.pl delete mode 100755 files/lxcmon2.pl delete mode 100644 files/root.bashrc delete mode 100644 inventory/hosts diff --git a/.gitignore b/.gitignore index 50831f6..17494aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -inventory/hosts +inventory/* host_vars ansible.cfg collections/ansible_collections/ diff --git a/ansible.cfg b/ansible.cfg deleted file mode 100644 index 587e102..0000000 --- a/ansible.cfg +++ /dev/null @@ -1,25 +0,0 @@ -[defaults] -inventory = inventory/hosts -roles_path = roles -collections_path = collections -remote_tmp = /tmp/.ansible-${USER}/tmp -gathering = smart -gather_timeout = 600 -fact_caching = jsonfile -fact_caching_connection = /tmp/.ansible_facts -fact_caching_timeout = 300 -retry_files_enabled = False -forks = 40 -timeout = 30 -host_key_checking = False -display_skipped_hosts = False -bin_ansible_callbacks = True -callback_whitelist = ansible.posix.profile_tasks, ansible.posix.timer -deprecation_warnings = False -command_warnings = False - - -[ssh_connection] -pipelining = True -ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey - diff --git a/files/lxcmon.pl b/files/lxcmon.pl deleted file mode 100755 index 4915991..0000000 --- a/files/lxcmon.pl +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/perl - -use strict; - -# > ls /var/lib/lxc -# cnode1/ cnode2/ cnode3/ cnode4/ cnode5/ - -my @nodes = `ls /var/lib/lxc`; - -for (@nodes) -{ - chomp $_; - - my $mac = `grep hwaddr /var/lib/lxc/$_/config|grep -v '#'`; - $mac =~ s/.*?=\s+(.*?)/$1/; - - print `lxc-info -n $_`; - print "MAC Addr:\t$mac\n"; -} diff --git a/files/lxcmon2.pl b/files/lxcmon2.pl deleted file mode 100755 index 349918e..0000000 --- a/files/lxcmon2.pl +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/perl - -use strict; - -# > ls /var/lib/lxc -# cnode1/ cnode2/ cnode3/ cnode4/ cnode5/ - -my @nodes = `ls /var/lib/lxc`; - -for (@nodes) -{ - chomp $_; - - my $mac = `grep hwaddr /var/lib/lxc/$_/config|grep -v '#'`; - $mac =~ s/.*?=\s+(.*?)/$1/; - - print "Name:\t\t$_\n"; - print `lxc-info -n $_ -is`; - print "MAC Addr:\t$mac\n"; -} diff --git a/files/root.bashrc b/files/root.bashrc deleted file mode 100644 index 66f2382..0000000 --- a/files/root.bashrc +++ /dev/null @@ -1,82 +0,0 @@ -# /etc/skel/.bashrc: -# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.7 2002/11/18 19:39:22 azarah Exp $ - -# This file is sourced by all *interactive* bash shells on startup. This -# file *should generate no output* or it will break the scp and rcp commands. - -######## TTY Colours ####### - -export LESS_TERMCAP_mb=$'\E[01;31m' -export LESS_TERMCAP_md=$'\E[01;31m' -export LESS_TERMCAP_me=$'\E[0m' -export LESS_TERMCAP_se=$'\E[0m' -export LESS_TERMCAP_so=$'\E[01;44;33m' -export LESS_TERMCAP_ue=$'\E[0m' -export LESS_TERMCAP_us=$'\E[01;32m' - -### linux console colors (jwr dark) ### - -if [ "$TERM" = "linux" ]; then - echo -en "\e]P0000000" #black - echo -en "\e]P83d3d3d" #darkgrey - echo -en "\e]P18c4665" #darkred - echo -en "\e]P9bf4d80" #red - echo -en "\e]P2287373" #darkgreen - echo -en "\e]PA53a6a6" #green - echo -en "\e]P3914e89" #brown - echo -en "\e]PBbf85cc" #yellow - echo -en "\e]P4395573" #darkblue - echo -en "\e]PC477ab3" #blue - echo -en "\e]P55e468c" #darkmagenta - echo -en "\e]PD7e62b3" #magenta - echo -en "\e]P631658c" #darkcyan - echo -en "\e]PE6096bf" #cyan - echo -en "\e]P7899ca1" #lightgrey - echo -en "\e]PFc0c0c0" #white - clear # bring us back to default input colours -fi - - -# colors for ls, etc. -alias bc="bc -q" -alias d="ls --color" -alias ls="ls -F --color=auto" -alias ll="ls --color -al" -alias cls="clear" -alias kansai="ssh kansai" -alias amaterasu="ssh amaterasu" -alias tokyo="ssh tokyo" -alias tm="clear;tail -f /var/log/messages" -alias tz="clear;tail -f /virtual/thezengarden.net/logs/access_log" -alias nslookup="nslookup -sil" -#alias do="sudo" -alias watch="watch -t -n 2" -#alias up="watch -t -n 10 uptime" -alias loads="/home/chris/scripts/monitor/loadwatch.sh" -alias wwwrestart='/home/chris/scripts/www/restart_webnodes.sh' - -alias block="/home/chris/scripts/ipblock.sh" - -alias update="/home/chris/scripts/update_system.sh" - -alias localtime=\ -'perl -e '\''print scalar localtime(shift||time),"\n"'\''' - -alias bigfiles="find . -maxdepth 15 -type f -exec du -ckx {} \; | grep -v total | sort -rn > /home/chris/files.lst" -alias top10="du -a . | sort -nr | head -n 10" - - -export PS1='\h: \[\033[1;31m\]\w\[\033[0m\]\[\033[0m\]> ' - -export EDITOR=vim - -# find partition name for a given filename -findpart() { [ -e "$1" ] && df -P "$1" | awk '/^\/dev/ {print $1}' || echo "$1 not found"; } - -export XDG_CONFIG_HOME="/home/chris/.config" -export TERM="xterm-256color" - - -#alias lxcmon='watch -t -n .3 "grep hwaddr /var/lib/lxc/*/config|grep -v '\''#'\'';echo && echo "running containers:" && lxc-ls --active"' -alias lxcmon='watch -t -n .3 /root/lxcmon.pl' -alias lxcmon2='watch -t -n .3 /root/lxcmon2.pl' diff --git a/inventory/hosts b/inventory/hosts deleted file mode 100644 index e69de29..0000000