Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

putty: new cookbook for deploying PuTTY on Windows

  • Loading branch information...
commit 511ae8b48ceba844af44ffd24903e7c6e7bc71e5 1 parent 5afb8d8
Troy Ready troyready authored
12 putty/CHANGELOG.md
View
@@ -0,0 +1,12 @@
+# CHANGELOG for putty
+
+This file is used to list changes made in each version of putty.
+
+## 0.1.0:
+
+* Initial release of putty
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+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
View
@@ -0,0 +1,41 @@
+putty Cookbook
+==============
+Simple cookbook for deploying PuTTY on windows
+
+Requirements
+------------
+
+#### cookbooks
+- `windows` - putty is deployed with as a Windows package.
+
+
+Usage
+-----
+#### putty::default
+Just include `putty` in your node's `run_list`:
+
+```json
+{
+ "name":"my_node",
+ "run_list": [
+ "recipe[putty]"
+ ]
+}
+```
+
+License and Authors
+-------------------
+ Copyright 2013, Biola University
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
1  putty/attributes/default.rb
View
@@ -0,0 +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
View
@@ -0,0 +1,8 @@
+name 'putty'
+maintainer 'Biola University'
+maintainer_email 'troy.ready@biola.edu'
+license 'Apache 2.0'
+description 'Installs/Configures PuTTY on Windows'
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version '0.1.0'
+depends 'windows'
31 putty/recipes/default.rb
View
@@ -0,0 +1,31 @@
+#
+# Cookbook Name:: putty
+# Recipe:: default
+#
+# Copyright 2013, Biola University
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+if node['platform'] == "windows" then
+
+ if node['kernel']['machine'] == "x86_64" then
+
+ include_recipe "windows::default"
+
+ windows_package "PuTTY 0.62 x64" do
+ source node['putty']['package_url']
+ action :install
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.