OpenSSH is maintained by the OpenBSD project and is installed by default in FreeBSD.
Also includes:
Refactor package_name using case like other formulas
Pillar / config required to test the proposed changes
As-is.
Debug log showing how the proposed changes work
As shown in Travis as well as:
$ KITCHEN_LOCAL_YAML=kitchen.vagrant.yml bin/kitchen verify default-freebsd-120-2019-2-py3
-----> Starting Test Kitchen (v2.3.4)
-----> Verifying <default-freebsd-120-2019-2-py3>...
Detected alternative framework tests for `serverspec`
Loaded default
Profile: openssh formula (default)
Version: (not specified)
Target: ssh://vagrant@127.0.0.1:2222
✔ openssh service: should be running and enabled
✔ Service sshd is expected to be enabled
✔ Service sshd is expected to be running
↺ openssh package: should be installed
↺ Skipped control due to only_if condition.
✔ openssh configuration: should match desired lines
✔ File /etc/ssh/sshd_config is expected to be file
✔ File /etc/ssh/sshd_config is expected to be owned by "root"
✔ File /etc/ssh/sshd_config is expected to be grouped into "wheel"
✔ File /etc/ssh/sshd_config mode is expected to cmp == "0644"
✔ File /etc/ssh/sshd_config content is expected to include "ChallengeResponseAuthentication no"
✔ File /etc/ssh/sshd_config content is expected to include "X11Forwarding yes"
✔ File /etc/ssh/sshd_config content is expected to include "PrintMotd no"
✔ File /etc/ssh/sshd_config content is expected to include "AcceptEnv LANG LC_*"
✔ File /etc/ssh/sshd_config content is expected to include "Subsystem sftp /usr/lib/openssh/sftp-server"
✔ File /etc/ssh/sshd_config content is expected to include "UsePAM yes"
✔ File /etc/ssh/ssh_config is expected to be file
✔ File /etc/ssh/ssh_config is expected to be owned by "root"
✔ File /etc/ssh/ssh_config is expected to be grouped into "wheel"
✔ File /etc/ssh/ssh_config mode is expected to cmp == "0644"
✔ File /etc/ssh/ssh_config content is expected to include "Host *"
✔ File /etc/ssh/ssh_config content is expected to include " GSSAPIAuthentication yes"
✔ File /etc/ssh/ssh_config content is expected to include " HashKnownHosts yes"
✔ File /etc/ssh/ssh_config content is expected to include " SendEnv LANG LC_*"
Documentation checklist
[ ] Updated the README (e.g. Available states).
[ ] Updated pillar.example.
Testing checklist
[ ] Included in Kitchen (i.e. under state_top).
[x] Covered by new/existing tests (e.g. InSpec, Serverspec, etc.).
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
Describe the changes you're proposing
https://www.freebsd.org/doc/handbook/openssh.html
Also includes:
package_name
usingcase
like other formulasPillar / config required to test the proposed changes
As-is.
Debug log showing how the proposed changes work
As shown in Travis as well as:
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context