Giter VIP home page Giter VIP logo

ansible-role-prosody's Introduction

ansible-role-prosody

Build Status Ansible Galaxy IM observatory

Install and maintain Prosody from offical repo with Ansible. Per default, this role also installs munin-node to monitor Prosody. Tested with Molecule, Docker, Vagrant and TravisCI.

Requirements

Debian 8,9,10. Other versions of Debian/Ubuntu might be supported as well, but aren't tested.

Role Variables

see defaults/main.yml

Dependencies

Download

Download latest release with ansible-galaxy

ansible-galaxy install systemli.prosody

Example Playbook

- hosts: servers
  roles:
    - systemli.prosody
  vars:
    prosody_virtual_hosts:
      - name: example.net
        key: |
          -----BEGIN PRIVATE KEY-----
            ...
          -----END PRIVATE KEY-----
        cert: |
            -----BEGIN CERTIFICATE-----
              ...
            -----END CERTIFICATE-----
      - name: x5tno6mwkncu4m2h.onion
        admins: ["[email protected]"]

You would need a configured Tor onion service for this. Look at systemli.onion.

You can also combine it with systemli.letsencrypt to automatically configure certs.

- hosts: servers
  roles:
    - systemli.letsencrypt
    - systemli.prosody
  vars:
    prosody_vhost: example.net
    letsencrypt_cert:
      name: example.net
      domains:
        - example.net
        - conference.example.net
        - proxy.example.net
        - pubsub.example.net
      challenge: dns
      renew_hook: "/usr/bin/prosodyctl --root cert import /etc/letsencrypt/live/"

Tests

Run local tests with

molecule test

Requires Molecule, Vagrant and python-vagrant to be installed.

License

GPL

Author Information

https://www.systemli.org

ansible-role-prosody's People

Contributors

0x46616c6b avatar dhutty avatar doobry-systemli avatar nevart avatar t2d avatar xshadow avatar zxyz avatar

Watchers

 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.