From 4179aaed8ec4bdace73878ffd84dd924e6e9418d Mon Sep 17 00:00:00 2001 From: Ubuntu <ubuntu@sql0.massive.org.au> Date: Fri, 27 May 2016 03:29:36 +0000 Subject: [PATCH] add a role that just configures gluster and epel on centos to the upstream repos --- .../files/glusterfs-epel.repo | 22 +++++++++++ .../files/monashhpc_base.repo | 25 ++++++++++++ .../files/monashhpc_others.repo | 8 ++++ roles/config_repos_upstream/tasks/main.yml | 38 +++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 roles/config_repos_upstream/files/glusterfs-epel.repo create mode 100644 roles/config_repos_upstream/files/monashhpc_base.repo create mode 100644 roles/config_repos_upstream/files/monashhpc_others.repo create mode 100644 roles/config_repos_upstream/tasks/main.yml diff --git a/roles/config_repos_upstream/files/glusterfs-epel.repo b/roles/config_repos_upstream/files/glusterfs-epel.repo new file mode 100644 index 00000000..015ad0bb --- /dev/null +++ b/roles/config_repos_upstream/files/glusterfs-epel.repo @@ -0,0 +1,22 @@ +# Place this file in your /etc/yum.repos.d/ directory + +[glusterfs-epel] +name=GlusterFS is a clustered file-system capable of scaling to several petabytes. +baseurl=http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-$releasever/$basearch/ +enabled=1 +skip_if_unavailable=1 +gpgcheck=0 + +[glusterfs-noarch-epel] +name=GlusterFS is a clustered file-system capable of scaling to several petabytes. +baseurl=http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-$releasever/noarch +enabled=1 +skip_if_unavailable=1 +gpgcheck=0 + +[glusterfs-source-epel] +name=GlusterFS is a clustered file-system capable of scaling to several petabytes. - Source +baseurl=http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/epel-$releasever/SRPMS +enabled=0 +skip_if_unavailable=1 +gpgcheck=0 diff --git a/roles/config_repos_upstream/files/monashhpc_base.repo b/roles/config_repos_upstream/files/monashhpc_base.repo new file mode 100644 index 00000000..8f0d9aee --- /dev/null +++ b/roles/config_repos_upstream/files/monashhpc_base.repo @@ -0,0 +1,25 @@ +# Place this file in your /etc/yum.repos.d/ directory + +[monashhpc_base] +name=MonashHPC base repository mirrored to control the update process +baseurl=https://consistency0/centos/$releasever/os/$basearch/ +enabled=1 +sslverify=false + +[monashhpc_udpates] +name=MonashHPC base repository mirrored to control the update process +baseurl=https://consistency0/centos/$releasever/updates/$basearch/ +enabled=1 +sslverify=false + +[monashhpc_extras] +name=MonashHPC base repository mirrored to control the update process +baseurl=https://consistency0/centos/$releasever/extras/$basearch/ +enabled=1 +sslverify=false + +[monashhpc_centosplus] +name=MonashHPC base repository mirrored to control the update process +baseurl=https://consistency0/centos/$releasever/centosplus/$basearch/ +enabled=1 +sslverify=false diff --git a/roles/config_repos_upstream/files/monashhpc_others.repo b/roles/config_repos_upstream/files/monashhpc_others.repo new file mode 100644 index 00000000..e78702bf --- /dev/null +++ b/roles/config_repos_upstream/files/monashhpc_others.repo @@ -0,0 +1,8 @@ +# Place this file in your /etc/yum.repos.d/ directory + +[monashhpc_otherstuff] +name=MonashHPC base repository mirrored to control the update process +baseurl=https://consistency0/centos/hpcsystems/$releasever/$basearch/ +enabled=1 +sslverify=false +gpgcheck=0 diff --git a/roles/config_repos_upstream/tasks/main.yml b/roles/config_repos_upstream/tasks/main.yml new file mode 100644 index 00000000..2cd22542 --- /dev/null +++ b/roles/config_repos_upstream/tasks/main.yml @@ -0,0 +1,38 @@ +--- +- name: add gluster repo + copy: src=glusterfs-epel.repo dest=/etc/yum.repos.d/glusterfs-epel.repo + sudo: true + when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" + +- name: enable epel + yum: name=epel-release state='latest' + sudo: true + when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" + + +- name: Enable epel + command: yum-config-manager --enable epel + sudo: true + when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" + +# Use mate DE on systems that have moved to gnome3, since there is no gpu acceleration by default on NeCTAR openstack +# Trusty (Ubuntu 14.04 LTS) needs repos added. Wheezy (Debian Stable) gets mate from backports, Utopic (Ubuntu 14.10) Jessie (Debian testing) and Sid (Debian unstable) get it by default +- name: add repos apt + shell: "add-apt-repository -y ppa:ubuntu-mate-dev/ppa" + sudo: true + when: ansible_distribution_release == 'trusty' + +- name: add repos apt + shell: "add-apt-repository -y ppa:ubuntu-mate-dev/trusty-mate" + sudo: true + when: ansible_distribution_release == 'trusty' + +- name: add repos apt + shell: "add-apt-repository -y ppa:gluster/glusterfs-3.7" + sudo: true + when: ansible_distribution == 'Ubuntu' + +- name: apt-get update + apt: update_cache=True + sudo: true + when: ansible_os_family=="Debian" -- GitLab