-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.yml
63 lines (56 loc) · 2.28 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Gather variables for each operating system
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
- "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}.yml"
tags:
- always
- name: Fail if our required secrets are not present
fail:
msg: "Please set the {{ item }} variable prior to applying this role."
when: (item is undefined) or (item is none)
with_items: "{{ ceilometer_required_secrets }}"
tags:
- always
- include: ceilometer_pre_install.yml
tags:
- ceilometer-install
- include: ceilometer_install.yml
tags:
- ceilometer-install
- include: ceilometer_post_install.yml
tags:
- ceilometer-config
- include: ceilometer_init_common.yml
tags:
- ceilometer-config
- include: ceilometer_service_setup.yml
when:
# The ceilometer_api inventory group is deprecated, but we need this
# conditional here to pass gate tests until the integrated repo
# changes are made.
# TODO: (alextricity25) Remove this conditional once the integrated
# repo changes have been made https://review.openstack.org/#/c/438740
- groups['ceilometer_api'] is defined and inventory_hostname == groups['ceilometer_api'][0]
# ceilometer_central is the new ceilometer container. These inventory
# changes are going to be made in the integrated repo
- groups['ceilometer_central'] is defined and inventory_hostname == groups['ceilometer_central'][0]
tags:
- ceilometer-config