Compare commits
4 Commits
1c83325133
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b97d7c7e84 | |||
| 0f0317dee1 | |||
| a77e7587b9 | |||
| 81a87d6526 |
+2
-2
@@ -4,8 +4,8 @@ file_client: local
|
|||||||
# Relative paths resolved from the directory where salt-call is executed
|
# Relative paths resolved from the directory where salt-call is executed
|
||||||
file_roots:
|
file_roots:
|
||||||
base:
|
base:
|
||||||
- ./salt
|
- ./states
|
||||||
- ./formulas/* # if vendorizing formulas
|
- ./formulas/*
|
||||||
|
|
||||||
pillar_roots:
|
pillar_roots:
|
||||||
base:
|
base:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
formulas_url: https://github.com/saltstack-formulas/
|
formulas_url: https://github.com/saltstack-formulas/
|
||||||
|
|
||||||
# where to store the new formulas (relative to current directory)
|
# where to store the new formulas (relative to current directory)
|
||||||
formulas_dir: /srv/salt/formulas
|
formulas_dir: ./formulas
|
||||||
|
|
||||||
# remove unmanaged formulas
|
# remove unmanaged formulas
|
||||||
purge_formulas: true
|
purge_formulas: true
|
||||||
@@ -21,6 +21,9 @@ formulas:
|
|||||||
version: v1.13.0
|
version: v1.13.0
|
||||||
- sudoers:
|
- sudoers:
|
||||||
version: v0.23.3
|
version: v0.23.3
|
||||||
|
- system:
|
||||||
|
version: v0.2.0
|
||||||
|
url: https://git.metaunix.net/Salt-Formulas/system-formula.git
|
||||||
- timezone:
|
- timezone:
|
||||||
version: v0.4.4
|
version: v0.4.4
|
||||||
- users:
|
- users:
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
# 1. Enable 32-bit architecture required for Steam
|
||||||
|
enable_i386_architecture:
|
||||||
|
cmd.run:
|
||||||
|
- name: dpkg --add-architecture i386
|
||||||
|
- unless: dpkg --print-foreign-architectures | grep -q i386
|
||||||
|
|
||||||
|
{% if grains['os'] == 'Ubuntu' %}
|
||||||
|
# 2a. Ensure universe and multiverse repositories are enabled on Ubuntu
|
||||||
|
enable_ubuntu_repos:
|
||||||
|
pkgrepo.managed:
|
||||||
|
- name: "deb http://archive.ubuntu.com/ubuntu/ {{ grains['oscodename'] }} main restricted universe multiverse"
|
||||||
|
- file: /etc/apt/sources.list.d/official-package-repositories.list
|
||||||
|
- clean_file: True
|
||||||
|
- require_in:
|
||||||
|
- pkg: install_gaming_tools
|
||||||
|
|
||||||
|
{% elif grains['os'] == 'Debian' %}
|
||||||
|
# 2b. Ensure contrib and non-free repositories are enabled on Debian
|
||||||
|
enable_debian_repos:
|
||||||
|
pkgrepo.managed:
|
||||||
|
- name: "deb http://deb.debian.org/debian/ {{ grains['oscodename'] }} main contrib non-free non-free-firmware"
|
||||||
|
- file: /etc/apt/sources.list.d/official-package-repositories.list
|
||||||
|
- clean_file: True
|
||||||
|
- require_in:
|
||||||
|
- pkg: install_gaming_tools
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
# 3. Refresh package lists after adding i386 and repositories
|
||||||
|
update_apt_cache:
|
||||||
|
cmd.run:
|
||||||
|
- name: apt-get update
|
||||||
|
- onchanges:
|
||||||
|
- cmd: enable_i386_architecture
|
||||||
|
{% if grains['os'] == 'Ubuntu' %}
|
||||||
|
- pkgrepo: enable_ubuntu_repos
|
||||||
|
{% elif grains['os'] == 'Debian' %}
|
||||||
|
- pkgrepo: enable_debian_repos
|
||||||
|
{% endif %}
|
||||||
|
- require_in:
|
||||||
|
- pkg: install_gaming_tools
|
||||||
|
|
||||||
|
# 4. Install Steam and MangoHud
|
||||||
|
install_gaming_tools:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
- steam:i386
|
||||||
|
- mangohud
|
||||||
|
- require:
|
||||||
|
- cmd: enable_i386_architecture
|
||||||
@@ -8,5 +8,6 @@ base:
|
|||||||
- openssh.banner
|
- openssh.banner
|
||||||
- openssh.config
|
- openssh.config
|
||||||
- vim
|
- vim
|
||||||
|
- system.sleep
|
||||||
# keep this at the end of the common stuff since these are one-off installs
|
# keep this at the end of the common stuff since these are one-off installs
|
||||||
- packages
|
- packages
|
||||||
|
|||||||
Reference in New Issue
Block a user