Skip to content

Commit

Permalink
New Storefront 1.2 release
Browse files Browse the repository at this point in the history
Compatible with Sitecore XC 9.0.2.
  • Loading branch information
sc-marcusheath committed Jul 27, 2018
1 parent 099960d commit d4be48e
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 0 deletions.
21 changes: 21 additions & 0 deletions SXA Storefront 1.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Sitecore Experience Accelerator Storefront (SXA Storefront) module for Sitecore XP Environment


This template deploys the SXA Storefront module into a Sitecore XP Environment. SXA Storefront requires Sitecore XC and SXA modules.

SXA Storefront 1.2 is compatible with Sitecore XP 9.0.2 and Sitecore XC 9.0.2.

## Parameters

The **deploymentId** parameter is filled in by the PowerShell script.

| Parameter | Description
-----------------------------------------------|------------------------------------------------
| location | The geographical region of the current deployment.
| siteTitle | Long title of the Storefront site.
| sqlServerLogin | The name of the administrator account for Azure SQL server that will be created.
| sqlServerPassword | The password for the administrator account for Azure SQL server.
| sxaMsDeployPackageUrl | The HTTP(s) URL of the Sitecore Commerce Experience Accelerator Web Deploy package (not an SXA Web Deploy package).
| sxaStorefrontMsDeployPackageUrl | The HTTP(s) URL of the Sitecore Commerce Experience Accelerator Storefront Web Deploy package.
| sxaHabitatCatalogMsDeployPackageUrl | The HTTP(s) URL of the Sitecore Commerce Experience Accelerator Habitat Catalog Web Deploy package.
| sxaStorefrontThemesMsDeployPackageUrl | The HTTP(s) URL of the Sitecore Commerce Experience Accelerator Storefront Themes Web Deploy package
195 changes: 195 additions & 0 deletions SXA Storefront 1.2/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"webApiVersion": "2016-08-01",
"cmWebAppNameTidy": "[toLower(trim(parameters('cmWebAppName')))]",
"cdWebAppNameTidy": "[toLower(trim(parameters('cdWebAppName')))]",
"sqlServerFqdnTidy": "[toLower(trim(parameters('sqlServerFqdn')))]",
"masterSqlDatabaseNameTidy": "[toLower(trim(parameters('masterSqlDatabaseName')))]"
},
"parameters": {
"standard": {
"type": "secureObject",
"defaultValue": {
"infrastructure": {
"sqlServerFqdn": null
},
"deploymentId": null,
"location": null,
"sqlServerLogin": null,
"sqlServerPassword": null,
"masterSqlDatabaseName": null,
"cmWebAppName": null,
"cdWebAppName": null,
"xcRefDataWebAppName": null,
"xcCollectWebAppName": null,
"xcSearchWebAppName": null,
"maOpsWebAppName": null,
"maRepWebAppName": null
}
},
"extension": {
"type": "secureObject",
"defaultValue": {
"sxaMsDeployPackageUrl": null,
"sxaStorefrontMsDeployPackageUrl": null,
"sxaHabitatCatalogMsDeployPackageUrl": null,
"sxaStorefrontThemesMsDeployPackageUrl": null
}
},
"deploymentId": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]"
},
"location": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').location, resourceGroup().location)]"
},
"sqlServerFqdn": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').infrastructure.sqlServerFqdn, concat(parameters('deploymentId'), '-sql.database.windows.net'))]"
},
"sqlServerLogin": {
"type": "string",
"minLength": 1,
"defaultValue": "[parameters('standard').sqlServerLogin]"
},
"sqlServerPassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[parameters('standard').sqlServerPassword]"
},
"masterSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').masterSqlDatabaseName, concat(parameters('deploymentId'), '-master-db'))]"
},
"cmWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').cmWebAppName, concat(parameters('deploymentId'), '-cm'))]"
},
"cdWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').cdWebAppName, concat(parameters('deploymentId'), '-cd'))]"
},
"sxaMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').sxaMsDeployPackageUrl]"
},
"sxaStorefrontMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').sxaStorefrontMsDeployPackageUrl]"
},
"sxaHabitatCatalogMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').sxaHabitatCatalogMsDeployPackageUrl]"
},
"sxaStorefrontThemesMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').sxaStorefrontThemesMsDeployPackageUrl]"
}
},

"resources": [
{
"name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('sxaMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
},
{
"packageUri": "[parameters('sxaHabitatCatalogMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
},
{
"packageUri": "[parameters('sxaStorefrontMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
},
{
"packageUri": "[parameters('sxaStorefrontThemesMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]" }
}
]
}
},
{
"name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"dependsOn": [ "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]" ],
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('sxaMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cdWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
},
{
"packageUri": "[parameters('sxaHabitatCatalogMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cdWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
},
{
"packageUri": "[parameters('sxaStorefrontMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cdWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
},
{
"packageUri": "[parameters('sxaStorefrontThemesMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cdWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]" }
}
]
}
}
]
}
39 changes: 39 additions & 0 deletions SXA Storefront 1.2/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"deploymentId": {
"value": ""
},
"location": {
"value": ""
},
"siteName": {
"value": ""
},
"siteTitle": {
"value": ""
},
"sqlServerLogin": {
"value": ""
},
"sqlServerPassword": {
"value": ""
},
"environmentName": {
"value": ""
},
"sxaMsDeployPackageUrl": {
"value": ""
},
"sxaStorefrontMsDeployPackageUrl": {
"value": ""
},
"sxaHabitatCatalogMsDeployPackageUrl": {
"value": ""
},
"sxaStorefrontThemesMsDeployPackageUrl": {
"value": ""
}
}
}

0 comments on commit d4be48e

Please sign in to comment.