Code Monkey home page Code Monkey logo

Comments (4)

spuder avatar spuder commented on June 12, 2024

The work around is to log into test kitchen and run

 Tentacle.exe new-certificate --if-blank --console

Once you run that, then next chef converge will work.

from octopus-deploy-cookbook.

brentm5 avatar brentm5 commented on June 12, 2024

@spuder this is because test kitchen is using winrm which does not have access to cert libraries so it can not generate a cert. We mock this out in the test cookbook by dropping a pre generated cert. We can actually also use the elevated mode built into test kitchen since https://github.com/chef/chef-dk/blob/master/CHANGELOG.md#v014-2016-05-17

from octopus-deploy-cookbook.

brentm5 avatar brentm5 commented on June 12, 2024

@spuder This is actually fixed with the test cookbook / the default way we handle setting up tentacles. By default we actually generate a cert before we configure the tentacle and save that cert in the octopus deploy directory code here. The reason we do this is for two reasons, its easier to test in test-kitchen because we can pre generate the certificate. The other big reason is that if you uninstall the tentacle instance on a host and re run chef you will get the same certificate and the host can connect to the same instance. If you didn't do it this way you would get a new certificate each time and have to reconnect the host as well.

In our infrastructure we have a wrapper cookbook for installing tentacles and in there we include a private test cookbook for mocking the tentacle install. (Its similar to the following below)

https://github.com/cvent/octopus-deploy-cookbook/blob/master/test/cookbooks/octopus-deploy-test/recipes/tentacle.rb#L28-L31

from octopus-deploy-cookbook.

Fodoj avatar Fodoj commented on June 12, 2024

So what is the approach to take? To use dummy certificatre for test kitchen and generate new one for real use? How okay is to use single pre-generated cert for all tentacles?

from octopus-deploy-cookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.