Fix for proxy environment vars
* Ignore errors on install of sysstat * Fixes for ELK playbook (if SELinux is disabled) * Doc updates Change-Id: I4ac94e3a3cb5b2558a727e8761e2506ba0b62df2
This commit is contained in:
parent
d901fd4734
commit
41681ebcbd
@ -21,6 +21,7 @@
|
|||||||
- shaker
|
- shaker
|
||||||
- flavors
|
- flavors
|
||||||
- images
|
- images
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: compute
|
- hosts: compute
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
- epel
|
- epel
|
||||||
- collectd-generic
|
- collectd-generic
|
||||||
tags: baremetal
|
tags: baremetal
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: guest
|
- hosts: guest
|
||||||
remote_user: root
|
remote_user: root
|
||||||
@ -27,6 +28,7 @@
|
|||||||
- epel
|
- epel
|
||||||
- collectd-generic
|
- collectd-generic
|
||||||
tags: guest
|
tags: guest
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: graphite
|
- hosts: graphite
|
||||||
remote_user: root
|
remote_user: root
|
||||||
@ -36,3 +38,4 @@
|
|||||||
- epel
|
- epel
|
||||||
- collectd-generic
|
- collectd-generic
|
||||||
tags: graphite
|
tags: graphite
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
when: not collectd_undercloud
|
when: not collectd_undercloud
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: undercloud
|
tags: undercloud
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: controller
|
- hosts: controller
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
@ -48,6 +49,7 @@
|
|||||||
when: not collectd_controller
|
when: not collectd_controller
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: controller
|
tags: controller
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: blockstorage
|
- hosts: blockstorage
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
@ -65,6 +67,7 @@
|
|||||||
when: not collectd_blockstorage
|
when: not collectd_blockstorage
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: blockstorage
|
tags: blockstorage
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: objectstorage
|
- hosts: objectstorage
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
@ -82,6 +85,7 @@
|
|||||||
when: not collectd_objectstorage
|
when: not collectd_objectstorage
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: objectstorage
|
tags: objectstorage
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: cephstorage
|
- hosts: cephstorage
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
@ -99,6 +103,7 @@
|
|||||||
when: not collectd_cephstorage
|
when: not collectd_cephstorage
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: cephstorage
|
tags: cephstorage
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: compute
|
- hosts: compute
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
@ -116,3 +121,4 @@
|
|||||||
when: not collectd_compute
|
when: not collectd_compute
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: compute
|
tags: compute
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -7,3 +7,4 @@
|
|||||||
remote_user: root
|
remote_user: root
|
||||||
roles:
|
roles:
|
||||||
- { role: filebeat }
|
- { role: filebeat }
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -6,8 +6,10 @@
|
|||||||
remote_user: "{{ local_remote_user }}"
|
remote_user: "{{ local_remote_user }}"
|
||||||
roles:
|
roles:
|
||||||
- { role: filebeat }
|
- { role: filebeat }
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: controller,compute,cephstorage
|
- hosts: controller,compute,cephstorage
|
||||||
remote_user: "{{ host_remote_user }}"
|
remote_user: "{{ host_remote_user }}"
|
||||||
roles:
|
roles:
|
||||||
- { role: filebeat }
|
- { role: filebeat }
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -13,8 +13,10 @@
|
|||||||
- { role: nginx }
|
- { role: nginx }
|
||||||
- { role: curator, when: install_curator_tool }
|
- { role: curator, when: install_curator_tool }
|
||||||
- { role: kibana }
|
- { role: kibana }
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
remote_user: "{{ local_remote_user }}"
|
connection: local
|
||||||
roles:
|
roles:
|
||||||
- { role: es-template }
|
- { role: es-template }
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -63,3 +63,4 @@
|
|||||||
process_list_name: Graphite
|
process_list_name: Graphite
|
||||||
roles:
|
roles:
|
||||||
- grafana-dashboards
|
- grafana-dashboards
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -8,3 +8,4 @@
|
|||||||
roles:
|
roles:
|
||||||
- epel
|
- epel
|
||||||
- grafana
|
- grafana
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -8,3 +8,4 @@
|
|||||||
roles:
|
roles:
|
||||||
- epel
|
- epel
|
||||||
- graphite
|
- graphite
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -74,6 +74,14 @@ images:
|
|||||||
# DNS Server to add
|
# DNS Server to add
|
||||||
dns_server: 8.8.8.8
|
dns_server: 8.8.8.8
|
||||||
|
|
||||||
|
# Proxy Settings
|
||||||
|
proxy_env: {}
|
||||||
|
# Example use:
|
||||||
|
# proxy_env:
|
||||||
|
# http_proxy: http://proxy.example.com:80
|
||||||
|
# https_proxy: http://proxy.example.com:80
|
||||||
|
# no_proxy: localhost, example.sat6.com, graphite-server.com, elk-server.com
|
||||||
|
|
||||||
# Disables dns lookup by overcloud sshd process
|
# Disables dns lookup by overcloud sshd process
|
||||||
disable_ssh_dns: false
|
disable_ssh_dns: false
|
||||||
|
|
||||||
@ -82,9 +90,10 @@ epel7_rpm: https://download.fedoraproject.org/pub/epel/epel-release-latest-7.noa
|
|||||||
epel7_rpmkey: https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
epel7_rpmkey: https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
||||||
|
|
||||||
# Extra Repos to add during collectd install
|
# Extra Repos to add during collectd install
|
||||||
repos:
|
repos: {}
|
||||||
rhel-7-server-beta:
|
# repos:
|
||||||
baseurl: http://walkabout.foobar.com/released/RHEL-7/7.3-Beta/Server/x86_64/os/
|
# rhel-7-server-beta:
|
||||||
|
# baseurl: http://walkabout.foobar.com/released/RHEL-7/7.3-Beta/Server/x86_64/os/
|
||||||
|
|
||||||
# Host where connmond will be running
|
# Host where connmond will be running
|
||||||
connmon_host: 192.0.2.1
|
connmon_host: 192.0.2.1
|
||||||
|
@ -24,3 +24,4 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- kibana-visualization
|
- kibana-visualization
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
state: yes
|
state: yes
|
||||||
persistent: yes
|
persistent: yes
|
||||||
become: true
|
become: true
|
||||||
|
when: "ansible_selinux['status'] == 'enabled'"
|
||||||
|
|
||||||
- name: Allow httpd to serve content in "{{ home_dir }}"
|
- name: Allow httpd to serve content in "{{ home_dir }}"
|
||||||
file:
|
file:
|
||||||
@ -53,10 +54,11 @@
|
|||||||
shell: "/usr/sbin/semanage port -m -t http_port_t -p tcp {{browbeat_results_port}}"
|
shell: "/usr/sbin/semanage port -m -t http_port_t -p tcp {{browbeat_results_port}}"
|
||||||
become: true
|
become: true
|
||||||
register: seport_modified
|
register: seport_modified
|
||||||
|
when: "ansible_selinux['status'] == 'enabled'"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
# If port can not be modified, it likely has to be added (Ex. Port 9002)
|
# If port can not be modified, it likely has to be added (Ex. Port 9002)
|
||||||
- name: Allow httpd to listen to port ({{browbeat_results_port}}) via add
|
- name: Allow httpd to listen to port ({{browbeat_results_port}}) via add
|
||||||
shell: "/usr/sbin/semanage port -a -t http_port_t -p tcp {{browbeat_results_port}}"
|
shell: "/usr/sbin/semanage port -a -t http_port_t -p tcp {{browbeat_results_port}}"
|
||||||
become: true
|
become: true
|
||||||
when: seport_modified.rc != 0
|
when: "(ansible_selinux['status'] == 'enabled') and (seport_modified.rc != 0)"
|
||||||
|
@ -31,11 +31,14 @@
|
|||||||
|
|
||||||
# Iostat plugin requires sysstat since shelling iostat for stats, Also it is
|
# Iostat plugin requires sysstat since shelling iostat for stats, Also it is
|
||||||
# handy to have sysstat.
|
# handy to have sysstat.
|
||||||
|
# (akrzos) Ignore errors on install since we attempt to install without
|
||||||
|
# checking any vars if we really want/require sysstat
|
||||||
- name: (Iostat python plugin) Install sysstat
|
- name: (Iostat python plugin) Install sysstat
|
||||||
yum:
|
yum:
|
||||||
name: sysstat
|
name: sysstat
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: (Keystone Token Count) Install libdbi mysql driver
|
- name: (Keystone Token Count) Install libdbi mysql driver
|
||||||
yum:
|
yum:
|
||||||
|
@ -95,6 +95,7 @@
|
|||||||
line: '-A INPUT -p tcp -m tcp --dport {{shaker_port}} -j ACCEPT'
|
line: '-A INPUT -p tcp -m tcp --dport {{shaker_port}} -j ACCEPT'
|
||||||
insertbefore: '^-A INPUT -i lo'
|
insertbefore: '^-A INPUT -i lo'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
create: yes
|
||||||
become: true
|
become: true
|
||||||
when: firewalld_in_use.rc != 0 and firewalld_is_active.rc != 0 and iptables_shaker_port_exists.stdout|int == 0
|
when: firewalld_in_use.rc != 0 and firewalld_is_active.rc != 0 and iptables_shaker_port_exists.stdout|int == 0
|
||||||
register: iptables_needs_restart
|
register: iptables_needs_restart
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
# SELinux boolean for nginx
|
# SELinux boolean for nginx
|
||||||
- name: Apply SELinux boolean httpd_can_network_connect
|
- name: Apply SELinux boolean httpd_can_network_connect
|
||||||
seboolean: name=httpd_can_network_connect state=yes persistent=yes
|
seboolean: name=httpd_can_network_connect state=yes persistent=yes
|
||||||
|
when: "ansible_selinux['status'] == 'enabled'"
|
||||||
|
|
||||||
# create /etc/nginx/conf.d/ directory
|
# create /etc/nginx/conf.d/ directory
|
||||||
- name: Create nginx directory structure
|
- name: Create nginx directory structure
|
||||||
|
@ -7,3 +7,4 @@
|
|||||||
roles:
|
roles:
|
||||||
- epel
|
- epel
|
||||||
- statsd-install
|
- statsd-install
|
||||||
|
environment: "{{proxy_env}}"
|
||||||
|
@ -270,6 +270,10 @@ Check network connectivity
|
|||||||
[browbeat1@browbeatvm ~]$ scp stack@undercloud-1:/home/stack/overcloudrc .
|
[browbeat1@browbeatvm ~]$ scp stack@undercloud-1:/home/stack/overcloudrc .
|
||||||
overcloudrc 100% 553 0.5KB/s 00:00
|
overcloudrc 100% 553 0.5KB/s 00:00
|
||||||
|
|
||||||
|
.. note:: In SSL environments, you must copy the certificate over and
|
||||||
|
check that the "OS_CA_CERT" variable is set correctly to the copied
|
||||||
|
certificate location
|
||||||
|
|
||||||
5. Install RPM requirements
|
5. Install RPM requirements
|
||||||
|
|
||||||
::
|
::
|
||||||
@ -289,8 +293,7 @@ Check network connectivity
|
|||||||
Receiving objects: 100% (7425/7425), 5.23 MiB | 0 bytes/s, done.
|
Receiving objects: 100% (7425/7425), 5.23 MiB | 0 bytes/s, done.
|
||||||
Resolving deltas: 100% (4280/4280), done.
|
Resolving deltas: 100% (4280/4280), done.
|
||||||
|
|
||||||
7. Generate hosts, ssh-config, and retrieve heat-admin-id_rsa. Then uncomment
|
7. Generate hosts, ssh-config, and retrieve heat-admin-id_rsa.
|
||||||
"localhost" under Browbeat Hosts Group
|
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
@ -312,6 +315,10 @@ localhost rather than the undercloud.
|
|||||||
In this case, adjust browbeat_user, iptables_file and dns_server. Each
|
In this case, adjust browbeat_user, iptables_file and dns_server. Each
|
||||||
environment is different and thus your configuration options will vary.
|
environment is different and thus your configuration options will vary.
|
||||||
|
|
||||||
|
.. note:: If you require a proxy to get outside your network, you must
|
||||||
|
configure http_proxy, https_proxy, no_proxy variables in the proxy_env
|
||||||
|
dictionary in install/group_vars/all.yml
|
||||||
|
|
||||||
9. Run Browbeat install playbook
|
9. Run Browbeat install playbook
|
||||||
|
|
||||||
::
|
::
|
||||||
@ -446,7 +453,7 @@ Installation
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
[root@dhcp23-93 ~]# yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
[root@dhcp23-93 ~]# yum install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||||
...
|
...
|
||||||
[root@dhcp23-93 ~]# yum install -y ansible git
|
[root@dhcp23-93 ~]# yum install -y ansible git
|
||||||
|
|
||||||
@ -499,6 +506,9 @@ Content of hosts file should be following
|
|||||||
Depending on the environment you may need to edit more than just the following
|
Depending on the environment you may need to edit more than just the following
|
||||||
variables - graphite_host and grafana_host
|
variables - graphite_host and grafana_host
|
||||||
|
|
||||||
|
.. note:: If you require a proxy to get outside your network, you must
|
||||||
|
configure http_proxy, https_proxy, no_proxy variables in the proxy_env
|
||||||
|
dictionary in install/group_vars/all.yml
|
||||||
|
|
||||||
7. Install Carbon and Graphite via Ansible playbook
|
7. Install Carbon and Graphite via Ansible playbook
|
||||||
|
|
||||||
@ -578,7 +588,7 @@ Installation
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
[root@dhcp23-93 ~]# yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
[root@dhcp23-93 ~]# yum install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||||
...
|
...
|
||||||
[root@dhcp23-93 ~]# yum install -y ansible git
|
[root@dhcp23-93 ~]# yum install -y ansible git
|
||||||
|
|
||||||
@ -632,6 +642,9 @@ variables - es_ip
|
|||||||
If you are deploying using a machine that is not an OSP undercloud, be sure to edit
|
If you are deploying using a machine that is not an OSP undercloud, be sure to edit
|
||||||
the home_dir/browbeat_path to match its actual path.
|
the home_dir/browbeat_path to match its actual path.
|
||||||
|
|
||||||
|
.. note:: If you require a proxy to get outside your network, you must
|
||||||
|
configure http_proxy, https_proxy, no_proxy variables in the proxy_env
|
||||||
|
dictionary in install/group_vars/all.yml
|
||||||
|
|
||||||
7. Install ELK via Ansible playbook
|
7. Install ELK via Ansible playbook
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user