octopus-deploy-cookbook icon indicating copy to clipboard operation
octopus-deploy-cookbook copied to clipboard

Support Octopus Deploy 4.0.0

Open brentm5 opened this issue 8 years ago • 4 comments
trafficstars

With the RC just being released we should probably test to make sure that this version works with 4.0.0

https://octopus.com/downloads/4.0.0

brentm5 avatar Nov 14 '17 16:11 brentm5

Tentacle.exe documentation

https://octopus.com/docs/api-and-integration/tentacle.exe-command-line

spuder avatar Feb 28 '18 04:02 spuder

The tentacle commands should be pretty similar with moving to 4.0. Is there anything in particular that we need? Currently v4.0 servers can not be configured with this cookbook

brentm5 avatar Mar 05 '18 23:03 brentm5

Currently we only use the cookbook for the tentacle installs. I gave up on trying to automate the octopus server installation since there is only 1 of them and it never gets destroyed/recreated.

spuder avatar Mar 05 '18 23:03 spuder

Ahhh, We have a couple clusters which run in an active passive configuration. We use chef to orchestrate the host level setup as well as the Disaster recovery failover. They run in different datacenters and we configure them with encrypted databags so our setup looks something like this:

  server = node['octopus-deploy']['server']
  cluster = node['octopus-deploy']['cluster']
  cluster_key = Cvent::OctopusDeployServer.cluster_config_key(cluster['name'], datacenter['name'])

  server_config = data_bag_item('configs', cluster_key)

  # Configure the database address
  octopus_deploy_server 'OctopusServer' do
    action [:install, :configure]
    version server['version']
    checksum server['checksum']
    home_path server['home_path'] if server['home_path']
    config_path server['config_path'] if server['config_path']
    node_name server['node'] if server['node']
    master_key server_config['master-key'] if server_config['master-key']
    connection_string server_config['db-connection-string']
    sensitive true
    if Cvent::DrHelpers.active?(node)
      create_database true
      start_service true
    else
      start_service false
    end
  end

brentm5 avatar Mar 05 '18 23:03 brentm5