added debian support
This commit is contained in:
parent
f5cca4d6c8
commit
2f927b6d62
12 changed files with 28 additions and 3 deletions
0
pillars/roles/backup/init.sls
Normal file → Executable file
0
pillars/roles/backup/init.sls
Normal file → Executable file
0
pillars/roles/backup/radarr.sls
Normal file → Executable file
0
pillars/roles/backup/radarr.sls
Normal file → Executable file
0
pillars/roles/firewalld/nginx-proxy.sls
Normal file → Executable file
0
pillars/roles/firewalld/nginx-proxy.sls
Normal file → Executable file
1
pillars/servers/env/server/debiangitlab.sls
vendored
Normal file
1
pillars/servers/env/server/debiangitlab.sls
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
env: prod
|
3
pillars/servers/maintainer/server/debiangitlab.sls
Normal file
3
pillars/servers/maintainer/server/debiangitlab.sls
Normal file
|
@ -0,0 +1,3 @@
|
|||
maintainer:
|
||||
- masaufuku
|
||||
|
5
pillars/servers/roles/server/debiangitlab.sls
Normal file
5
pillars/servers/roles/server/debiangitlab.sls
Normal file
|
@ -0,0 +1,5 @@
|
|||
grains:
|
||||
roles:
|
||||
- server
|
||||
- ssh
|
||||
- saltminion
|
|
@ -1,3 +1,4 @@
|
|||
{% if grains['os_family'] == 'Arch' %}
|
||||
nano:
|
||||
pkg.installed
|
||||
wget:
|
||||
|
@ -9,6 +10,21 @@ htop:
|
|||
git:
|
||||
pkg.installed
|
||||
|
||||
{% elif grains['os_family'] == 'Debian' %}
|
||||
nano:
|
||||
pkg.installed
|
||||
wget:
|
||||
pkg.installed
|
||||
openssh-server:
|
||||
pkg.installed
|
||||
htop:
|
||||
pkg.installed
|
||||
git:
|
||||
pkg.installed
|
||||
{% else %}
|
||||
blarg:
|
||||
pkg.installed
|
||||
{% endif %}
|
||||
|
||||
#note: bug in current version of saltstack breaks multi-package installs w/ yum. It'll be fixed in next version
|
||||
#https://github.com/saltstack/salt/issues/28356
|
||||
|
|
0
states/roles/maintain/gitlab/init.sls
Normal file → Executable file
0
states/roles/maintain/gitlab/init.sls
Normal file → Executable file
|
@ -29,14 +29,14 @@ salt-minion:
|
|||
- mode: 644
|
||||
- makedirs: true
|
||||
|
||||
"/usr/lib/systemd/system/highstate.service":
|
||||
"/lib/systemd/system/highstate.service":
|
||||
file.managed:
|
||||
- source: salt://roles/maintain/saltminion/highstate.service
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
|
||||
"/usr/lib/systemd/system/highstate.timer":
|
||||
"/lib/systemd/system/highstate.timer":
|
||||
file.managed:
|
||||
- source: salt://roles/maintain/saltminion/highstate.timer
|
||||
- user: root
|
||||
|
@ -51,4 +51,4 @@ salt-minion:
|
|||
module.run:
|
||||
- name: service.systemctl_reload
|
||||
- onchanges:
|
||||
- file: /usr/lib/systemd/system/*
|
||||
- file: /lib/systemd/system/*
|
||||
|
|
0
states/systems/core/mount/init.sls
Normal file → Executable file
0
states/systems/core/mount/init.sls
Normal file → Executable file
0
states/top.sls
Normal file → Executable file
0
states/top.sls
Normal file → Executable file
0
test
Normal file → Executable file
0
test
Normal file → Executable file
Loading…
Add table
Reference in a new issue