Browse Source

Create group of resources for zabbix and mgmt vip

Change-Id: I15bd9d65f3730eead4c4816f7655c6f89977a886
Partial-Bug: #1478425
Bartosz Kupidura 3 years ago
parent
commit
66e007426c

+ 16
- 0
deployment_scripts/puppet/manifests/primary_controller.pp View File

@@ -0,0 +1,16 @@
1
+#
2
+#    Copyright 2015 Mirantis, Inc.
3
+#
4
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
5
+#    not use this file except in compliance with the License. You may obtain
6
+#    a copy of the License at
7
+#
8
+#         http://www.apache.org/licenses/LICENSE-2.0
9
+#
10
+#    Unless required by applicable law or agreed to in writing, software
11
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+#    License for the specific language governing permissions and limitations
14
+#    under the License.
15
+#
16
+include plugin_zabbix_snmptrapd::primary_controller

+ 3
- 0
deployment_scripts/puppet/modules/plugin_zabbix_snmptrapd/manifests/params.pp View File

@@ -29,4 +29,7 @@ class plugin_zabbix_snmptrapd::params {
29 29
     }
30 30
   }
31 31
 
32
+  $zabbix_cs_name = 'p_zabbix-server'
33
+  $vip_cs_name = 'vip__management'
34
+
32 35
 }

+ 24
- 0
deployment_scripts/puppet/modules/plugin_zabbix_snmptrapd/manifests/primary_controller.pp View File

@@ -0,0 +1,24 @@
1
+#
2
+#    Copyright 2015 Mirantis, Inc.
3
+#
4
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
5
+#    not use this file except in compliance with the License. You may obtain
6
+#    a copy of the License at
7
+#
8
+#         http://www.apache.org/licenses/LICENSE-2.0
9
+#
10
+#    Unless required by applicable law or agreed to in writing, software
11
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+#    License for the specific language governing permissions and limitations
14
+#    under the License.
15
+#
16
+class plugin_zabbix_snmptrapd::primary_controller {
17
+
18
+  include plugin_zabbix_snmptrapd::params
19
+
20
+  cs_group { 'g_zabbix':
21
+    primitives => [$plugin_zabbix_snmptrapd::params::vip_cs_name, $plugin_zabbix_snmptrapd::params::zabbix_cs_name],
22
+  }
23
+
24
+}

+ 7
- 0
tasks.yaml View File

@@ -5,3 +5,10 @@
5 5
     puppet_manifest: puppet/manifests/controller.pp
6 6
     puppet_modules: puppet/modules:/etc/puppet/modules
7 7
     timeout: 1200
8
+- role: ['primary-controller']
9
+  stage: post_deployment/8115
10
+  type: puppet
11
+  parameters:
12
+    puppet_manifest: puppet/manifests/primary_controller.pp
13
+    puppet_modules: puppet/modules:/etc/puppet/modules
14
+    timeout: 1200

Loading…
Cancel
Save