Skip to content

Commit a7a199e

Browse files
committed
add new state for benchmark minion
1 parent 0d750ae commit a7a199e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

salt/benchmarks/init.sls

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/etc/ssh/sshd_config.d/99-hardening.conf:
2+
file.managed:
3+
- source: salt://benchmarks/configs/sshd-hardening.conf
4+
- user: root
5+
- group: root
6+
- mode: "0644"
7+
8+
ssh-reload-benchmarks:
9+
service.running:
10+
- name: ssh
11+
- reload: True
12+
- watch:
13+
- file: /etc/ssh/sshd_config.d/99-hardening.conf

salt/top.sls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ base:
3636
- pgbouncer
3737
- buildbot
3838

39+
'benchmarks':
40+
- match: nodegroup
41+
- benchmarks
42+
3943
'cdn-logs':
4044
- match: nodegroup
4145
- cdn-logs

0 commit comments

Comments
 (0)