workstation formula for fedora

This commit is contained in:
root
2021-02-13 19:25:31 -05:00
parent 539ef686f7
commit cdd882e72c
6 changed files with 210 additions and 0 deletions

View File

@@ -6,6 +6,10 @@
{% if salt.pillar.get('restic', None) is not none %}
- restic.client
{% endif %}
'fen.keiran.us':
- workstation
'pawbs.keiran.us':
- workstation
'*.keiran.us':
- firewall
- resolv

83
workstation/home.sls Normal file
View File

@@ -0,0 +1,83 @@
---
{% import_yaml 'homexorg/packages.yaml' as packages %}
{% if grains.lsb_distrib_id != 'Fedora' %}
{{ raise('stahp') }}
{% endif %}
home-installs:
pkg.installed:
- pkgs:
{% for name in packages['install'] %}
- {{ name }}
{% endfor %}
home-removes:
pkg.removed:
- pkgs:
{% for name in packages['remove'] %}
- {{ name }}
{% endfor %}
vlc:
pkg.installed:
- require:
- pkg: rpmfusion_free_release
# refresh mod_init ?
# lutris
google-chrome:
pkgrepo.managed:
- baseurl: http://dl.google.com/linux/chrome/rpm/stable/x86_64
- gpgcheck: true
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
pkg.installed:
- name: google-chrome-stable
- require:
- pkgrepo: google-chrome
code:
pkgrepo.managed:
- humanname: Visual Studio Code
- baseurl: https://packages.microsoft.com/yumrepos/vscode
- gpgcheck: true
- gpgkey: https://packages.microsoft.com/keys/microsoft.asc
pkg.installed:
- require:
- pkgrepo: code
keir_bin:
file.directory:
- name: /home/keiran/.local/bin
- user: keiran
- group: keiran
telegram:
file.symlink:
- name: /home/keiran/.local/bin/Telegram
- target: /home/keiran/.local/lib/Telegram/Telegram
- require:
# FIXME
- file: keir_bin
archive.extracted:
- name: /home/keiran/.local/lib
- source: https://telegram.org/dl/desktop/linux
- archive_format: tar
- user: keiran
- group: keiran
- keep_source: false
- skip_verify: true
- if_missing: /home/keiran/.local/lib/Telegram/Telegram
rpmfusion_free_release:
pkg.installed:
- sources:
- rpmfusion-free-release: https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ grains.osmajorrelease }}.noarch.rpm
rpmfusion_nonfree_release:
pkg.installed:
- sources:
- rpmfusion-nonfree-release: https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ grains.osmajorrelease }}.noarch.rpm

83
workstation/init.sls Normal file
View File

@@ -0,0 +1,83 @@
---
{% import_yaml 'homexorg/packages.yaml' as packages %}
{% if grains.lsb_distrib_id != 'Fedora' %}
{{ raise('stahp') }}
{% endif %}
home-installs:
pkg.installed:
- pkgs:
{% for name in packages['install'] %}
- {{ name }}
{% endfor %}
home-removes:
pkg.removed:
- pkgs:
{% for name in packages['remove'] %}
- {{ name }}
{% endfor %}
vlc:
pkg.installed:
- require:
- pkg: rpmfusion_free_release
# refresh mod_init ?
# lutris
google-chrome:
pkgrepo.managed:
- baseurl: http://dl.google.com/linux/chrome/rpm/stable/x86_64
- gpgcheck: true
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
pkg.installed:
- name: google-chrome-stable
- require:
- pkgrepo: google-chrome
code:
pkgrepo.managed:
- humanname: Visual Studio Code
- baseurl: https://packages.microsoft.com/yumrepos/vscode
- gpgcheck: true
- gpgkey: https://packages.microsoft.com/keys/microsoft.asc
pkg.installed:
- require:
- pkgrepo: code
keir_bin:
file.directory:
- name: /home/keiran/.local/bin
- user: keiran
- group: keiran
telegram:
file.symlink:
- name: /home/keiran/.local/bin/Telegram
- target: /home/keiran/.local/lib/Telegram/Telegram
- require:
# FIXME
- file: keir_bin
archive.extracted:
- name: /home/keiran/.local/lib
- source: https://telegram.org/dl/desktop/linux
- archive_format: tar
- user: keiran
- group: keiran
- keep_source: false
- skip_verify: true
- if_missing: /home/keiran/.local/lib/Telegram/Telegram
rpmfusion_free_release:
pkg.installed:
- sources:
- rpmfusion-free-release: https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ grains.osmajorrelease }}.noarch.rpm
rpmfusion_nonfree_release:
pkg.installed:
- sources:
- rpmfusion-nonfree-release: https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ grains.osmajorrelease }}.noarch.rpm

14
workstation/map.jinja Normal file
View File

@@ -0,0 +1,14 @@
install:
- gimp
- thunderbird
- terminator
- keepassxc
- gvfs-smb # https://wiki.archlinux.org/index.php/Thunar#Configuration
- discord
remove:
- pidgin
- geany
- claws-mail
- parole
- pragha

26
workstation/vscode.sls Normal file
View File

@@ -0,0 +1,26 @@
---
{% if grains.lsb_distrib_id != 'Fedora' %}
{{ raise('stahp') }}
{% endif %}
google-chrome:
pkgrepo.managed:
- baseurl: http://dl.google.com/linux/chrome/rpm/stable/x86_64
- gpgcheck: true
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
pkg.installed:
- name: google-chrome-stable
- require:
- pkgrepo: google-chrome
code:
pkgrepo.managed:
- humanname: Visual Studio Code
- baseurl: https://packages.microsoft.com/yumrepos/vscode
- gpgcheck: true
- gpgkey: https://packages.microsoft.com/keys/microsoft.asc
pkg.installed:
- require:
- pkgrepo: code

0
workstation/work.sls Normal file
View File