Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321526
init.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
init.sls
View Options
# -------------------------------------------------------------
# Salt — OpenSSH configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-02-28
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"map.jinja"
import
paths
,
capabilities
with context
%}
# -------------------------------------------------------------
# OpenSSH
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/etc/ssh/sshd_config
:
file.managed
:
-
source
:
salt://roles/core/sshd/files/sshd_config
-
template
:
jinja
-
context
:
sftp
:
{{
paths.sftp
}}
print_motd
:
{{
not
capabilities
[
'MOTD-printed-at-login'
]
}}
# -------------------------------------------------------------
# PAM
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# T1194 - Debian offers a nologin pam module avoiding people
# to log in when /run/nologin exists. OS can pop this file,
# for example at shutdown time or when systemd boot hasn't
# finished.
pam_disable_nologin
:
file.comment
:
-
name
:
/etc/pam.d/sshd
-
regex
:
^account.*pam_nologin\.so
-
backup
:
None
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 13, 16:45 (17 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2569772
Default Alt Text
init.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment