O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Apache web server packages and services

Apache web server is one of the most widely used web server software packages that supports a wide range of back ends, such as Ruby, and Python-based frameworks. It can serve a wide range of dynamic and static pages and applications. In this recipe, we will learn how to configure Apache web server packages and services.

How to do it...

  1. Configure a new minion called salt-minion-ubuntu as having the Ubuntu server operating system in the development environment.
  2. Create a new state directory in the development environment called apache.
  3. Create and edit /opt/salt-cookbook/development/apache/init.sls to have the following entries:
    apache_packages: pkg.installed: - pkgs: - apache2 apache_service: service: - name: apache2 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required