Skip to content

New RavenDB, Azure, Dyn Templates & Updated Amazon Template#257

Merged
hnrkndrssn merged 8 commits intoOctopusDeploy:masterfrom
timhunt303:master
Nov 27, 2015
Merged

New RavenDB, Azure, Dyn Templates & Updated Amazon Template#257
hnrkndrssn merged 8 commits intoOctopusDeploy:masterfrom
timhunt303:master

Conversation

@timhunt303
Copy link
Copy Markdown
Contributor

A mixture of step templates, with 3 completely new ones and one that has been updated.

Retrieves the specified document by a Raven Query, updates selected variables with values from octopus Variables. Replaces the current document with the newly created document with the updated values.
IMPORTANT: Any variable that is being updated MUST have an Octopus Variable that has exactly the same name (including capitals, any special characters, etc.) prefixed with “Property_”. This is the case of BOTH document variables and Metadata variables. I.E. if you wanted TestMode change, you MUST have an Octopus Variable named Property_TestMode (same name, and capitals, etc.).

•	Checks to see if the database exists, throws an error if it doesn’t.
•	Retrieves current document and remove all unnecessary data (metadata, etc.).
•	Allows users to select which variables they would like to be changed, then the values are retrieved from the octopus variables. This is the same for Metadata variables, be care with the Metadata as if something is spelt wrong it could corrupt the database.
•	Replace the current document with the newly created document with the updated values.
•	Comment the script
•	We add the opinion to make the uploaded files/folders public. By default Amazon automatically sets this to private.
•	Clean up the `if` statement to remove redundant use of `Get-Item’
•	 Add recursive (`-Recurse`) argument to the first Write-S3Object. This was done because the original code had a bug in it, which prevented any files/folders within a child directory from being uploaded.
Uploads files and folders to an Azure container from a specified location.

IMPORTANT: Azure PowerShell must be installed on the tentacle server for this step to work. This can be downloaded from http://bit.ly/AzurePowershellDownload 
 
•	Checks to see if Azure PowerShell is installed on the computer. Provides a link to a download if it isn’t installed. 
•	Loops through all child folders and files to upload them to the specified container
Creates an A record in the specified zone with the specified details. 

NOTE: The API User MUST have the follow permissions:
	UserLogin
	UserChangepw
	RecordAdd
	RecordUpdate
	RecordGet
	ZoneGet
	ZoneAddNode
	ZonePublish
	ZoneChangeset

•	Logs into Dyn through the API
•	Checks if the A Record is already there
o	If it is, it checks to make sure its information is current
	If it is out-of-date, it updates it to the new information. 
•	Creates the A record in the specified zone
•	Publishes the zone to make the new A record official. 
•	Logs out of Dyn and disposes the authentication key.
Creates an A record in the specified zone with the specified details. 

NOTE: The API User MUST have the follow permissions:
	UserLogin
	UserChangepw
	RecordAdd
	RecordUpdate
	RecordGet
	ZoneGet
	ZoneAddNode
	ZonePublish
	ZoneChangeset

•	Logs into Dyn through the API
•	Checks if the A Record is already there
o	If it is, it checks to make sure its information is current
	If it is out-of-date, it updates it to the new information. 
•	Creates the A record in the specified zone
•	Publishes the zone to make the new A record official. 
•	Logs out of Dyn and disposes the authentication key.
Retrieves the specified document by a Raven Query, updates selected variables with values from octopus Variables. Replaces the current document with the newly created document with the updated values.
IMPORTANT: Any variable that is being updated MUST have an Octopus Variable that has exactly the same name (including capitals, any special characters, etc.) prefixed with “Property_”. This is the case of BOTH document variables and Metadata variables. I.E. if you wanted TestMode change, you MUST have an Octopus Variable named Property_TestMode (same name, and capitals, etc.).

•	Checks to see if the database exists, throws an error if it doesn’t.
•	Retrieves current document and remove all unnecessary data (metadata, etc.).
•	Allows users to select which variables they would like to be changed, then the values are retrieved from the octopus variables. This is the same for Metadata variables, be care with the Metadata as if something is spelt wrong it could corrupt the database.
•	Replace the current document with the newly created document with the updated values.
Comment thread step-templates/azure-upload-files.json Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a Sensitive/Password control

@hnrkndrssn
Copy link
Copy Markdown
Contributor

In the script body

...
#create new A record

if($createNewARecord -eq $TRUE)
{
    $dynCreateURI = "https://api.dynect.net/REST/ARecord/fewzion.com/dummy.fewzion.com"   
    ...
}
...

That URL should probably not point to that domain

@hnrkndrssn
Copy link
Copy Markdown
Contributor

Other than those two comments, it all looks good

@hnrkndrssn hnrkndrssn added this to the vNext milestone Nov 27, 2015
Creates an A record in the specified zone with the specified details. 

NOTE: The API User MUST have the follow permissions:
	UserLogin
	UserChangepw
	RecordAdd
	RecordUpdate
	RecordGet
	ZoneGet
	ZoneAddNode
	ZonePublish
	ZoneChangeset

•	Logs into Dyn through the API
•	Checks if the A Record is already there
o	If it is, it checks to make sure its information is current
	If it is out-of-date, it updates it to the new information. 
•	Creates the A record in the specified zone
•	Publishes the zone to make the new A record official. 
•	Logs out of Dyn and disposes the authentication key.
@timhunt303
Copy link
Copy Markdown
Contributor Author

@alfhenrik changes have been made

hnrkndrssn added a commit that referenced this pull request Nov 27, 2015
New RavenDB, Azure, Dyn Templates & Updated Amazon Template
@hnrkndrssn hnrkndrssn merged commit 73abdc8 into OctopusDeploy:master Nov 27, 2015
@hnrkndrssn
Copy link
Copy Markdown
Contributor

Thanks heaps @timhunt303 !

@hnrkndrssn hnrkndrssn modified the milestone: vNext Dec 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants