My very first Salt states :)

This commit is contained in:
Jakub Filo 2023-05-23 18:38:39 +00:00
commit 65c2b869f5
Signed by: plantroon
GPG Key ID: 7DA8C0FFEED0C0DE
6 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1 @@
env-name: base

View File

@ -0,0 +1,7 @@
base:
'*':
- motd
prod:
'*':
- motd

View File

@ -0,0 +1,15 @@
Install and start Docker:
pkg.installed:
- pkgs:
- docker.io
pip.installed:
- name: docker
service.running:
- name: docker
{% for vhost,config in pillar["vhosts"].items() %}
Create docker network-{{ vhost }}:
docker_network.present:
- name: network-{{ vhost }}
- internal: False
{% endfor %}

View File

@ -0,0 +1,8 @@
/etc/default/locale: # May be absent
file.managed # so create it if any
en_US.UTF-8:
locale.present
C.UTF-8:
locale.system

View File

@ -0,0 +1,14 @@
base:
'*':
- util
- locale
prod:
'*':
- docker
- mariadb
- elasticsearch
- php-fpm-docker
- magento
- nginx-docker
- memcached-docker

View File

@ -0,0 +1,7 @@
util:
pkg.installed:
- pkgs:
- vim
- curl
- wget
- htop