cleanup
This commit is contained in:
parent
ba96e7bedb
commit
3be846c946
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
inventory/hosts
|
||||
inventory/*
|
||||
host_vars
|
||||
ansible.cfg
|
||||
collections/ansible_collections/
|
||||
|
25
ansible.cfg
25
ansible.cfg
@ -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
|
||||
|
@ -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";
|
||||
}
|
@ -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";
|
||||
}
|
@ -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'
|
Loading…
x
Reference in New Issue
Block a user