Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

putty: new cookbook for deploying PuTTY on Windows

  • Loading branch information...
commit 511ae8b48ceba844af44ffd24903e7c6e7bc71e5 1 parent 5afb8d8
Troy Ready troyready authored
12 putty/CHANGELOG.md
Source Rendered
... ... @@ -0,0 +1,12 @@
  1 +# CHANGELOG for putty
  2 +
  3 +This file is used to list changes made in each version of putty.
  4 +
  5 +## 0.1.0:
  6 +
  7 +* Initial release of putty
  8 +
  9 +- - -
  10 +Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
  11 +
  12 +The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
41 putty/README.md
Source Rendered
... ... @@ -0,0 +1,41 @@
  1 +putty Cookbook
  2 +==============
  3 +Simple cookbook for deploying PuTTY on windows
  4 +
  5 +Requirements
  6 +------------
  7 +
  8 +#### cookbooks
  9 +- `windows` - putty is deployed with as a Windows package.
  10 +
  11 +
  12 +Usage
  13 +-----
  14 +#### putty::default
  15 +Just include `putty` in your node's `run_list`:
  16 +
  17 +```json
  18 +{
  19 + "name":"my_node",
  20 + "run_list": [
  21 + "recipe[putty]"
  22 + ]
  23 +}
  24 +```
  25 +
  26 +License and Authors
  27 +-------------------
  28 + Copyright 2013, Biola University
  29 +
  30 + Licensed under the Apache License, Version 2.0 (the "License");
  31 + you may not use this file except in compliance with the License.
  32 + You may obtain a copy of the License at
  33 +
  34 + http://www.apache.org/licenses/LICENSE-2.0
  35 +
  36 + Unless required by applicable law or agreed to in writing, software
  37 + distributed under the License is distributed on an "AS IS" BASIS,
  38 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  39 + See the License for the specific language governing permissions and
  40 + limitations under the License.
  41 +
1  putty/attributes/default.rb
... ... @@ -0,0 +1 @@
  1 +default['putty']['package_url'] = "https://blog.splunk.net/wp/wp-content/uploads/2012/04/putty-0.62_x64-installer.exe"
8 putty/metadata.rb
... ... @@ -0,0 +1,8 @@
  1 +name 'putty'
  2 +maintainer 'Biola University'
  3 +maintainer_email 'troy.ready@biola.edu'
  4 +license 'Apache 2.0'
  5 +description 'Installs/Configures PuTTY on Windows'
  6 +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
  7 +version '0.1.0'
  8 +depends 'windows'
31 putty/recipes/default.rb
... ... @@ -0,0 +1,31 @@
  1 +#
  2 +# Cookbook Name:: putty
  3 +# Recipe:: default
  4 +#
  5 +# Copyright 2013, Biola University
  6 +#
  7 +# Licensed under the Apache License, Version 2.0 (the "License");
  8 +# you may not use this file except in compliance with the License.
  9 +# You may obtain a copy of the License at
  10 +#
  11 +# http://www.apache.org/licenses/LICENSE-2.0
  12 +#
  13 +# Unless required by applicable law or agreed to in writing, software
  14 +# distributed under the License is distributed on an "AS IS" BASIS,
  15 +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16 +# See the License for the specific language governing permissions and
  17 +# limitations under the License.
  18 +#
  19 +
  20 +if node['platform'] == "windows" then
  21 +
  22 + if node['kernel']['machine'] == "x86_64" then
  23 +
  24 + include_recipe "windows::default"
  25 +
  26 + windows_package "PuTTY 0.62 x64" do
  27 + source node['putty']['package_url']
  28 + action :install
  29 + end
  30 + end
  31 +end

0 comments on commit 511ae8b

Please sign in to comment.
Something went wrong with that request. Please try again.