Compare commits

..

2 Commits

Author SHA1 Message Date
50a13e2bcd ☁️ Add Sky Labs server inventory 2022-12-19 13:59:53 +01:00
bc0dd6487f 📥️ Various nice improvements 2022-12-19 13:59:24 +01:00
17 changed files with 95 additions and 52 deletions

View File

@ -1,4 +1,6 @@
[alpine] [alpine]
docker-alpine-test ansible_connection=docker ansible_user=root ansible_host=ansible docker-alpine-test ansible_connection=docker ansible_user=root ansible_host=ansible
;[skyid:children]
;alpine
[apk:children] [apk:children]
alpine alpine

View File

@ -12,7 +12,7 @@ pubkeys: [
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDqXa9fIVrQTGV4PMTn7ZyyeTLDVC+H4kV6zJzWBGGZf6DSoumJtbTaD6Ob3Czsf/NZ35iCPy2yrar3/Z7ccDrcfpxlNvj9l3NphEdXIebyQ8VmMWBy4pDPjE1erIEaL+J5RfjidB7xauticUIuNj0vtuvum/f09vGsohys+/llU7T+M42AeCTT5omw0DD8DPIUGxFwsgg0RxtD5ol1i3v0zVqwlbc7gnHws9/JCJZrhdHZWWkqvVQLCbRRCq4ZvRBcMdwJsBOeJpM9tkeJ7peZjAnPh7EIPkWh79+S65m6bsBe9N4lX5Qf2jxMSzgGeHhfJmd5O7UVqxH1a4M10e+CZOsWdTbMFEn+pcA04gehV9mL5gazZTMSjVFRzd/NUWi0Z6kecXW0HvxWzvKs+iZgaqL7qsDQUb23nMyvtiRO7JeTfdlo/dpb3Uz12VfwcHWAw1DpyJk3Sd1xV4sLke34F67e141ed72Piig6UuX2/aXm5Due781zIS8zBKBl4vXORbGjLLBo72RctB3xU9nJmkttdeSSF/yRbY7H3+bsvno/VUSAhnYWlGNrZBc+tTtqjYEQ3k/G8I8nwO4e1GDfo6w5G9dZQQ4YyV4v41NRp0TrtuGBpvGf9anMWUcp63f+fXMOZAnSVg42oZZUYWSPQTnoY1E5I3A6K4wrqEHt4w== siv@craptop, ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDqXa9fIVrQTGV4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WgdZgXA3aWpLQm05crOu4GEn1bGhbnIORm4mjxlANJB0QC9FliCAVkLk4OY7UGnx4mgqMyYjb2LCdgGKVVto97UAisJxWikLiM5nCNrCaGBe05d2nVxPXVKwALI3E2AeIYSmjE4N3mBgUIxWuGS6KoOZsnoSYS3+blQV0W/POuFw4NhlWgZUi8GAaGPfWj8pM/u9dH8FKxhK/PabVKtltLkn4ntgewaeNl18n1NFkQtcDD7Kkg/ZIQ9SiNchK0SxR0/Pgwo/A5GacF+nwTgxGwDJbQ0OPaVlbQd/cCaXl1AX9s7R5Xd8D35KFHTJ1IVnZohDGVQvQ== mob]
packages: [neofetch,htop,git,zsh,lsd,bat] packages: [neofetch,rsync,htop,git,zsh,lsd,bat]
package_manager: null package_manager: null
extra_packages: [] extra_packages: []
update: true update: true

View File

@ -1 +0,0 @@
update: false

View File

@ -1 +0,0 @@
update: false

View File

@ -1,4 +1,5 @@
user_groups: [sysadmins] user_groups: [sysadmins,systemd-journal]
zsh_prompt: "{{ '%F{blue}% %n%F{green}% @%F{red}% %m %F{yellow}% %1~%f >' }}"
setup: [zsh,bash,extra] setup: [zsh,bash,extra]
zsh_opt_config: false zsh_opt_config: false
extra_packages: [] extra_packages: []

View File

@ -1 +1,2 @@
user_groups: [sudo,adm,kvm,users,docker] ---
user_groups: [sudo, adm, kvm, users, docker]

View File

@ -1,2 +1,3 @@
---
zsh_opt_config: true zsh_opt_config: true
user_groups: [wheel,sudo,adm,kvm,users,docker] user_groups: [wheel, sudo, adm, kvm, users, docker]

View File

@ -1,15 +1,8 @@
---
zsh_opt_config: false zsh_opt_config: false
zsh_prompt: "{{ '%F{blue}% %n%F{green}% @%F{red}% %m %F{#bb33bb}% %1~%f >' }}" zsh_prompt: "{{ '%F{blue}% %n%F{green}% @%F{red}% %m %F{#bb33bb}% %1~%f >' }}"
pubkeys: [
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDJjfmCya6+rbVz1guQN1LBJoJ7KKAvVf+KQn48980QVYvP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ob]
packages: [neofetch,htop,git,zsh,lsd,bat]
package_manager: null package_manager: null
# extra_packages: [] # extra_packages: []
update: true update: false
setup: [zsh,extra,system] # ,bash,emacs setup: [zsh,extra,system] # ,bash,emacs
revert: false revert: false

View File

@ -1,7 +1,8 @@
# pubkeys: [ pubkeys: [
# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1O7dXSrkDZ0l2kQMDnUPcALEYrq9l+fCKANb4sKZebRr+CkvO0Yat6f/O1a4OJWKeIpOMNIG60aiQB4Npn1ACosQ5Jgw1GypEr6QWDKdWqTEQ4qQaJk2sAKbUpEHTvtwlRTZy5zxC0TrRSjXcNmPR5O4GGMPLAdWFmD9iIRA+tjGvB6U4NY8KafxzBmje95oVP8erayEZT90IgljLisg29uAofAfAhjP/KV/z1ppmwrL7Et6N2ZcOfFl+KOcefzjt0bdkV0gFXqYKEFK9WEpVXEHE7CpOu/dJZgVvTT+jfHhWhANkl66dDbv80nfHAINASCBCoUi6CFb8TBru4WABeoyKEQnC04IqHXvgOMr5/f9Sx1PHZNxkXNVuSPbkSnA7Qk4OnHG5c/rEeZ850eM8j0or29PyNFvZjWjBrIG1iReRTdSDkzdwojLuCKMrN8qxmDMuYW0Ey9DCsC2iKyYzJ+3dhilXkaUtQYHrtCM4DB4rcAWV2hRS1mRZwWmKH4QWvwVbjipKAzHg3i2hMFIC6HbNxbYHrzFCSCZN07ObLsyMYR28I74JfFxpNg0OQAZ5QVvOe+PletFjqbpVnjrGhEkBCyGIOfZ14PlJhN0CW8/9fTy6EzvruD2yGTUMq+pJhhJ3Zj5J+zaFJsz3tPxf+OVcsGFLEtbJvu6C9yCT5Q== siv@msitoo, ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1O7dXSrkDZ0l2kQMDnUPcALEYrq9l+fCKANb4sKZebRr+CkvO0Yat6f/O1a4OJWKeIpOMNIG60aiQB4Npn1ACosQ5Jgw1GypEr6QWDKdWqTEQ4qQaJk2sAKbUpEHTvtwlRTZ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F67e141ed72Piig6UuX2/aXm5Due781zIS8zBKBl4vXORbGjLLBo72RctB3xU9nJmkttdeSSF/yRbY7H3+bsvno/VUSAhnYWlGNrZBc+tTtqjYEQ3k/G8I8nwO4e1GDfo6w5G9dZQQ4YyV4v41NRp0TrtuGBpvGf9anMWUcp63f+fXMOZAnSVg42oZZUYWSPQTnoY1E5I3A6K4wrqEHt4w== siv@craptop] ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDqXa9fIVrQTGV4PMTn7ZyyeTLDVC+H4kV6zJzWBGGZf6DSoumJtbTaD6Ob3Czsf/NZ35iCPy2yrar3/Z7ccDrcfpxlNvj9l3NphEdXIebyQ8VmMWBy4pDPjE1erIEaL+J5RfjidB7xauticUIuNj0vtuvum/f09vGsohys+/llU7T+M42AeCTT5omw0DD8DPIUGxFwsgg0RxtD5ol1i3v0zVqwlbc7gnHws9/JCJZrhdHZWWkqvVQLCbRRCq4ZvRBcMdwJsBOeJpM9tkeJ7peZjAnPh7EIPkWh79+S65m6bsBe9N4lX5Qf2jxMSzgGeHhfJmd5O7UVqxH1a4M10e+CZOsWdTbMFEn+pcA04gehV9mL5gazZTMSjVFRzd/NUWi0Z6kecXW0HvxWzvKs+iZgaqL7qsDQUb23nMyvtiRO7JeTfdlo/dpb3Uz12VfwcHWAw1DpyJk3Sd1xV4sLke34F67e141ed72Piig6UuX2/aXm5Due781zIS8zBKBl4vXORbGjLLBo72RctB3xU9nJmkttdeSSF/yRbY7H3+bsvno/VUSAhnYWlGNrZBc+tTtqjYEQ3k/G8I8nwO4e1GDfo6w5G9dZQQ4YyV4v41NRp0TrtuGBpvGf9anMWUcp63f+fXMOZAnSVg42oZZUYWSPQTnoY1E5I3A6K4wrqEHt4w== siv@craptop]
# extra_packages: [openssh,emacs,doas,lsd] #extra_packages: [openssh,emacs,doas,lsd]
extra_packages: [git]
user_groups: [adm,users] user_groups: [adm,users]
setup: [bash,zsh,system,extra] # ,emacs setup: [bash,zsh,system,extra] # ,emacs
# zsh_opt_config: true # zsh_opt_config: true

View File

@ -1,3 +1,4 @@
---
- name: Install packages - name: Install packages
when: update when: update
block: block:
@ -7,7 +8,7 @@
block: block:
- name: Install the good stuff (pacman) - name: Install the good stuff (pacman)
pacman: name={{ item }} state=latest pacman: name={{ item }} state=latest
ignore_errors: yes ignore_errors: true
with_items: with_items:
- "{{ extra_packages }}" - "{{ extra_packages }}"
- "{{ packages }}" - "{{ packages }}"
@ -24,7 +25,7 @@
block: block:
- name: Install the good stuff (apk) - name: Install the good stuff (apk)
apk: name={{ item }} state=latest apk: name={{ item }} state=latest
ignore_errors: yes ignore_errors: true
with_items: with_items:
- "{{ extra_packages }}" - "{{ extra_packages }}"
- "{{ packages }}" - "{{ packages }}"
@ -41,7 +42,7 @@
block: block:
- name: Install the good stuff (apt) - name: Install the good stuff (apt)
apt: package={{ item }} state=latest apt: package={{ item }} state=latest
ignore_errors: yes ignore_errors: true
with_items: with_items:
- "{{ extra_packages }}" - "{{ extra_packages }}"
- "{{ packages }}" - "{{ packages }}"

View File

@ -1,13 +1,14 @@
#!/bin/sh #!/bin/sh
which lsd>/dev/null which lsd>/dev/null
if [ "$?" = "0" ]; then ([ $? -eq 0 ] && \
alias ls="lsd -h --color=auto --group-dirs first" alias ls="lsd -h --color=auto --group-dirs first") || \
else
alias ls="ls -h --color=auto --group-directories-first" alias ls="ls -h --color=auto --group-directories-first"
fi # if [ $? -eq 0 ]; then
# ([ "$?" = "0" ] && \ # alias ls="lsd -h --color=auto --group-dirs first"
# alias ls="lsd -h --color=auto --group-dirs first") || \ # else
# alias ls="ls -h --color=auto --group-directories-first" # alias ls="ls -h --color=auto --group-directories-first"
# fi
which doas>/dev/null && [ $? -eq 0 ] && alias doas="sudo"
alias\ alias\
ll="ls -l"\ ll="ls -l"\
la="ls -a"\ la="ls -a"\

21
roles/shell/files/bin/vault.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
[ -z "$REMOTE" ] && REMOTE=siv@archy.42069.no:/home/coder
run_rsync() {
rsync "$1" "$2" "$3"
[ $? -eq 12 ] && echo -e "\e[0;31mRsync is missing on the remote server!\e[0," && exit 0
}
pull() {
run_rsync "$1" "$3" "$2"
}
push() {
run_rsync "$1" "$2" "$3"
}
sync() {
pull "$1" "$2" "$3"
push "$1" "$2" "$3"
}
case "$1" in
mount) cryfs ~/.vault ~/vault -o allow_root ;;
push|pull|sync) $1 "-aze ssh" "$HOME/.vault" "$REMOTE" ;;
*) echo "Usage: $0 [ push | pull | sync | mount ]" ;;
esac

View File

@ -3,6 +3,8 @@
- name: Add .bat.conf - name: Add .bat.conf
copy: src=bat.conf dest={{ home }}/.bat.conf owner={{ name }} group={{ group }} mode=0644 copy: src=bat.conf dest={{ home }}/.bat.conf owner={{ name }} group={{ group }} mode=0644
when: "'bat' in packages or 'bat' in extra_packages" when: "'bat' in packages or 'bat' in extra_packages"
- name: Add ~/.local/bin
copy: src=bin dest={{ home }}/.local/bin owner={{ name }} group={{ group }} mode=0755
- name: Install zsh syntax highlighting (~/.zshrc.d folder) - name: Install zsh syntax highlighting (~/.zshrc.d folder)
when: not zsh_opt_config when: not zsh_opt_config

View File

@ -1,6 +1,6 @@
--- ---
- name: Update and upgrade package managed stuff - name: Update and upgrade package managed stuff
# when: update when: update
block: block:
# - name: Install yay (AUR helper) # - name: Install yay (AUR helper)
@ -24,9 +24,9 @@
when: "'alpine' in group_names" when: "'alpine' in group_names"
tags: update alpine tags: update alpine
- name: Update and upgrade xbps packages - name: Update, upgrade and autoremove xbps packages
become: true become: true
shell: xbps-install -Suv shell: xbps-install -Suv && xbps-remove -ROo
when: package_manager == 'xbps' or 'xbps' in group_names when: package_manager == 'xbps' or 'xbps' in group_names
tags: update tags: update
@ -35,6 +35,7 @@
apk: apk:
update_cache: true update_cache: true
upgrade: true upgrade: true
state: 'latest'
when: package_manager == 'apk' or 'apk' in group_names when: package_manager == 'apk' or 'apk' in group_names
tags: update tags: update
@ -42,6 +43,7 @@
become: true become: true
apt: apt:
update_cache: true update_cache: true
autoremove: true
upgrade: true upgrade: true
when: package_manager == 'apt' or 'apt' in group_names when: package_manager == 'apt' or 'apt' in group_names
tags: update tags: update

View File

@ -1,8 +1,7 @@
---
- hosts: all - hosts: all
roles: roles:
- role: update - {role: update, tags: update}
when: update
tags: update
- common - common
- user - user
- shell - shell

24
skyid.ini Normal file
View File

@ -0,0 +1,24 @@
[all:vars]
ansible_ssh_private_key_file=~/.ssh/skyid_rsa
ansible_become_exe=sudo
ansible_user=sivert
[skyid]
smokeping.skyid.no
myrkdalen.skyid.no
lost-islands.skyid.no
monitoring.skyid.no
gulf-of-oman.skyid.no
lofoten.skyid.no
narvik.skyid.no
hangar-22.skyid.no
propaganda.skyid.no
toten.skyid.no
hamar.skyid.no
mercury.skyid.no
bergen.skyid.no
molde.skyid.no
deploy.skyid.no
scrapmetal.skyid.no
dawnbreaker.skyid.no
backup.skyid.no

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
user="siv" user="${USER:-"root"}"
function playbook() { function playbook() {
book="${1:-"site.yml"}" book="${1:-"site.yml"}"
@ -10,22 +10,18 @@ function playbook() {
case "$1" in case "$1" in
play) play)
book="${2:-"site.yml"}" book="${2:-"site.yml"}"
# opts="" # opts=""
# [ ! -z "$3" ] && opts="-t $3" # [ ! -z "$3" ] && opts="-t $3"
ansible-playbook "$book" -i docker.ini;; ansible-playbook "$book" -i docker.ini;;
# playbook "$2" "$3";; # playbook "$2" "$3";;
kill) kill) docker kill ansible;;
docker kill ansible;;
run) run)
docker run --rm --name ansible -id alpine docker run --rm --name ansible -id alpine
[ "$?" == "0" ] && docker exec ansible /bin/sh -c "apk update && apk add python3" [ "$?" == "0" ] && docker exec ansible /bin/sh -c "apk update && apk add python3"
ansible -i docker.ini all -m ping;; ansible -i docker.ini all -m ping;;
zsh) zsh) docker exec -itu "$user" ansible zsh;;
docker exec -itu "$user" ansible zsh;; *sh) docker exec -it ansible "$1";;
sh) "") echo "Usage: $0 [run|kill|play|zsh|*sh|{container cmd}]";;
docker exec -it ansible sh;; *) docker exec -itu "$user" ansible $@;;
"")echo "Usage: $0 [run|kill|play|sh|{container cmd}]";;
*)
docker exec -itu "$user" ansible "$@";;
esac esac