Skip to content

Commit

Permalink
Merge "Improve collectd install and browbeat-results"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 23, 2017
2 parents 8f37397 + 386cdbc commit 501904d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
7 changes: 0 additions & 7 deletions ansible/install/roles/browbeat-results/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
# Browbeat Results handlers
#

- name: start httpd
service:
name: httpd
state: started
enabled: true
become: true

- name: restart httpd
service:
name: httpd
Expand Down
9 changes: 7 additions & 2 deletions ansible/install/roles/browbeat-results/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
name: httpd
state: present
become: true
notify:
- start httpd

- name: Remove welcome.conf if it exists
file:
Expand Down Expand Up @@ -62,3 +60,10 @@
shell: "/usr/sbin/semanage port -a -t http_port_t -p tcp {{browbeat_results_port}}"
become: true
when: "(ansible_selinux['status'] == 'enabled') and (seport_modified.rc != 0)"

- name: Start httpd
service:
name: httpd
state: started
enabled: true
become: true
10 changes: 5 additions & 5 deletions ansible/install/roles/collectd-openstack/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
when: "(('controller' in group_names and {{rabbitmq_controller_collectd_plugin}} == true and '{{inventory_hostname}}' == groups['controller'][0]) or ('undercloud' in group_names and {{rabbitmq_undercloud_collectd_plugin}} == true))"

- name: Enable Rabbitmq management plugin
command: rabbitmq-plugins enable rabbitmq_management
command: /sbin/rabbitmq-plugins enable rabbitmq_management
become: true
when: "(('controller' in group_names and {{rabbitmq_controller_collectd_plugin}} == true and '{{inventory_hostname}}' == groups['controller'][0]) or ('undercloud' in group_names and {{rabbitmq_undercloud_collectd_plugin}} == true))"

Expand Down Expand Up @@ -240,14 +240,14 @@
# Configure selinux bits
#
- name: Check for collectd permissive
shell: semodule -l | grep -q permissive_collectd_t
shell: /sbin/semodule -l | grep -q permissive_collectd_t
become: true
register: collectd_permissive
ignore_errors: true
changed_when: false

- name: Set permissive for collectd
command: semanage permissive -a collectd_t
command: /sbin/semanage permissive -a collectd_t
become: true
when: collectd_permissive.rc != 0

Expand All @@ -264,14 +264,14 @@
become: true

- name: Check for collectd custom
shell: semodule -l | grep -q custom-collectd
shell: /sbin/semodule -l | grep -q custom-collectd
become: true
register: collectd_custom
ignore_errors: true
changed_when: false

- name: Set custom policy for collectd
command: semodule -i /root/custom-collectd.pp
command: /sbin/semodule -i /root/custom-collectd.pp
become: true
when: collectd_custom.rc != 0

Expand Down

0 comments on commit 501904d

Please sign in to comment.