GithubHelp home page GithubHelp logo

stuvusit / ansible_rfid_tuer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 18 KB

Ansible role to deploy a python door control system

License: Creative Commons Attribution Share Alike 4.0 International

ansible python ansible-role door systemd-journal

ansible_rfid_tuer's Introduction

rfid_tuer_ansible

This role sets up the rfid_tuer repository with a system daemon to control access to a door by using rfid tags.

Requirements

This role requires an apt based system.

Role Variables

Name Required/Default Description
rfid_tuer_ansible_install_path /opt/door Install path where to script and config file will be placed.
rfid_tuer_ansible_vars see below Variable holding all other variables for the configuration file
rfid_tuer_ansible_user door Default user under which the service is running
rfid_tuer_ansible_group door Default group under which the service is running

rfid_tuer_ansible_vars

Name Required/Default Description
door_relay_number 0 Relay number that is used for opening and closing the door
door_state_input_pin 1 Input pin which is connected to the door input state
door_switch_input_pin 0 Input switch number where the door switch is connected to
door_switch_green_led_output_pin 0 Output pin where the green switch led is connected to
door_switch_red_led_output_pin 1 Output pin where the red switch led is connected to
rfid_reader_green_led_output_pin 2 Output pin where the green rfid reader led is connected to
rfid_reader_red_led_output_pin 3 Output pin where the red rfid reader led is connected to
ldap_port 389 LDAP port number
ldap_use_ssl true To enable or disable SSL on LDAP connections
ldap_server ✔️ URL to for the LDAP server that should be queried
ldap_base_dn ✔️ Base DN for LDAP search
ldap_user ✔️ DN of user used for bind
ldap_user_secret ✔️ Password of the user for bind
ldap_match_attr ✔️ Attribute that should be looked up
ldap_owner_attr ✔️ Attribute that contains the card owner (used for looging)

Example Playbook

hosts: all
  become: true
  vars:
    ldap_server: example.de
    ldap_base_dn: dc=default,dc=example,dc=de
    ldap_user: uid=test,ou=people,dc=example,dc=de
    ldap_user_secret: password
    ldap_match_attr: "rfidTags"
  roles:
    - rfid_tuer_ansible

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Author Information

ansible_rfid_tuer's People

Contributors

dasj avatar haslersn avatar scriptkiddi avatar

Watchers

 avatar  avatar

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.