Skip to content

Commit

Permalink
Merge pull request #50 from indiana-university/duo_passcode
Browse files Browse the repository at this point in the history
Changes ssh_config.pp to writes sshd config to file in sshd_config.d instead of sshd_config file, updates CHANGELOG.md and metadata.json accordingly.
  • Loading branch information
thoughtful-explorer authored Jul 15, 2024
2 parents 1c9d07a + 8235d51 commit b8fed7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## Release 4.2.3
* Writes sshd config to file in sshd_config.d instead of sshd_config file

## Release 4.2.2
* Major change that should have coincided with 4.2.0: changing the use of augeas in favor of stdlib's file_line resource.

Expand Down
13 changes: 3 additions & 10 deletions manifests/ssh_config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@
# @example
# include duo_unix::ssh_config
class duo_unix::ssh_config inherits duo_unix::params {
$sshd_config_path = '/etc/ssh/sshd_config'
file_line { 'forcecommand_login_duo':
path => $sshd_config_path,
line => 'ForceCommand /usr/sbin/login_duo',
notify => Service[$duo_unix::params::ssh_service],
require => Package[$duo_unix::params::duo_package],
}
file_line { 'permittunnel_no':
path => $sshd_config_path,
line => 'PermitTunnel no',
$sshd_config_path = '/etc/ssh/sshd_config.d/99-duo_sshd.conf'
file { $sshd_config_path:
content => "ForceCommand /usr/sbin/login_duo\nPermitTunnel no",
notify => Service[$duo_unix::params::ssh_service],
require => Package[$duo_unix::params::duo_package],
}
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iu-duo_unix",
"version": "4.2.2",
"version": "4.2.3",
"author": "Anthony Vitacco <[email protected]>, Mark Addonizio <[email protected]>, Will Meredith <[email protected]>",
"summary": "Installs, configures, and manages Duo Unix",
"license": "MIT",
Expand Down

0 comments on commit b8fed7f

Please sign in to comment.