mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-11-27 15:32:17 +00:00
John Bowdre
a58f8fcc1f
- move content to be served via gitfs to salt_content/gitfs - create structure to hold local content at salt_content/local - configure Vagrant to rsync salt_content/local to /srv on Salt master
25 lines
552 B
Text
25 lines
552 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
|