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

  • over 3 years ago: teclator liked Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: ancorgs liked Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: xgonzo liked Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: locilka liked Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: PSuarezHernandez liked Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: PSuarezHernandez joined Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: evshmarnev liked Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: ancorgs started Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: ancorgs added keyword "jangouts" to Rooms management for Janus (Jangouts) using Salt
  • over 3 years ago: ancorgs added keyword "salt" to Rooms management for Janus (Jangouts) using Salt
  • All Activity

    Comments

    • ancorgs
      over 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
      over 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
      over 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
      over 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

    Provisioning Prometheus exporters with Uyuni revisited by j_renner

    There is a number of annoyances and pending imp...


    SUSE Manager: Windows client support by pagarcia

    Let's see how much, if any, of the steps descri...


    Port Salt virt modules to idem by cbosdonnat

    Salt is moving towards a plugable architecture ...


    Learn SaltStack Enterprise by pagarcia

    Uyuni uses the open source version of Salt to i...


    Modernize Mash deployment by seanmarlow

    Mash is a Python based CI/CD pipeline for aut...


    Learn SaltStack Enterprise by pagarcia

    Uyuni uses the open source version of Salt to i...


    Port Salt virt modules to idem by cbosdonnat

    Salt is moving towards a plugable architecture ...