Comments (6)
I am not sure if I am following you correctly. You want the ability to specify a service name override. I am not sure if that makes sense since octopus deploy does not even allow you to change the name when you create instances of a tentacle. What does your resource block look like which is not working?
from octopus-deploy-cookbook.
In you providers.rb you have set the value "service_name = service_name(instance)". As an example this would name my tentacle service "OctopusDeploy Tentacle - WIN-NCHKE839". However, in our environment when the tentacles have been manually setup on the nodes the service name is only "OctopusDeploy Tentacle". This causes an issue when the recipe compiles and checks the not_if block "not_if { ::Win32::Service.exists?(service_name) }" specifically looking for "OctopusDeploy Tentacle - WIN-NCHKE839" which would evaluate as false although the tentacle service is already installed just with a slightly different name like "OctopusDeploy Tentacle". This causes any node that runs this recipe to error out due to the service name being slightly different than is prescribed in your providers.rb file.
from octopus-deploy-cookbook.
In the provider the instance is either passed in or defaulted. So the only way what you are saying could happen is if you did something like this.
octopus_deploy_tentacle 'default' do
action [:install, :configure]
instance 'WIN-NCHKE839'
...
end
In this example the instance name is being used to create multiple instances of the tentacle on the system. If there is a bug in how this works it would be beneficial to fix it. Currently we do not do that here which is why we haven't really had to go down that code path. If you only have one tentacle instance on the machine you are trying to install you should just not pass in the instance name.
from octopus-deploy-cookbook.
@jmcnair51 Does this answer your question or resolve the issue? If I dont' hear back I am going to close this issue.
from octopus-deploy-cookbook.
Sorry @brentm5 for the delayed response. Your suggestion did solve my issue, so thank you for your help. For lack of knowledge, I was under the impression that the instance name was a mandatory input. However, it is still possible to have both a service named OctopusDeploy Tentacle and OctopusDeploy Tentacle - Instance Name, so it would make it more flexible to be able to use a wildcard or explicitly define your service name. Thanks again and you can close this.
from octopus-deploy-cookbook.
No problem. Glad I could help!
from octopus-deploy-cookbook.
Related Issues (20)
- Document database assumptions for server HOT 2
- Error if node name not specified
- Octopus.Server.exe configure --storageConnectionString deprecated
- Allow configuring multiple admins HOT 1
- admin_user only works for LDAP HOT 2
- Octopus.Server.exe configure --webAuthenticationMode "Domain" is deprecated
- Improve readme on limitations of database automation
- Net::HTTPServerException: 403 "Forbidden" during tentacle installation HOT 1
- Tentacle register action does not work with invalid certificates are used HOT 5
- Support Octopus Deploy 4.0.0 HOT 4
- How to always use the latest version of the tentacle HOT 2
- Register tentacle as tenanted deploy HOT 1
- Include a CONTRIBUTING.md file so supermarket doesnt complain
- Include a TESTING.md file so supermarket doesnt complain
- tenated_deployment_participation
- Setting tentacle_name does not seem to have any effect HOT 5
- Supermarket does not contain the latest code. HOT 1
- Remove need for windows cookbook and windows_firewall cookbooks HOT 2
- Change name_attribute to name_property in order to work with Chef 13
- Support workers tentacle types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octopus-deploy-cookbook.