Compare commits

..

4 Commits

4 changed files with 56 additions and 3 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -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:
+49
View File
@@ -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
+1
View File
@@ -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