workstation formula for fedora
This commit is contained in:
4
top.sls
4
top.sls
@@ -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
83
workstation/home.sls
Normal 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
83
workstation/init.sls
Normal 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
14
workstation/map.jinja
Normal 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
26
workstation/vscode.sls
Normal 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
0
workstation/work.sls
Normal file
Reference in New Issue
Block a user