added apache state test files
This commit is contained in:
parent
c81a696979
commit
91286fe73c
17
apache/init.sls
Normal file
17
apache/init.sls
Normal 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
|
||||||
1
apache/templates/index.html
Normal file
1
apache/templates/index.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Hello from salt!
|
||||||
Loading…
Reference in New Issue
Block a user