Page MenuHomeDevCentral

D3090.id7890.diff
No OneTemporary

D3090.id7890.diff

diff --git a/roles/core/sshd/files/rc.conf b/roles/core/sshd/files/rc.conf
new file mode 100644
--- /dev/null
+++ b/roles/core/sshd/files/rc.conf
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# OpenSSH — rc configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/core/sshd/files/rc.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+sshd_enable="YES"
diff --git a/roles/core/sshd/init.sls b/roles/core/sshd/init.sls
--- a/roles/core/sshd/init.sls
+++ b/roles/core/sshd/init.sls
@@ -24,6 +24,16 @@
sftp: {{ paths.sftp }}
print_motd: {{ not capabilities['MOTD-printed-at-login'] }}
+# -------------------------------------------------------------
+# Service
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains['os'] == 'FreeBSD' %}
+/etc/rc.conf.d/sshd:
+ file.managed:
+ - source: salt://roles/core/sshd/files/rc.conf
+{% endif %}
+
# -------------------------------------------------------------
# PAM
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 13:45 (7 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2312558
Default Alt Text
D3090.id7890.diff (1 KB)

Event Timeline