diff --git a/roles/ovirt-engine-metrics/README.md b/roles/ovirt-engine-metrics/README.md new file mode 100644 index 0000000..ee6211d --- /dev/null +++ b/roles/ovirt-engine-metrics/README.md @@ -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 +tasdik95@gmail.com diff --git a/roles/ovirt-engine-metrics/files/999-cloud-init-requiretty b/roles/ovirt-engine-metrics/files/999-cloud-init-requiretty new file mode 100644 index 0000000..31aa9d5 --- /dev/null +++ b/roles/ovirt-engine-metrics/files/999-cloud-init-requiretty @@ -0,0 +1 @@ +Defaults !requiretty diff --git a/roles/ovirt-engine-metrics/files/viaq.repo b/roles/ovirt-engine-metrics/files/viaq.repo new file mode 100644 index 0000000..0b5cfd5 --- /dev/null +++ b/roles/ovirt-engine-metrics/files/viaq.repo @@ -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 diff --git a/roles/ovirt-engine-metrics/tasks/main.yml b/roles/ovirt-engine-metrics/tasks/main.yml new file mode 100644 index 0000000..df89c03 --- /dev/null +++ b/roles/ovirt-engine-metrics/tasks/main.yml @@ -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