From 34d29af25702fb228f396f8b009efc4a62f73e17 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Mon, 8 Aug 2016 15:21:08 -0600 Subject: [PATCH] Adds default environment --- README.md | 4 +--- resources/tentacle.rb | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4b550a5..6f9e32b 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ end - :server: Url to Octopus Deploy Server (e.g https://octopus.example.com) - :api_key: Api Key used to register Tentacle to Octopus Server - :roles: Array of roles to apply to Tentacle when registering with Octopus Deploy Server (e.g ["web-server","app-server"]) -- :environment: Which environment the Tentacle will become part of when registering with Octopus Deploy Server +- :environment: Which environment the Tentacle will become part of when registering with Octopus Deploy Server (Defaults to node.chef_environment ) #### Example Install version 3.2.24 of Octopus Deploy Tentacle @@ -89,7 +89,6 @@ octopus_deploy_tentacle 'Tentacle' do server 'https://octopus.example.com' api_key '12345678910' roles ['database'] - environment 'prod' configure_firewall true end ``` @@ -104,7 +103,6 @@ octopus_deploy_tentacle 'Tentacle' do api_key '12345678910' roles ['web-default'] polling true - environment 'dev' end ``` diff --git a/resources/tentacle.rb b/resources/tentacle.rb index c0b41df..b051e59 100644 --- a/resources/tentacle.rb +++ b/resources/tentacle.rb @@ -36,4 +36,4 @@ attribute :server, kind_of: String attribute :api_key, kind_of: String attribute :roles, kind_of: Array -attribute :environment, kind_of: String +attribute :environment, kind_of: String, default: node.chef_environment