]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat templates : Cleanup README and template whitespace
authorSteven Hardy <shardy@redhat.com>
Thu, 21 Jun 2012 13:03:19 +0000 (14:03 +0100)
committerSteven Hardy <shardy@redhat.com>
Thu, 21 Jun 2012 13:05:37 +0000 (14:05 +0100)
Align README with latest templates and cleanup some whitespace issues
ref #147

Change-Id: Iad39c388806bba6497f8abf0de46c04ef7ac7e69
Signed-off-by: Steven Hardy <shardy@redhat.com>
templates/PuppetMaster_Single_Instance.template
templates/README
templates/Rails_Single_Instance.template
templates/WordPress_Single_Instance_puppet.template
templates/getting_started.template

index 63e335291733202bc2bbf625bccae4848790ebae..f52f659d9c4bfdc3549bce1abcfdefe4b53623a3 100644 (file)
@@ -1,8 +1,8 @@
 {
   "AWSTemplateFormatVersion" : "2010-09-09",
-  
+
   "Description": "Sample template to bring up Puppet Master instance that can be used to bootstrap and manage Puppet Clients. The Puppet Master is populated from an embedded template that defines the set of applications to load. **WARNING** This template creates one or more Amazon EC2 instances. You will be billed for the AWS resources used if you create a stack from this template.",
-  
+
   "Parameters" : {
     "InstanceType" : {
       "Description" : "WebServer EC2 instance type",
@@ -14,7 +14,7 @@
     "KeyName" : {
       "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the PuppetMaster",
       "Type" : "String"
-    },    
+    },
     "ContentManifest" : {
       "Default" : "/wordpress/: { include wordpress }",
       "Description" : "Manifest of roles to add to nodes.pp",
@@ -53,8 +53,8 @@
       "RHEL-6.2" : { "32" : "rhel62-i386-cfntools", "64" : "rhel62-x86_64-cfntools" },
       "RHEL-6.3" : { "32" : "rhel63-i386-cfntools", "64" : "rhel63-x86_64-cfntools" }
     }
-  }, 
-  "Resources" : {  
+  },
+  "Resources" : {
     "CFNInitUser" : {
       "Type" : "AWS::IAM::User",
       "Properties" : {
                 "mode"    : "100644",
                 "owner"   : "root",
                 "group"   : "wheel"
-              },              
+              },
               "/etc/puppet/puppet.conf" : {
                 "content" : { "Fn::Join" : ["", [
                   "[main]\n",
                 "content" : {"Fn::Join" : ["", [
                   "node basenode {\n",
                   "  include cfn\n",
-                  "}\n",            
+                  "}\n",
                   "node /^.*internal$/ inherits basenode {\n",
                   "  case $cfn_roles {\n",
-                  "    ", { "Ref" : "ContentManifest" }, "\n", 
+                  "    ", { "Ref" : "ContentManifest" }, "\n",
                   "  }\n",
                   "}\n"]]},
                 "mode"    : "100644",
                 "owner"   : "root",
-                "group"   : "wheel" 
+                "group"   : "wheel"
               },
               "/etc/puppet/manifests/site.pp" : {
                 "content" : "import \"nodes\"\n",
                 "mode"    : "100644",
                 "owner"   : "root",
-                "group"   : "wheel" 
+                "group"   : "wheel"
               }
             },
             "services" : {
-              "sysvinit" : {  
+              "sysvinit" : {
                 "puppetmaster" : {
                   "enabled" : "true",
-                  "ensureRunning" : "true"                
+                  "ensureRunning" : "true"
                 }
               }
             }
         "SecurityGroupIngress" : [
           { "IpProtocol" : "tcp", "FromPort" : "8140", "ToPort" : "8140", "CidrIp": "0.0.0.0/0"},
           { "IpProtocol" : "tcp", "FromPort": "22", "ToPort": "22", "CidrIp": "0.0.0.0/0" }
-        ]        
+        ]
       }
     },
 
       }
     }
   },
-  
+
   "Outputs" : {
     "PuppetMasterDNSName" : {
       "Value" : { "Fn::GetAtt" : [ "PuppetMasterInstance", "PrivateDnsName" ] },
     }
   }
 }
-
index 83baaf2e5bd367026a224122b50f2f65144bb3e5..e8a0f2d5b5a73791e7e5a6523db8810b94d549e2 100644 (file)
@@ -25,12 +25,14 @@ WordPress_2_Instances.template
  - Creates a two instance wordpress/mysql server
    Note: There is an instance for mysql and instance for wordpress
 
-WordPress_2_Instances_With_EBS_Volume.template
+WordPress_2_Instances_With_EBS.template
  - Creates a two instance wordpress/mysql server with persistent volume
    Note: There is an instance for mysql and instance for wordpress
 
 WordPress_Composed_Instances.template
- - Creates a two instance wordpress/mysql server. The MySQL server is loaded as a nested template from the URL of the latest MySQL_Single_Instance template on GitHub.
+ - Creates a two instance wordpress/mysql server.
+ - The MySQL server is loaded as a nested template from the URL of the latest
+   MySQL_Single_Instance template on GitHub.
    Note: There is an instance for mysql and instance for wordpress
 
 MySQL_Single_Instance.template
@@ -45,12 +47,47 @@ MySQL_Single_Instance.template
 WordPress_Single_Instance.template
  - Creates a single instance wordpress/mysql server
 
-WordPress_Single_Instance_With_EBS_Volume.template
+WordPress_Single_Instance_With_EBS.template
  - Creates a single instance wordpress/mysql server with EBS Volume
 
 WordPress_Single_Instance_With_EIP.template
  - Creates a single instance wordpress/mysql server with EIP with full security
 
+WordPress_Single_Instance_With_EBS_EIP.template
+ - Creates a single instance wordpress/mysql server with EIP with full security
+   and EBS Volume
+
+WordPress_Single_Instance_deb.template
+ - Creates a single instance wordpress/mysql server, ubuntu based template
+
+WordPress_Single_Instance_puppet.template
+ - Creates a single instance wordpress/mysql server
+ - Uses the Puppet client to install server roles
+
+WordPress_Single_Instance_With_HA.template
+ - Creates a single instance wordpress/mysql server
+ - Includes configuration to use heat HA features
+
+PuppetMaster_Single_Instance.template
+ - Sample template to bring up a Puppet Master instance
+
+WordPress_2_Instances_With_EBS_EIP.template
+ - Creates a two instance wordpress/mysql server with persistent volume
+ - EIP with full security
+   Note: There is an instance for mysql and instance for wordpress
+
+Rails_Single_Instance.template
+- Create a Ruby on Rails stack
+
+-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+- Other templates:                                                            -
+-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+
+getting_started.template
+ - Skeleton example template
+
 -------------------------------------------------------------------------------
 - END OF TEMPLATES                                                            -
 -------------------------------------------------------------------------------
index 6c5e1c0f776aa666a85869929d2a0e9025568ebc..5465c515a7635cc5fbdb4ac4699d8aebec880dde 100644 (file)
             "files" : {
               "/tmp/setup.mysql" : {
                 "content" : { "Fn::Join" : ["", [
-                 "CREATE DATABASE ", { "Ref" : "DBName" }, ";\n",
-                 "GRANT ALL PRIVILEGES ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost'\n",
-                 "IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n",
-                  "FLUSH PRIVILEGES;\n",
-                 "EXIT\n"
-                  ]]},
+                "CREATE DATABASE ", { "Ref" : "DBName" }, ";\n",
+                "GRANT ALL PRIVILEGES ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost'\n",
+                "IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n",
+                "FLUSH PRIVILEGES;\n",
+                "EXIT\n"
+                ]]},
                 "mode"  : "000644",
                 "owner" : "root",
                 "group" : "root"
index a326e5e82729cf5ff11fae5eefb9a59bb08fe715..fea908ce5d29342b0f31da774ff033f77e5f006b 100644 (file)
@@ -1,7 +1,7 @@
 TemplateFormatVersion" : "2010-09-09",
-  
+
   "Description": "Sample template to bring up WordPress using the Puppet client to install server roles. A WaitCondition is used to hold up the stack creation until the application is deployed. **WARNING** This template creates one or more Amazon EC2 instances and CloudWatch alarms. You will be billed for the AWS resources used if you create a stack from this template.",
-  
+
   "Parameters" : {
     "KeyName": {
       "Type": "String",
@@ -50,7 +50,7 @@ TemplateFormatVersion" : "2010-09-09",
       "ConstraintDescription" : "must contain only alphanumeric characters."
     }
   },
-  
+
   "Mappings" : {
     "AWSInstanceType2Arch" : {
       "t1.micro"    : { "Arch" : "64" },
@@ -78,8 +78,8 @@ TemplateFormatVersion" : "2010-09-09",
       "sa-east-1"      : { "32" : "ami-3e3be423", "64" : "ami-3c3be421", "64HVM" : "NOT_YET_SUPPORTED" }
     }
   },
-    
-  "Resources" : {  
+
+  "Resources" : {
 
     "CFNInitUser" : {
       "Type" : "AWS::IAM::User",
@@ -104,7 +104,7 @@ TemplateFormatVersion" : "2010-09-09",
       }
     },
 
-    "WebServer": {  
+    "WebServer": {
       "Type": "AWS::EC2::Instance",
       "Metadata" : {
         "AWS::CloudFormation::Init" : {
@@ -146,10 +146,10 @@ TemplateFormatVersion" : "2010-09-09",
               }
             },
             "services" : {
-              "sysvinit" : {  
+              "sysvinit" : {
                 "puppet" : {
                   "enabled" : "true",
-                  "ensureRunning" : "true"                
+                  "ensureRunning" : "true"
                 }
               }
             }
@@ -230,7 +230,7 @@ TemplateFormatVersion" : "2010-09-09",
       }
     }
   },
-  
+
   "Outputs": {
     "WebsiteURL": {
       "Value": { "Fn::Join": [ "", [ "http://", { "Fn::GetAtt": [ "WebServer", "PublicDnsName" ] }, "/wordpress" ] ] },
index dfd270eae8f86d6806b69f1e380a3284ae08c580..31acfc478e44f50adbce221d66f2f7561a737a74 100644 (file)
@@ -13,7 +13,7 @@
       "Properties" : {
         "KeyName" : { "Ref" : "KeyName" },
         "ImageId" : "F16-x86_64-cfntools",
-       "InstanceType": "m1.large",
+        "InstanceType": "m1.large",
         "UserData" : { "Fn::Base64" : "80" }
       }
     }
@@ -22,9 +22,8 @@
     "InstanceIp" : {
       "Value" : { "Fn::Join" : ["", ["ssh ec2-user@",
                                      {"Fn::GetAtt": ["MyInstance",
-                                                    "PublicIp"]}]]},
+                                     "PublicIp"]}]]},
       "Description" : "My ssh command"
     }
   }
 }
-