Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set tentacle register environment default to be the chef environment #45

Merged
merged 1 commit into from
Aug 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
Expand All @@ -104,7 +103,6 @@ octopus_deploy_tentacle 'Tentacle' do
api_key '12345678910'
roles ['web-default']
polling true
environment 'dev'
end
```

Expand Down
2 changes: 1 addition & 1 deletion resources/tentacle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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