Giter Site home page Giter Site logo

Comments (3)

ckng avatar ckng commented on July 26, 2024

Unable to get openssh.banner state to work as well. The Banner config is not uncommented and set to the correct value, even if I add Banner: "/etc/ssh/banner". Also getting this error:

        ID: sshd_banner
    Function: file.managed
        Name: /etc/ssh/banner
      Result: False
     Comment: Unable to manage file: Jinja variable 'dict object' has no attribute 'data'

from openssh-formula.

aboe76 avatar aboe76 commented on July 26, 2024

Tried to reproduce this but it works on my debian system:
pillar top.sls:

base:
  'example.home.lan:
    - openssh_banner

pillar openssh_banner.sls

sshd_config:
  Banner: '/etc/ssh/banner'

salt top.sls:

base:
  'example.home.lan':
    - openssh.banner

and it works

Name: openssh-server - Function: pkg.installed - Result: Clean
----------
          ID: sshd_config
    Function: file.managed
        Name: /etc/ssh/sshd_config
      Result: True
     Comment: File /etc/ssh/sshd_config updated
     Started: 22:01:33.680061
    Duration: 118.06 ms
     Changes:   
              ----------
              diff:
                  --- 
                  +++ 
                  @@ -76,7 +76,7 @@
                   #UseLogin no

                   #MaxStartups 10:30:60
                  -#Banner /etc/issue.net
                  +Banner /etc/ssh/banner

                   # Allow client to pass locale environment variables
                   AcceptEnv LANG LC_*
----------
          ID: sshd_banner
    Function: file.managed
        Name: /etc/ssh/banner
      Result: True
     Comment: File /etc/ssh/banner updated
     Started: 22:01:38.710512
    Duration: 25.094 ms
     Changes:   
              ----------
              diff:
                  New file
              mode:
                  0644

from openssh-formula.

tobinquadros avatar tobinquadros commented on July 26, 2024

👍 Thanks, I've moved on from this but glad someone checked it out.

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.