Compare commits
82 commits
Author | SHA1 | Date | |
---|---|---|---|
|
8caaaeb64d | ||
7199065104 | |||
|
f674728a18 | ||
|
f81b8e2e75 | ||
eb08fd416a | |||
|
48073cefe5 | ||
|
f4ad44cd41 | ||
|
159c53b30b | ||
6c43235055 | |||
|
6ae0c4f011 | ||
|
ed7feaaeac | ||
|
75abc6a578 | ||
|
40e811b380 | ||
|
ec4c75bd09 | ||
|
502b9f8371 | ||
|
ddc5720e99 | ||
|
f86b55fb6e | ||
221f5a74de | |||
28ea93b9e5 | |||
|
ff92e20a89 | ||
|
e9a3bf7d8c | ||
|
78109b3894 | ||
|
0d28946e06 | ||
|
bc348474c6 | ||
|
29f582d69b | ||
|
4a0c429e8c | ||
|
4f313aabdd | ||
|
bfbad53a78 | ||
|
6448a29583 | ||
|
5035ca1ce7 | ||
|
876978372f | ||
|
13d003feb7 | ||
|
5b1f167ac1 | ||
|
e21218ac71 | ||
|
76ffebf8d1 | ||
|
a846497dc5 | ||
|
6df0b65245 | ||
|
8422b853ca | ||
|
2a88f8125d | ||
|
7b009da12d | ||
|
f824a762d8 | ||
|
c49df0de54 | ||
|
05ceeff64b | ||
|
fdb8b29950 | ||
|
bd51372260 | ||
|
5d4a090e10 | ||
|
14e00c2b27 | ||
|
e141625ece | ||
|
85ea172c3d | ||
|
b2b861f93e | ||
|
8e35d9a168 | ||
|
d1dd9e8407 | ||
|
6e735b20a6 | ||
|
a5717bfdfc | ||
|
c3c3969603 | ||
|
af26590443 | ||
|
c688be4b07 | ||
2ae6eaa36a | |||
|
15e4bc7e5d | ||
2ab19ee552 | |||
|
90da03c7f6 | ||
|
28667107fc | ||
a2d31375b3 | |||
c2e016919a | |||
932d0b96f0 | |||
a652f429a7 | |||
f80ec87f74 | |||
3918f11a1d | |||
360133560e | |||
e784de468e | |||
3c8f4ef49a | |||
|
41772cbe43 | ||
dfef05156c | |||
|
5de530903e | ||
|
3041fad73c | ||
|
250ca13c21 | ||
77fe5035d7 | |||
79eb324c0a | |||
161e9ef070 | |||
c752c29b66 | |||
774767dab1 | |||
cf7f774e7f |
16 changed files with 372 additions and 60 deletions
|
@ -26,7 +26,7 @@ alias glast="git log -1 HEAD --stat"
|
|||
alias gd="git difftool"
|
||||
alias gsp="git stage -p"
|
||||
alias gflog="git log -- "
|
||||
alias gb="git branch"
|
||||
alias gb="git --no-pager branch -l"
|
||||
# docker
|
||||
alias dcu="docker compose up"
|
||||
alias dlogs="docker compose logs -f"
|
||||
|
|
35
.bash_extra
35
.bash_extra
|
@ -4,27 +4,35 @@
|
|||
unalias ll 2>/dev/null
|
||||
|
||||
# source extra files
|
||||
source "${HOME}/dotfiles/.bash_aliases"
|
||||
source "${HOME}/dotfiles/.bash_functions"
|
||||
source "${HOME}/dotfiles/.bash_ps1"
|
||||
source "${HOME}/repos/dotfiles/.bash_aliases"
|
||||
source "${HOME}/repos/dotfiles/.bash_functions"
|
||||
source "${HOME}/repos/dotfiles/.bash_ps1"
|
||||
|
||||
### PATH
|
||||
# add my scripts to PATH
|
||||
PATH=$PATH:"${HOME}/dotfiles/scripts"
|
||||
PATH=$PATH:"${HOME}/repos/dotfiles/scripts"
|
||||
|
||||
### tmux auto attach
|
||||
# Check if the user ID is not 0 (root)
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
# then auto attach
|
||||
## check interactive shell https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch
|
||||
if [[ $- == *i* ]] ; then
|
||||
### root alias
|
||||
alias root='sudo -H -u root /usr/bin/sudo2uls'
|
||||
if [ "$HOSTNAME" = lzeorpt001 ]; then
|
||||
### git-bash
|
||||
source /usr/share/git-core/contrib/completion/git-prompt.sh
|
||||
### keychain
|
||||
export GPG_TTY=$(tty)
|
||||
# git commit usw.
|
||||
export EDITOR="/usr/bin/vim"
|
||||
fi
|
||||
### tmux auto attach
|
||||
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
|
||||
tmux attach -t default || tmux new -s default
|
||||
fi
|
||||
if [ "$HOSTNAME" == "lzeorpt001" ] || [ "$HOSTNAME" == "lbdlspa001" ]; then
|
||||
eval $(keychain -q --eval --timeout 60 --agents ssh,gpg)
|
||||
fi
|
||||
fi
|
||||
|
||||
### keychain
|
||||
eval "$(keychain -q --eval --timeout 60 --agents ssh,gpg)"
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
### Praktische Dinge
|
||||
# Deaktiviere FlowControl
|
||||
# https://unix.stackexchange.com/questions/332791/how-to-permanently-disable-ctrl-s-in-terminal
|
||||
|
@ -51,5 +59,4 @@ export HISTCONTROL=ignoreboth:erasedups
|
|||
# typo bei cd entfernen
|
||||
shopt -s cdspell
|
||||
|
||||
# less mit maus scrollen
|
||||
export LESS='--mouse --wheel-lines=3 eFRX'
|
||||
export LESS='eFRX'
|
||||
|
|
|
@ -10,7 +10,3 @@ function ssh {
|
|||
tmux rename-window "$(hostname -f)"
|
||||
fi
|
||||
}
|
||||
|
||||
function gp {
|
||||
git pull "$@"
|
||||
}
|
||||
|
|
8
.bash_profile
Normal file
8
.bash_profile
Normal file
|
@ -0,0 +1,8 @@
|
|||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
|
@ -8,7 +8,6 @@ BLACK='\[\e[30m\]'
|
|||
RESET='\[\e[0m\]'
|
||||
ORANGE='\[\e[0;33m\]'
|
||||
# git-symbole: * unstaged, + staged, $ stashed, % untracked
|
||||
source /usr/lib/git-core/git-sh-prompt
|
||||
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
export GIT_PS1_SHOWSTASHSTATE=1
|
||||
|
|
1
.bashrc
Normal file
1
.bashrc
Normal file
|
@ -0,0 +1 @@
|
|||
source ~/repos/dotfiles/.bash_extra
|
|
@ -1,6 +1,7 @@
|
|||
[user]
|
||||
name = Michael Grote
|
||||
email = michael.grote@posteo.de
|
||||
email = michael.grote@dataport.de
|
||||
signingkey = 61CCE602D9EC9A33
|
||||
[credential]
|
||||
helper = store
|
||||
[alias]
|
||||
|
|
62
.ssh/config
62
.ssh/config
|
@ -1,47 +1,33 @@
|
|||
### ssh-agent
|
||||
StrictHostKeyChecking no
|
||||
IgnoreUnknown UseKeychain
|
||||
UseKeychain yes
|
||||
AddKeysToAgent yes
|
||||
LogLevel ERROR
|
||||
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL
|
||||
|
||||
### keys
|
||||
StrictHostKeyChecking=accept-new
|
||||
# https://stackoverflow.com/questions/21383806/how-can-i-force-ssh-to-accept-a-new-host-fingerprint-from-the-command-line
|
||||
Host l*.mgmt.dpaor.org l*.landsh.de l*.stadt.hamburg.de l*.hb-netz.de l*.lsa-net.de 10.62.*
|
||||
User grotemi-admin@mgmt.dpaor.org
|
||||
|
||||
### mgrote.net
|
||||
Host fileserver3.mgrote.net
|
||||
Host docker10.mgrote.net
|
||||
Host pve5.mgrote.net
|
||||
Host forgejo.mgrote.net
|
||||
Host ldap.mgrote.net
|
||||
Host pve5-test.mgrote.net
|
||||
Host vm-test-2404.mgrote.net
|
||||
Host pbs-test.mgrote.net
|
||||
Host pbs.mgrote.net
|
||||
Host munin.mgrote.net
|
||||
Host blocky.mgrote.net
|
||||
Host *.mgrote.net
|
||||
IdentityFile ~/.ssh/mgrote.net
|
||||
Host *.dpaor.net *.dpaorinp.de 10.61.* 10.65.*
|
||||
User grotemi-admin@dpaor.net
|
||||
|
||||
### Ubiquity
|
||||
Host nanohd-wohnzimmer.mgrote.net
|
||||
User ubi_ssh_admin
|
||||
HostKeyAlgorithms=+ssh-dss
|
||||
Host git.dataport.de
|
||||
HostName git.dataport.de
|
||||
User git
|
||||
PreferredAuthentications publickey
|
||||
Port 2200
|
||||
IdentityFile ~/.ssh/zcdi-gitlab
|
||||
|
||||
### Mikrotik
|
||||
Host rb5009.mgrote.net crs305.mgrote.net hex.mgrote.net
|
||||
User admin
|
||||
IdentityFile ~/.ssh/mikrotik_ed25519
|
||||
Host gitlab.dataport.de
|
||||
Hostname gitlab.dataport.de
|
||||
User git
|
||||
PreferredAuthentications publickey
|
||||
IdentityFile ~/.ssh/adminptf-gitlab
|
||||
AddKeysToAgent yes
|
||||
|
||||
### papa.lan
|
||||
Host qnap-nas
|
||||
HostName 192.168.3.108
|
||||
User extraadmin
|
||||
IdentityFile ~/.ssh/qnap_papa
|
||||
Host gitlab.cicd.apps.okd001.mcmp-stage.dsc.dataport.de
|
||||
User git
|
||||
PreferredAuthentications publickey
|
||||
IdentityFile ~/.ssh/rz40_gitlab
|
||||
AddKeysToAgent yes
|
||||
|
||||
### ssh-key für git clone
|
||||
Host git.mgrote.net
|
||||
IdentityFile ~/.ssh/git.mgrote.net
|
||||
|
||||
Host github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/github.com
|
||||
|
|
6
.vimrc
6
.vimrc
|
@ -255,7 +255,11 @@ endif
|
|||
augroup spell
|
||||
autocmd!
|
||||
autocmd FileType * highlight SpellBad cterm=underline ctermfg=red ctermbg=NONE
|
||||
autocmd FileType * set spellfile=~/dotfiles/vim/spell/own.add
|
||||
if $HOSTNAME == "lbdlspa001"
|
||||
autocmd FileType * set spellfile=~/repos/dotfiles/vim/spell/own.add
|
||||
elseif $HOSTNAME == "lzeorpt001"
|
||||
autocmd FileType * set spellfile=/homes/MGMT/grotemi-admin/repos/dotfiles/vim/spell/own.add
|
||||
endif
|
||||
autocmd FileType * set spellsuggest=fast,10
|
||||
autocmd FileType * set spell spelllang=de_de,en
|
||||
augroup END
|
||||
|
|
9
scripts/git_pull
Executable file
9
scripts/git_pull
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
if [ -n "${TMUX}" ]; then
|
||||
remotename=$(git remote -v | cut -f2 -d"@" | cut -f1 -d":" | head -n1)
|
||||
tmux rename-window "SSH: $remotename"
|
||||
fi
|
||||
git pull
|
||||
if [ -n "${TMUX}" ]; then
|
||||
tmux rename-window "$(basename $(pwd))"
|
||||
fi
|
1
scripts/gp
Symbolic link
1
scripts/gp
Symbolic link
|
@ -0,0 +1 @@
|
|||
git_pull
|
BIN
scripts/kubeseal
Executable file
BIN
scripts/kubeseal
Executable file
Binary file not shown.
BIN
scripts/oc
Executable file
BIN
scripts/oc
Executable file
Binary file not shown.
4
scripts/sync_dotfiles_dp.sh
Executable file
4
scripts/sync_dotfiles_dp.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
if [ "$HOSTNAME" = lbdlspa001 ]; then
|
||||
rsync -av --delete -e ssh /home/.autofs/lunixpf001/home-linux/grotemi-admin/repos/ lzeorpt001.mgmt.dpaor.org:/homes/MGMT/grotemi-admin/repos
|
||||
fi
|
|
@ -1,2 +1,298 @@
|
|||
dotfiles
|
||||
Ansible
|
||||
LVM
|
||||
PV
|
||||
LV
|
||||
YAML
|
||||
Orchestrierungs
|
||||
Konfigmanagementools
|
||||
Patchmanagement
|
||||
TDC
|
||||
Konfigmanagment
|
||||
Ausbildungscloud
|
||||
TOML
|
||||
yaml
|
||||
lvm
|
||||
ansible
|
||||
Shellcheck
|
||||
committen
|
||||
gitlab
|
||||
dataport
|
||||
linux
|
||||
Gruppenkeepass
|
||||
ARTIFACTORY
|
||||
Tokenname
|
||||
Paketrepository
|
||||
Installierbarkeit
|
||||
Skripte
|
||||
Artifactory
|
||||
Paketrepo
|
||||
config
|
||||
forken
|
||||
PRs
|
||||
ci
|
||||
Baseimage
|
||||
buildcontainer
|
||||
yml
|
||||
Hauptbranch
|
||||
shellcheck
|
||||
gitleaks
|
||||
StackOverflow
|
||||
yamllint
|
||||
gepushed
|
||||
tl
|
||||
dr
|
||||
Monorepository
|
||||
Grote
|
||||
Paketrepos
|
||||
comitted
|
||||
gemerged
|
||||
Mitgeltende
|
||||
Protokollierungskonzeptes
|
||||
fachbereichsbezogenen
|
||||
BHB
|
||||
BD
|
||||
Basisinfrastrukturdienst
|
||||
Multiverfahrensdienst
|
||||
MVD
|
||||
RZ
|
||||
Protokollierungskonzept
|
||||
Mandantenkonzept
|
||||
TST
|
||||
LDN
|
||||
zzeor
|
||||
d001
|
||||
PSQL
|
||||
TZ4
|
||||
RHEL9
|
||||
QS
|
||||
awx
|
||||
keycloak
|
||||
RDP
|
||||
Kubernetes
|
||||
Webhook
|
||||
FluxCD
|
||||
Quellrepository
|
||||
OCI
|
||||
Containerregistry
|
||||
SHA256
|
||||
Checksummen
|
||||
SSO
|
||||
ZEOR
|
||||
Loadbalancer
|
||||
Fileservice
|
||||
artifactory
|
||||
CMDB
|
||||
OCP
|
||||
Releasemanagementkonzept
|
||||
Patchmanagementkonzept
|
||||
lzeor
|
||||
Patchfenster
|
||||
zLinux
|
||||
Postgres
|
||||
gepatcht
|
||||
Notfallvorsorgemanagement
|
||||
Multiverfahrensdienste
|
||||
OpenShift
|
||||
RedHat
|
||||
NTP
|
||||
PTR
|
||||
FQDN
|
||||
Infoblox
|
||||
WinRM
|
||||
ALG
|
||||
ESXi
|
||||
ServiceCMBD
|
||||
MGMT
|
||||
SLA
|
||||
BSI
|
||||
Notfallhandbücher
|
||||
checkMK
|
||||
S3
|
||||
etcd
|
||||
zcdi
|
||||
CONFIGFILE
|
||||
shyaml
|
||||
xargs
|
||||
amd64
|
||||
fi
|
||||
podman
|
||||
Herstellerrepositories
|
||||
Multiline
|
||||
debian12
|
||||
ubuntu20
|
||||
ubuntu22
|
||||
rhel7
|
||||
rhel8
|
||||
rhel9
|
||||
sles12
|
||||
sles15
|
||||
dists
|
||||
Configdatei
|
||||
baseimages
|
||||
microdnf
|
||||
ubi7
|
||||
ubi8
|
||||
ubi9
|
||||
dnf
|
||||
txt
|
||||
tmp
|
||||
mv
|
||||
fpm
|
||||
SHA
|
||||
env
|
||||
EOF
|
||||
dpkg
|
||||
usr
|
||||
opensuse
|
||||
zypper
|
||||
test
|
||||
RHEL
|
||||
SLES
|
||||
reddit
|
||||
localhost
|
||||
hostname
|
||||
Tanium
|
||||
shawn
|
||||
huebner
|
||||
hostvars
|
||||
tanium
|
||||
Hospitationsanfragen
|
||||
Timeboxing
|
||||
Ditmar
|
||||
FVM
|
||||
JIRA
|
||||
TQ
|
||||
grundschutzkonform
|
||||
dSecurecloud
|
||||
Präsenzrunde
|
||||
Postinstall
|
||||
Releasekonzept
|
||||
Ressourcelimits
|
||||
OOM
|
||||
KIMs
|
||||
zzeorqd001
|
||||
zzeorpd001
|
||||
AAP
|
||||
TODO
|
||||
ServiceCMDB
|
||||
Fur/!
|
||||
EE
|
||||
ee
|
||||
zeor
|
||||
Patchlaufs
|
||||
Paketrepositories
|
||||
md
|
||||
Replikationsdatenbank
|
||||
vorgefiltert
|
||||
#in
|
||||
ein/!
|
||||
ein
|
||||
Shortnames
|
||||
Datacenter
|
||||
apiVersion
|
||||
nfs
|
||||
subdir
|
||||
argocd
|
||||
argoproj
|
||||
enableAutoSync
|
||||
#eyCloak
|
||||
ArgoCD
|
||||
KeyCloak/!
|
||||
FFMPEG
|
||||
grotemi
|
||||
lbdlspa001
|
||||
mgmt
|
||||
dpaor
|
||||
ctrl
|
||||
#uestion
|
||||
quote
|
||||
tmux
|
||||
Workaround/!
|
||||
Workaround
|
||||
TVM
|
||||
DCS
|
||||
TZ
|
||||
PoC
|
||||
CoreOS
|
||||
Konfigurationsmgmt
|
||||
IPv6
|
||||
HANA
|
||||
KRB
|
||||
SMB
|
||||
Hiera
|
||||
Puppetversion
|
||||
SuMa
|
||||
GSC
|
||||
sysctl
|
||||
Cloudera
|
||||
Feldhoff
|
||||
Entwicklungssharepoint
|
||||
vllt
|
||||
rsync
|
||||
chown
|
||||
chmod
|
||||
ed25519
|
||||
scp
|
||||
sudo
|
||||
systemctl
|
||||
sshd
|
||||
X11
|
||||
buildah
|
||||
zentro
|
||||
python3
|
||||
pip3
|
||||
releasever
|
||||
basearch
|
||||
fedoraepel
|
||||
EPEL
|
||||
nodejs
|
||||
baseurl
|
||||
gpgcheck
|
||||
gpgkey
|
||||
lzeorpt001
|
||||
noqa
|
||||
k8s
|
||||
mkdir
|
||||
cp
|
||||
ln
|
||||
kommandozeilentools1
|
||||
url
|
||||
github
|
||||
SLB
|
||||
hostet
|
||||
heredoc
|
||||
#uestion
|
||||
question/!
|
||||
question
|
||||
#TDOUT
|
||||
Kommandozeilentools/!
|
||||
STDOUT/!
|
||||
#ur/!
|
||||
fur/!
|
||||
eingegebende
|
||||
bashrc
|
||||
sourcen
|
||||
Sharepoint
|
||||
GitLab
|
||||
Anderungen/!
|
||||
#rstmal
|
||||
#rstmal/!
|
||||
#rstmal
|
||||
postinstall
|
||||
Systeminfrastrukturdiagramm
|
||||
Dederke
|
||||
Mezger
|
||||
SLES12
|
||||
#rstmal
|
||||
#rstmal
|
||||
erstmal/!
|
||||
erstmal
|
||||
PaaS
|
||||
CMP
|
||||
SelfService
|
||||
MarkDown
|
||||
RHEL7
|
||||
VFAT
|
||||
HW
|
||||
FHHNET
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue