Add sample template for nagios3 element.
authorChris Krelle <nobodycam@gmail.com>
Wed, 12 Jun 2013 21:41:33 +0000 (14:41 -0700)
committerChris Krelle <nobodycam@gmail.com>
Tue, 18 Jun 2013 16:42:53 +0000 (09:42 -0700)
Change-Id: I02a80a371a8ca493f4e143def82215f33b29ac6c
Authored-by: Chris Krelle <nobodycam@gmail.com>
nagios3.yaml [new file with mode: 0644]

diff --git a/nagios3.yaml b/nagios3.yaml
new file mode 100644 (file)
index 0000000..6d86ebb
--- /dev/null
@@ -0,0 +1,81 @@
+HeatTemplateFormatVersion: '2012-12-12'
+Description: 'Nagios3'
+Parameters:
+  KeyName:
+    Description: Name of an existing EC2 KeyPair to enable SSH access to the instance
+    Type: String
+    Default: default
+  AdmWebPasswd:
+    Description: Password for nagiosadmin web admin user.
+    Type: String
+    Default: nagiosadmin
+  NovaHostIp:
+    Description: nova ip.
+    Type: String
+    Default: 192.0.2.1
+  NovaOsPassword:
+    Description: nova OS_PASSWORD.
+    Type: String
+    Default: unset
+  NovaOsUsername:
+    Description: nova OS_USERNAME.
+    Type: String
+    Default: admin
+  NovaOsTenantName:
+    Description: nova OS_TENANT_NAME.
+    Type: String
+    Default: admin
+  Nagios3ImageId:
+    Description: Nagios image.
+    Type: String
+    Default: nagios3
+  InstanceType:
+    Description: Use this flavor.
+    Type: String
+    Default: baremetal
+  InitialIpSplitKey:
+    Description: Network name from nova list to get initial ip list from.
+    Type: String
+    Default: ctlplane
+  Apache2SnakeoilPem:
+    Description: Snakeoil PEM file.
+    Type: String
+    Default: |
+      -----  BEGIN PlaceHolder...
+  Apache2SnakeoilKey:
+    Description: Snakeoil Key file.
+    Type: String
+    Default: |
+      -----  BEGIN PlaceHolder...
+Resources:
+  nagios3:
+    Metadata:
+      OpenStack::ImageBuilder::Elements: [ nagios3 ]
+      apache2:
+        snakeoil_pem:
+          Ref: Apache2SnakeoilPem
+        snakeoil_key:
+          Ref: Apache2SnakeoilKey
+      nagios3:
+        adm_web_passwd:
+          Ref: AdmWebPasswd
+        nova_host_ip:
+          Ref: NovaHostIp
+        nova_os_password:
+          Ref: NovaOsPassword
+        nova_os_username:
+          Ref: NovaOsUsername
+        nova_os_tenant_name:
+          Ref: NovaOsTenantName
+        initial_network_split_key:
+          Ref: InitialIpSplitKey
+    Type: AWS::EC2::Instance
+    Properties:
+      KeyName:
+        Ref: KeyName
+      ImageId:
+        Ref: Nagios3ImageId
+      InstanceType: {Ref: InstanceType}
+Outputs:
+    Nagios3Host:
+        Fn::GetAtt: [ nagios3 , PrivateIp ]
\ No newline at end of file