trombik.dhcpd_openbsd

Ansible Role dhcpd_openbsd

This role manages the dhcpd(8) service from the OpenBSD project.

Requirements

No special requirements.

Role Variables

Here are the variables you can set for this role:

Variable Description Default Value
dhcpd_openbsd_package Name of the OpenBSD dhcpd package {{ __dhcpd_openbsd_package }}
dhcpd_openbsd_user Username for OpenBSD dhcpd {{ __dhcpd_openbsd_user }}
dhcpd_openbsd_group Group name for OpenBSD dhcpd {{ __dhcpd_openbsd_group }}
dhcpd_openbsd_service Service name for OpenBSD dhcpd {{ __dhcpd_openbsd_service }}
dhcpd_openbsd_conf_dir Base directory for dhcpd.conf(5) {{ __dhcpd_openbsd_conf_dir }}
dhcpd_openbsd_conf_file Path to the dhcpd.conf(5) file {{ __dhcpd_openbsd_conf_dir }}/dhcpd.conf
dhcpd_openbsd_flags Optional flags for OpenBSD dhcpd ""
dhcpd_openbsd_conf Content for the dhcpd.conf(5) file ""

FreeBSD Default Variables

Variable Default Value
__dhcpd_openbsd_user dhcpd
__dhcpd_openbsd_group dhcpd
__dhcpd_openbsd_service dhcpd
__dhcpd_openbsd_conf_dir /usr/local/etc
__dhcpd_openbsd_package net/dhcpd

OpenBSD Default Variables

Variable Default Value
__dhcpd_openbsd_user _dhcpd
__dhcpd_openbsd_group _dhcpd
__dhcpd_openbsd_service dhcpd
__dhcpd_openbsd_conf_dir /etc
__dhcpd_openbsd_package ""

Dependencies

No dependencies required.

Example Playbook

Here is an example of how to use this role in a playbook:

---

- hosts: localhost
  roles:
    - ansible-role-dhcpd_openbsd
  vars:
    dhcpd_openbsd_flags: em0
    dhcpd_openbsd_conf: |
      option domain-name "i.trombik.org";
      option domain-name-servers 127.0.0.1;
      default-lease-time 600;
      max-lease-time 7200;

      subnet 10.0.2.0 netmask 255.255.255.0 {
        range 10.0.2.100 10.0.2.200;
        option broadcast-address 10.0.2.255;
        option routers 10.0.2.2;
      }

License

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

You can use, copy, modify, and share this software for any reason, with or without payment, as long as you keep the copyright notice.

THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR IS NOT RESPONSIBLE FOR ANY WARRANTIES OR DAMAGES THAT MAY OCCUR FROM USING IT.

Author Information

Tomoyuki Sakurai y@trombik.org

This README was created by qansible

Informazioni sul progetto

Manages dhcpd from OpenBSD

Installa
ansible-galaxy install trombik.dhcpd_openbsd
Licenza
isc
Download
107
Proprietario
PGP finger print: 03EB 3D97 5E04 9B0C AB21 93A2 D693 42A9 EFBC 3577 Makerspace and Coliving in Siem Reap, Cambodia: http://info.mkrsgh.org/