Giter Site home page Giter Site logo

ansible-role-httpd-openbsd's Introduction

trombik.httpd_openbsd

Build Status

Manages httpd(8) from OpenBSD

Requirements

None

Role Variables

Variable Description Default
httpd_openbsd_user user of httpd(8) {{ __httpd_openbsd_user }}
httpd_openbsd_group group of httpd(8) {{ __httpd_openbsd_group }}
httpd_openbsd_log_directories list of directories to create (see below) []
httpd_openbsd_service service name of httpd(8) {{ __httpd_openbsd_service }}
httpd_openbsd_conf_dir dirname of httpd.conf {{ __httpd_openbsd_conf_dir }}
httpd_openbsd_conf_file path to httpd.conf {{ httpd_openbsd_conf_dir }}/httpd.conf
httpd_openbsd_flags flags to pass in rc.conf.local -f {{ httpd_openbsd_conf_file }}
httpd_openbsd_chroot not yet implemented ""
httpd_openbsd_config content of httpd.conf ""

httpd_openbsd_log_directories

This variable is a thin wrapper of ansible's file module, and a list of dict explained below.

Attribute name Value Mandatory?
path path of file module yes
mode mode of file module no
owner owner of file module no
group group of file module no
state either present or absent. when present, the directory is created. when absent, the directory is removed yes

OpenBSD

Variable Default
__httpd_openbsd_user www
__httpd_openbsd_group www
__httpd_openbsd_service httpd
__httpd_openbsd_conf_dir /etc

Dependencies

None

Example Playbook

---
- hosts: localhost
  roles:
    - ansible-role-httpd-openbsd
  vars:
    httpd_openbsd_log_directories:
      - path: /var/www/logs
        owner: root
        group: daemon
        mode: 0755
        state: present
      - path: /var/www/logs/secure
        owner: root
        group: daemon
        mode: g+w
        state: present

    httpd_openbsd_config: |
      ext_addr="*"
      prefork 3
      # A minimal default server
      server "default" {
        listen on $ext_addr port 80
      }

      # An HTTPS server using SSL/TLS
      #server "secure.example.com" {
      #  listen on $ext_addr tls port 443
      #  log { access "secure-access.log", error "secure-error.log" }
      #}
      # Include MIME types instead of the built-in ones
      types {
        include "/usr/share/misc/mime.types"
      }

License

Copyright (c) 2017 Tomoyuki Sakurai <[email protected]>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Author Information

Tomoyuki Sakurai [email protected]

This README was created by qansible

ansible-role-httpd-openbsd's People

Contributors

trombik avatar

Watchers

 avatar James Cloos avatar

Forkers

stejoo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.