Merge "Some Pike support to Browbeat Playbooks."
This commit is contained in:
commit
b2f2d2065b
@ -3,12 +3,6 @@
|
|||||||
# Playbook to install Browbeat (Rally + Shaker + PerfKitBenchmarker) on undercloud
|
# Playbook to install Browbeat (Rally + Shaker + PerfKitBenchmarker) on undercloud
|
||||||
#
|
#
|
||||||
|
|
||||||
- hosts: controller
|
|
||||||
remote_user: "{{ host_remote_user }}"
|
|
||||||
roles:
|
|
||||||
- no-sshd-dns
|
|
||||||
- shaker-check
|
|
||||||
|
|
||||||
- hosts: browbeat
|
- hosts: browbeat
|
||||||
remote_user: "{{ browbeat_user }}"
|
remote_user: "{{ browbeat_user }}"
|
||||||
roles:
|
roles:
|
||||||
@ -23,7 +17,7 @@
|
|||||||
- images
|
- images
|
||||||
environment: "{{proxy_env}}"
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: compute
|
- hosts: controller, compute
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
roles:
|
roles:
|
||||||
- no-sshd-dns
|
- no-sshd-dns
|
||||||
|
@ -145,7 +145,7 @@
|
|||||||
- name: (Controller) Allow httpd to listen to port ({{apache_controller_mod_status_port}})
|
- 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}}"
|
shell: "/usr/sbin/semanage port -m -t http_port_t -p tcp {{apache_controller_mod_status_port}}"
|
||||||
become: true
|
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
|
- name: Restart Apache
|
||||||
service:
|
service:
|
||||||
@ -260,11 +260,12 @@
|
|||||||
register: collectd_permissive
|
register: collectd_permissive
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
when: "ansible_selinux['status'] == 'enabled'"
|
||||||
|
|
||||||
- name: Set permissive for collectd
|
- name: Set permissive for collectd
|
||||||
command: /sbin/semanage permissive -a collectd_t
|
command: /sbin/semanage permissive -a collectd_t
|
||||||
become: true
|
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
|
# Additional policy bits may be needed for exec
|
||||||
@ -277,6 +278,7 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
become: true
|
become: true
|
||||||
|
when: "ansible_selinux['status'] == 'enabled'"
|
||||||
|
|
||||||
- name: Check for collectd custom
|
- name: Check for collectd custom
|
||||||
shell: /sbin/semodule -l | grep -q custom-collectd
|
shell: /sbin/semodule -l | grep -q custom-collectd
|
||||||
@ -284,11 +286,12 @@
|
|||||||
register: collectd_custom
|
register: collectd_custom
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
when: "ansible_selinux['status'] == 'enabled'"
|
||||||
|
|
||||||
- name: Set custom policy for collectd
|
- name: Set custom policy for collectd
|
||||||
command: /sbin/semodule -i /root/custom-collectd.pp
|
command: /sbin/semodule -i /root/custom-collectd.pp
|
||||||
become: true
|
become: true
|
||||||
when: collectd_custom.rc != 0
|
when: "ansible_selinux['status'] == 'enabled' and collectd_custom.rc != 0"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start collectd service
|
# Start collectd service
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
# Installed by Browbeat Ansible Installer
|
# Installed by Browbeat Ansible Installer
|
||||||
|
|
||||||
{% if 'undercloud' in group_names %}
|
|
||||||
LoadModule status_module modules/mod_status.so
|
LoadModule status_module modules/mod_status.so
|
||||||
|
|
||||||
|
{% if 'undercloud' in group_names %}
|
||||||
Listen {{apache_undercloud_mod_status_port}}
|
Listen {{apache_undercloud_mod_status_port}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if 'controller' in group_names %}
|
{% if 'controller' in group_names %}
|
||||||
|
@ -359,27 +359,27 @@
|
|||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"refId": "A",
|
"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",
|
"refId": "B",
|
||||||
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-used), 'Used')"
|
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-used), 'Used')"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"refId": "C",
|
"refId": "C",
|
||||||
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-buffered), 'Buffered')"
|
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-buffered), 'Buffered')"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"refId": "D",
|
"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",
|
"refId": "E",
|
||||||
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-cached), 'Cached')"
|
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-cached), 'Cached')"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"refId": "F",
|
"refId": "F",
|
||||||
"target": "alias(sumSeries($Cloud.overcloud-compute-*.memory.memory-free), 'Free')"
|
"target": "alias(sumSeries($Cloud.overcloud-*compute-*.memory.memory-free), 'Free')"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thresholds": [],
|
"thresholds": [],
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user