Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a way to store customized commands #54

Open
camilosampedro opened this issue Jan 31, 2017 · 0 comments
Open

Create a way to store customized commands #54

camilosampedro opened this issue Jan 31, 2017 · 0 comments

Comments

@camilosampedro
Copy link
Owner

Create a way to store some customized commands that can be sent to the computers.

I have two ideas for doing this:

  • Use typesafehub/config (already available dependency) to have a conf file with commands. It is pretty clean but usually it is not intended for things that change during runtime, as it only reads and cache the config at startup.
  • Use a SQL table for storing the commands.
  • Use another file for storing them with another format.

Some considerations:

  • Some commands could be different depending on which OS or distro is running on the computer. It could be a good idea to store different commands for a "command name" depending on the OS. The OS is already known.
  • The commands should have information:
    • Executed with or without super user rights (sudo).
    • Don't wait for result flag: It is not very usual, but it is used when the command should not wait for a result (For example shutdown -h now) as maybe it will never come.
    • Executed by all the logged in users, by a specific user or by the provided ssh user. It is already know what are the logged in users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant