Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ovirt-engine-metrics] WIP #148

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions roles/ovirt-engine-metrics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
oVirt Engine Metrics
====================

Setting up engine metrics

Target systems
--------------

* engine

Requirements
------------

Preinstalled clean environment with configured repositories.

Dependencies
------------

* TODO

Assumptions
-----------

- allow connections on the following ports/protocols: icmp (for ping), tcp ports 22, 80, 443, 8443 (openshift console), 24284 (secure_forward) on the VM where metrics is to be setup, which would be seperate from where ovirt-engine is installed
- you have `root` ssh access, or a user who can ssh into without password

Author
------

Tasdik Rahman
[email protected]
1 change: 1 addition & 0 deletions roles/ovirt-engine-metrics/files/999-cloud-init-requiretty
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Defaults !requiretty
32 changes: 32 additions & 0 deletions roles/ovirt-engine-metrics/files/viaq.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[centos-openshift-origin]
name=CentOS OpenShift Origin
baseurl=http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/
enabled=1
gpgcheck=1
gpgkey=https://tdawson.fedorapeople.org/centos/RPM-GPG-KEY-CentOS-SIG-PaaS

[centos-openshift-common-candidate]
name=CentOS OpenShift Common Candidate
baseurl=https://cbs.centos.org/repos/paas7-openshift-common-candidate/x86_64/os/
enabled=0
gpgcheck=0

[centos-openshift-origin14-candidate]
name=CentOS OpenShift Origin14 Candidate
baseurl=http://cbs.centos.org/repos/paas7-openshift-origin14-candidate/x86_64/os/
enabled=1
gpgcheck=0
gpgkey=https://tdawson.fedorapeople.org/centos/RPM-GPG-KEY-CentOS-SIG-PaaS

[centos-openshift-origin15-candidate]
name=CentOS OpenShift Origin15 Candidate
baseurl=http://cbs.centos.org/repos/paas7-openshift-origin15-candidate/x86_64/os/
enabled=1
gpgcheck=0
gpgkey=https://tdawson.fedorapeople.org/centos/RPM-GPG-KEY-CentOS-SIG-PaaS

[centos-openshift-origin36-candidate]
name=CentOS OpenShift Origin36 Candidate
baseurl=http://cbs.centos.org/repos/paas7-openshift-origin36-candidate/x86_64/os
enabled=1
gpgcheck=0
36 changes: 36 additions & 0 deletions roles/ovirt-engine-metrics/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
- name: Copy via.q repo file and "999-cloud-init-requiretty"
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
with_items:
- { src: "viaq.repo", dest: "/etc/yum.repos.d/" }
- { src: "999-cloud-init-requiretty", dest: "/etc/sudoers.d/" }

- name: Install dockerpy and iptables-service
yum:
name: "{{ item }}"
state: installed
with_items:
- "docker"
- "iptables-services"

- name: Install openshift-origin from the repos
yum:
name: "{{ item }}"
state: installed
with_items:
- "openshift-ansible"
- "openshift-ansible-callback-plugins"
- "openshift-ansible-filter-plugins"
- "openshift-ansible-lookup-plugins"
- "openshift-ansible-playbooks"
- "openshift-ansible-roles"

- name: Unmask NetworkManager and start the service
command: systemctl {{ item }} NetworkManager
with_items:
- "unmask"
- "start"

# WIP