cookbook 'openssh-win', '= 1.0.0'
openssh-win (3) Versions 1.0.0 Follow0
Installs/Configures openssh server on windows
cookbook 'openssh-win', '= 1.0.0', :supermarket
knife supermarket install openssh-win
knife supermarket download openssh-win
OpenSSH Windows cookbook
This cookbook can be used to install openssh server on windows nodes
Simple usage
Define the variables
default['openssh-win']['version'] = '7.9.0.0p1-Beta' # default: 7.9.0.0p1-Beta
and include the openssh-win::default
recipe. This will
* download and unzip OpenSSH for windows to C:\Program Files\OpenSSH-Win64
* add it to the path,
* Create the services for sshd and ssh-agent
* start the sshd and ssh-agent service s
* configure the sshd and ssh-agent services to start automatically
* Create a incoming firewall rule for port 22
Usage with wrapper cookbooks
a little more control can be leveraged using the openssh_win resource block
Usage example to install openssh:
openssh_win 'OpenSSH' do version '7.9.0.0p1-Beta' # only needs to be specified in recourse name is not a version action :install path 'C:\openssh' # Optional, default is 'C:\Program Files', the subfolder OpenSSH-Win64 will always be created add_to_path false # Optional, default is true startup_type :manual # Optional, values can be :disabled, :manual or :automatic (default) start_service false # Optional, default is true add_firewall_rule false # Optional, default is true end
Usage example to remove openssh:
openssh_win '7.9.0.0p1-Beta' do action :remove path 'C:\openssh' # This must match the path that was passed during install
Dependent cookbooks
windows ~> 5.2 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 passed this metric
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 failed this metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 passed this metric
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 passed this metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 passed this metric
1.0.0 passed this metric