Skip to content

Instantly share code, notes, and snippets.

View sbotman's full-sized avatar

Sander Botman sbotman

View GitHub Profile
@sbotman
sbotman / cs_cmd_run.rb
Created August 30, 2013 14:34
A Knife Cloudstack plugin command to run commands just from the command line.
#
# Author:: Sander Botman (<[email protected]>)
# Copyright:: Copyright (c) 2013 Sander Botman.
# License:: Apache License, Version 2.0
#
# 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
@sbotman
sbotman / environment_constraints.rb
Last active December 16, 2015 06:28
A Knife plugin to list environment cookbooks and version constrains.
#
# Author:: Sander Botman (<[email protected]>)
# Copyright:: Copyright (c) 2013 Sander Botman.
# License:: Apache License, Version 2.0
#
# 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
@sbotman
sbotman / set_environment.rb
Created October 18, 2012 09:55 — forked from nstielau/set_environment.rb
A Knife plugin to set node environment
## Knife plugin to set node environment
# See http://wiki.opscode.com/display/chef/Environments
#
## Install
# Place in .chef/plugins/knife/set_environment.rb
#
## Usage
# Nick-Stielaus-MacBook-Pro:chef-repo nstielau$ knife node set_environment mynode.net my_env
# Looking for mynode.net
# Setting environment to my_env