Skip to content

Commit

Permalink
Merge pull request Azure#2115 from philon-msft/dev/philon/templates
Browse files Browse the repository at this point in the history
Standardize artifact staging and folder structure
  • Loading branch information
Kay Singh authored Jun 16, 2016
2 parents b9ba94e + 8618760 commit 55d5712
Show file tree
Hide file tree
Showing 25 changed files with 1,221 additions and 1,223 deletions.
415 changes: 212 additions & 203 deletions elasticsearch/azuredeploy.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions elasticsearch/build/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gulp.task('datatemplates', function() {
2,4,8,16
];

// This is currently in YAML and an experiment in working with tempaltes in YAML form
// This is currently in YAML and an experiment in working with templates in YAML form
var dataTemplate = yaml.load('../tmpl/data-nodes.yml');

var dataDiskTemplate = JSON.stringify(_.find(dataTemplate.resources,
Expand All @@ -55,7 +55,7 @@ gulp.task('datatemplates', function() {
).properties.storageProfile.dataDisks;

// write a zero disk template
fs.writeFileSync('../data-nodes-0disk-resources.json', JSON.stringify(dataTemplate, null, ' '));
fs.writeFileSync('../nestedtemplates/data-nodes-0disk-resources.json', JSON.stringify(dataTemplate, null, ' '));

//Create a template for each disk size defined
_.forEach(sizes, function(disks) {
Expand All @@ -70,7 +70,7 @@ gulp.task('datatemplates', function() {
{type: 'Microsoft.Compute/virtualMachines'}
).properties.storageProfile.dataDisks = dataDisks;

fs.writeFileSync('../data-nodes-' + disks + 'disk-resources.json', JSON.stringify(dataTemplate, null, ' '));
fs.writeFileSync('../nestedtemplates/data-nodes-' + disks + 'disk-resources.json', JSON.stringify(dataTemplate, null, ' '));
});
});

Expand All @@ -95,7 +95,7 @@ gulp.task('mocks', ['datatemplates'], function() {

_.forEach(templates, function(resource) {
// create and write a mock for each of these used for testing
var source = JSON.parse(fs.readFileSync('../' + resource + '-resources.json', 'utf8'));
var source = JSON.parse(fs.readFileSync('../nestedtemplates/' + resource + '-resources.json', 'utf8'));

source.variables = {};
source.resources = [];
Expand Down
168 changes: 0 additions & 168 deletions elasticsearch/client-nodes-resources.json

This file was deleted.

49 changes: 0 additions & 49 deletions elasticsearch/empty-resources.json

This file was deleted.

Loading

0 comments on commit 55d5712

Please sign in to comment.