added apache state test files

This commit is contained in:
Jesse Harris 2021-01-28 15:17:01 +10:00
parent c81a696979
commit 91286fe73c
3 changed files with 23 additions and 0 deletions

17
apache/init.sls Normal file
View File

@ -0,0 +1,17 @@
install_apache:
pkg.installed:
- pkgs:
- apache2
index_html:
file.managaed:
- name: /var/www/html/index.html
- user: www-data
- group: www-data
- mode: 644
- source: salt://apache/templates/index.html
apache_service:
service.running:
- name: apache2
- enable: True

View File

@ -0,0 +1 @@
Hello from salt!

5
top.sls Normal file
View File

@ -0,0 +1,5 @@
'*':
'minion*':
- apache
- users