Merge "Some Pike support to Browbeat Playbooks."

This commit is contained in:
Jenkins 2017-08-03 22:10:08 +00:00 committed by Gerrit Code Review
commit b2f2d2065b
5 changed files with 14 additions and 28 deletions

View File

@ -3,12 +3,6 @@
# Playbook to install Browbeat (Rally + Shaker + PerfKitBenchmarker) on undercloud
#
- hosts: controller
remote_user: "{{ host_remote_user }}"
roles:
- no-sshd-dns
- shaker-check
- hosts: browbeat
remote_user: "{{ browbeat_user }}"
roles:
@ -23,7 +17,7 @@
- images
environment: "{{proxy_env}}"
- hosts: compute
- hosts: controller, compute
remote_user: "{{ host_remote_user }}"
roles:
- no-sshd-dns

View File

@ -145,7 +145,7 @@
- name: (Controller) Allow httpd to listen to port ({{apache_controller_mod_status_port}})
shell: "/usr/sbin/semanage port -m -t http_port_t -p tcp {{apache_controller_mod_status_port}}"
become: true
when: "('controller' in group_names and {{apache_controller_collectd_plugin}} == true)"
when: "(ansible_selinux['status'] == 'enabled') and ('controller' in group_names and {{apache_controller_collectd_plugin}} == true)"
- name: Restart Apache
service:
@ -260,11 +260,12 @@
register: collectd_permissive
ignore_errors: true
changed_when: false
when: "ansible_selinux['status'] == 'enabled'"
- name: Set permissive for collectd
command: /sbin/semanage permissive -a collectd_t
become: true
when: collectd_permissive.rc != 0
when: "ansible_selinux['status'] == 'enabled' and collectd_permissive.rc != 0"
#
# Additional policy bits may be needed for exec
@ -277,6 +278,7 @@
group: root
mode: 0644
become: true
when: "ansible_selinux['status'] == 'enabled'"
- name: Check for collectd custom
shell: /sbin/semodule -l | grep -q custom-collectd
@ -284,11 +286,12 @@
register: collectd_custom
ignore_errors: true
changed_when: false
when: "ansible_selinux['status'] == 'enabled'"
- name: Set custom policy for collectd
command: /sbin/semodule -i /root/custom-collectd.pp
become: true
when: collectd_custom.rc != 0
when: "ansible_selinux['status'] == 'enabled' and collectd_custom.rc != 0"
#
# Start collectd service

View File

@ -1,8 +1,8 @@
# Installed by Browbeat Ansible Installer
{% if 'undercloud' in group_names %}
LoadModule status_module modules/mod_status.so
{% if 'undercloud' in group_names %}
Listen {{apache_undercloud_mod_status_port}}
{% endif %}
{% if 'controller' in group_names %}

View File

@ -359,27 +359,27 @@
"targets": [
{
"refId": "A",
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-slab_unrecl), 'Slab Unrecl')"
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-slab_unrecl), 'Slab Unrecl')"
},
{
"refId": "B",
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-used), 'Used')"
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-used), 'Used')"
},
{
"refId": "C",
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-buffered), 'Buffered')"
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-buffered), 'Buffered')"
},
{
"refId": "D",
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-slab_recl), 'Slab Recl')"
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-slab_recl), 'Slab Recl')"
},
{
"refId": "E",
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-cached), 'Cached')"
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-cached), 'Cached')"
},
{
"refId": "F",
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-free), 'Free')"
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-free), 'Free')"
}
],
"thresholds": [],

View File

@ -1,11 +0,0 @@
---
#
# Tasks to check requirements for installing shaker
#
- name: Check for heat
service: name={{ item }} state=started
become: true
with_items:
- openstack-heat-api
- openstack-heat-engine