mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-12-17 23:22:17 +00:00
John Bowdre
62bd4a6f35
- rename apache->webserver state - configure firewall rules to permit http/https - fix index.html path
25 lines
No EOL
551 B
Text
25 lines
No EOL
551 B
Text
install_apache:
|
|
pkg.installed:
|
|
- name: {{ pillar['pkgs']['apache'] }}
|
|
service.running:
|
|
- name: {{ pillar['pkgs']['apache'] }}
|
|
- require:
|
|
- pkg: {{ pillar['pkgs']['apache'] }}
|
|
|
|
install_html_file:
|
|
file.managed:
|
|
- name: /var/www/html/index.html
|
|
- source: salt://webserver/index.html
|
|
- require:
|
|
- pkg: {{ pillar['pkgs']['apache'] }}
|
|
|
|
configure_firewall:
|
|
pkg.installed:
|
|
- name: firewalld
|
|
firewalld.present:
|
|
- require:
|
|
- pkg: firewalld
|
|
- name: public
|
|
- services:
|
|
- http
|
|
- https |