Right now, every time a new team wants a new room in our Jangouts instance, they have to ping me and I have to manually create the room. That means:

  • Adding some lines to the corresponding config file
  • For the room to be available immediately, either restarting the service, either creating the room also through the REST interface.

I want to explore Salt to see how it can be used in order to provide a better way to create/destroy rooms, so every admin can easily do it. I have never used Salt, so I'm open to suggestions about the approach.

On the other hand, I would also like to come up with a more sustainable organization of the rooms. We started with one room per team because we didn't expected so many teams adopting Jangouts. Now we have more than 15 rooms, so maybe we should switch to other approach, like having a defined set of rooms (named with colors, cities, whatever) that everybody shares. Once again, I'm open to suggestion.

Final result

The SaltStack part is done. Now we have a Salt execution module that allows not only to create rooms (persistent and with immediate effect) but also to inspect the status of the Janus instance (for example, listing the connected users). Here is the repository and here the rpm packages.

  • Putting pieces together: check! (Jangouts + Salt)
  • Learning: check! (I have learned the Salt essentials and played with it... and I REALLY like it)
  • Improving the world: check! (Now all admins can manage rooms from the Janus host or from the salt master)
  • Collaboration: check! (Pablo rocks!)

Still pending: coming up with a more sustainable organization of the rooms. Still open to suggestions.

Looking for mad skills in:

jangouts salt saltstack

This project is part of:

Hack Week 14

Activity

  • about 3 years ago: teclator liked Rooms management for Janus (Jangouts) using Salt
  • about 3 years ago: ancorgs liked Rooms management for Janus (Jangouts) using Salt
  • about 3 years ago: xgonzo liked Rooms management for Janus (Jangouts) using Salt
  • about 3 years ago: locilka liked Rooms management for Janus (Jangouts) using Salt
  • about 3 years ago: PSuarezHernandez liked Rooms management for Janus (Jangouts) using Salt
  • Show History

    Comments

    • ancorgs
      about 3 years ago by ancorgs | Reply

      There is already some working code in this repository

      It right now talks to the REST interface offered by Janus in order to manage rooms. You can execute, for example, salt-call --local janus.create_videoroom "An awesome room" bitrate=128

      Next step would be to ensure that the change is not only performed through the REST interface, but also is persisted to the configuration file.

    • PSuarezHernandez
      about 3 years ago by PSuarezHernandez | Reply

      Some updates:

      • Now the created rooms are also persisted in the configuration file.
      • janus.plugin_message allow send custom messages through the REST interface.
      • Added some extra functions to salt-janus-module.

      Available functions of salt-janus-module:

      • janus.info
      • janus.list_videorooms
      • janus.list_audiorooms
      • janus.list_participants
      • janus.create_videoroom
      • janus.create_audioroom
      • janus.plugin_message
      • janus.save_rooms_status

      Repository: salt-janus-module

    • ancorgs
      about 3 years ago by ancorgs | Reply

      Now that everything works nicely (I have successfully created rooms remotely from the salt master in my test environment). Next step would be package this. Most likely in https://build.opensuse.org/project/show/network:jangouts

    • ancorgs
      about 3 years ago by ancorgs | Reply

      I have added a "final result" section to the description of the project to summarize the outcome.

    Similar Projects

    Run and manage your Ansible cluster using Salt! by PSuarezHernandez

    At SUSE we've implemented a module on Salt call...


    Make "salt-toaster" available to be used outside SUSE by PSuarezHernandez

    The salt-toaster (https://github.com/openSUSE...


    From bare metal to virtualized Kubernetes cluster with just Salt and Redfish by joachimwerner

    My goal is build on Alberto's work on ["yomi"](...