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 hackers with the skills:

jangouts salt saltstack

This project is part of:

Hack Week 14

Activity

  • almost 8 years ago: teclator liked this project.
  • almost 8 years ago: ancorgs liked this project.
  • almost 8 years ago: xgonzo liked this project.
  • almost 8 years ago: locilka liked this project.
  • almost 8 years ago: PSuarezHernandez liked this project.
  • almost 8 years ago: PSuarezHernandez joined this project.
  • almost 8 years ago: evshmarnev liked this project.
  • almost 8 years ago: ancorgs started this project.
  • almost 8 years ago: ancorgs added keyword "jangouts" to this project.
  • almost 8 years ago: ancorgs added keyword "salt" to this project.
  • almost 8 years ago: ancorgs added keyword "saltstack" to this project.
  • almost 8 years ago: ancorgs originated this project.

  • Comments

    • ancorgs
      almost 8 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
      almost 8 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
      almost 8 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
      almost 8 years ago by ancorgs | Reply

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

    Similar Projects

    Saline (state deployment control and monitoring tool for SUSE Manager/Uyuni) by vizhestkov

    [comment]: # (Please use the project descriptio...


    Generate ignition/combustion files from Uyuni/SUSE Manager by dvosburg

    [comment]: # (Please use the project descriptio...