salt - ademozel/test GitHub Wiki
apache - init.sls messages - init.sls - (motd.sls) - (issue.sls) files - issue - motd top.sls
apache/init.sls
createUser: user.present: - name: apacheuser - fullname: Apache User - password: 'linux' apachegroup: group.present: - gid: 1102 - system: False - addusers: - apacheuser - delusers: - foo install_apache2: pkg.installed: - name: apache2 enable_and_start_apache2: service.running: - name: apache2 - enable: True /srv/www: file.directory: - group: apachegroup - mode: 755 - recurse: - group - mode messages/init.sls ----------------- /etc/issue: file.managed: - source: salt://messages/files/issue - user: root - group: root - mode: 644 /etc/motd: file.managed: - source: salt://messages/files/motd - user: root - group: root - mode: 644 top.sls ------- base: 'server*': - apache - messages.issue - messages.motd