Hey there!
So I have created an open source octopus deploy cookbook for chef. Currently all it does is just install / remove a particular version of the server and tentacles on a server. I am starting on the configuration right now actually but I wanted to get some information on how to do it better. In our first internal version we would look to see if the service and config file existed and if they didn’t we would call the respective cli interface to configure the instance. I wanted to make this a little more intelligent and do partial changes instead of someone manually removing the instance and re configuring. When looking at the octo tentacle and server I was wondering if there was anyway to create these files without calling the tentacle cli interface? So that you could generate it with a template and then just call the tentacle and point it at the config to reinstall itself if the file changes as a result of the chef run.
<?xml version="1.0" encoding="utf-8"?>
<octopus-settings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<set key="Octopus.Home">C:\Octopus</set>
<set key="Octopus.Storage.MasterKey">[redacted]</set>
<set key="Tentacle.Certificate">[redacted]</set>
<set key="Tentacle.CertificateThumbprint">[redacted]</set>
<set key="Tentacle.Communication.TrustedOctopusServers">[{"Thumbprint":"[redacted]","CommunicationStyle":0,"Address":null,"Squid":null,"SubscriptionId":null}]</set>
<set key="Tentacle.Deployment.ApplicationDirectory">D:\WebApps</set>
<set key="Tentacle.Services.NoListen">false</set>
<set key="Tentacle.Services.PortNumber">10933</set>
</octopus-settings>