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
|
||||
file_roots:
|
||||
base:
|
||||
- ./salt
|
||||
- ./formulas/* # if vendorizing formulas
|
||||
- ./states
|
||||
- ./formulas/*
|
||||
|
||||
pillar_roots:
|
||||
base:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
formulas_url: https://github.com/saltstack-formulas/
|
||||
|
||||
# where to store the new formulas (relative to current directory)
|
||||
formulas_dir: /srv/salt/formulas
|
||||
formulas_dir: ./formulas
|
||||
|
||||
# remove unmanaged formulas
|
||||
purge_formulas: true
|
||||
@@ -21,6 +21,9 @@ formulas:
|
||||
version: v1.13.0
|
||||
- sudoers:
|
||||
version: v0.23.3
|
||||
- system:
|
||||
version: v0.2.0
|
||||
url: https://git.metaunix.net/Salt-Formulas/system-formula.git
|
||||
- timezone:
|
||||
version: v0.4.4
|
||||
- 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.config
|
||||
- vim
|
||||
- system.sleep
|
||||
# keep this at the end of the common stuff since these are one-off installs
|
||||
- packages
|
||||
|
||||
Reference in New Issue
Block a user