2024-02-06 17:28:43 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
2023-03-27 15:38:35 +00:00
|
|
|
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'] }}
|
|
|
|
|
2023-03-28 15:03:39 +00:00
|
|
|
configure_firewall:
|
2023-03-27 15:38:35 +00:00
|
|
|
pkg.installed:
|
|
|
|
- name: firewalld
|
|
|
|
firewalld.present:
|
|
|
|
- require:
|
|
|
|
- pkg: firewalld
|
|
|
|
- name: public
|
|
|
|
- services:
|
2023-03-28 15:03:39 +00:00
|
|
|
- http
|
|
|
|
- https
|