GithubHelp home page GithubHelp logo

Comments (3)

spuder avatar spuder commented on June 14, 2024

I thought this might have been some interaction between new_resource and the fact that my wrapper cookbook has the configure and register resources as 2 separate resources

octopus_deploy_tentacle 'Tentacle' do
  action [:install, :configure]
  version node['nd-octopus']['version']
  checksum node['nd-octopus']['checksum']
  trusted_cert node['nd-octopus']['trusted_cert']
end

octopus_deploy_tentacle 'Tentacle' do
  action :register
  server node['nd-octopus']['server']
  api_key node['nd-octopus']['api_key']
  roles node['nd-octopus']['roles']
  environment node.chef_environment.to_s
  polling node['nd-octopus']['polling']
  configure_firewall node['nd-octopus']['configure_firewall']
end

I've combined my 2 resources down to 1, but I'm still finding that the service restart is happening too early in the chef run.

   * powershell_script[create-instance-Tentacle] action run (skipped due to not_if)
    * powershell_script[configure-tentacle-Tentacle] action run
      - execute "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/sowen/AppData/Local/Temp/2/chef-script20160817-6000-13uugvk.ps1"
    * windows_service[OctopusDeploy Tentacle] action enable (up to date)
    * windows_service[OctopusDeploy Tentacle] action start (up to date)
    * windows_service[OctopusDeploy Tentacle] action restart
      - restart service windows_service[OctopusDeploy Tentacle]

  * octopus_deploy_tentacle[Tentacle] action register
    * powershell_script[register-Tentacle-tentacle] action run
      - execute "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/sowen/AppData/Local/Temp/2/chef-script20160817-6000-xribau.ps1"����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

from octopus-deploy-cookbook.

brentm5 avatar brentm5 commented on June 14, 2024

Should the register resource restart the tentacle after it runs?

from octopus-deploy-cookbook.

brentm5 avatar brentm5 commented on June 14, 2024

Just saw #56 and merged it. Can you confirm if this fixes the issue or not?

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.