octopus-deploy-cookbook
octopus-deploy-cookbook copied to clipboard
Support Octopus Deploy 4.0.0
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
Tentacle.exe documentation
https://octopus.com/docs/api-and-integration/tentacle.exe-command-line
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
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.
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