Giter Site home page Giter Site logo

Comments (6)

daks avatar daks commented on July 26, 2024

Testing ssh config before restarting the service looks like a good idea to me. Do you think you can provide a pull request with the code?

from openssh-formula.

alxwr avatar alxwr commented on July 26, 2024

@OrangeDog @daks This has already been implemented in .config via salt.states.file.managed's check_cmd.
https://github.com/saltstack-formulas/openssh-formula/blob/master/openssh/config.sls#L17
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed

from openssh-formula.

OrangeDog avatar OrangeDog commented on July 26, 2024

@alxwr cool, just needs implementing for config_ini then.

from openssh-formula.

alxwr avatar alxwr commented on July 26, 2024

@OrangeDog check_cmd uses a temporary file which contains the new config.
Based on your last comment I guess you agree with my view on salt.states.file.managed's check_cmd. Is that correct?

@OrangeDog @aboe76
In my view .config_ini is a special case which only changes the way in which sshd_config gets its values. It was implemented in #124.
I propose to extend .config with .config_ini by overwriting ID sshd_config. This way we get all the additional features (i.e. key mgmt) within .config plus INI format.

from openssh-formula.

aboe76 avatar aboe76 commented on July 26, 2024

@alxwr nice Idea, can you create a PR then we can test this.

from openssh-formula.

alxwr avatar alxwr commented on July 26, 2024

@aboe76 I assigned the issue to myself, but I can't promise any completion date. :-)
So if anyone wants to create a PR before, feel free to do so. (Just give me an update in this thread when you start. I'll do the same.)

from openssh-formula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.