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.
This project is part of:
Hack Week 14
Activity
Comments
-
about 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.
-
about 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
-
about 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
Similar Projects
This project is one of its kind!