Commit 9de3cc25 authored by Paschalis Korosoglou's avatar Paschalis Korosoglou
Browse files

Enable prod or devel repositories conditionally

parent ff96548b
--- ---
# Variable enabled_argo_repo specifies which RPM repository to use.
# To use the development repository set its value to argo-devel
enabled_argo_repo: argo-prod
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- name: Install avro from ar project - name: Install avro from ar project
tags: ar-packages tags: ar-packages
yum: name=avro state=present yum: name=avro state=present enablerepo={{ enabled_argo_repo }}
- name: Install python-pip - name: Install python-pip
tags: ar-packages tags: ar-packages
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
- name: Install consumer from ar project - name: Install consumer from ar project
tags: ar-packages tags: ar-packages
yum: name=argo-egi-consumer state=latest yum: name=argo-egi-consumer state=latest enablerepo={{ enabled_argo_repo }}
notify: restart consumer notify: restart consumer
- name: Consumer configuration - name: Consumer configuration
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
- name: Install argo-egi-connectors from ar project - name: Install argo-egi-connectors from ar project
tags: ar-packages tags: ar-packages
yum: name=argo-egi-connectors state=latest yum: name=argo-egi-connectors state=latest enablerepo={{ enabled_argo_repo }}
- name: Configure EGI connectors - name: Configure EGI connectors
tags: connectors_config tags: connectors_config
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
- name: Install ar-compute from ar project - name: Install ar-compute from ar project
tags: ar-packages tags: ar-packages
yum: name=ar-compute state=latest yum: name=ar-compute state=latest enablerepo={{ enabled_argo_repo }}
- name: Configure ar-compute stuff 1 - name: Configure ar-compute stuff 1
tags: compute_config tags: compute_config
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
- name: Install ar-data-retention from ar project - name: Install ar-data-retention from ar project
tags: ar-data-retention tags: ar-data-retention
yum: name=ar-data-retention state=latest yum: name=ar-data-retention state=latest enablerepo={{ enabled_argo_repo }}
- name: Parametrize data retention policies - name: Parametrize data retention policies
tags: data_retention tags: data_retention
......
--- ---
epel_release: http://ftp.ntua.gr/pub/linux/fedora-epel/6/i386/epel-release-6-8.noarch.rpm epel_release: http://ftp.ntua.gr/pub/linux/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
arstats_release: http://rpm.hellasgrid.gr/mash/centos6-arstats/i386/ar-release-1.0.0-3.el6.noarch.rpm
[argo-prod]
name=ARGO Product Repository
baseurl=http://rpm.hellasgrid.gr/mash/centos6-arstats/$basearch
enabled=0
gpgcheck=0
[argo-devel]
name=ARstats Development Repository
baseurl=http://rpm.hellasgrid.gr/mash/centos6-arstats-devel/$basearch
enabled=0
gpgcheck=0
\ No newline at end of file
...@@ -5,9 +5,11 @@ ...@@ -5,9 +5,11 @@
state=present state=present
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6' when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6'
- name: Install arstats repo files - name: Install argo repository definitions
yum: name={{ arstats_release }} tags: argo_repo
state=present copy: src=etc/yum.repos.d/argo.repo
dest=/etc/yum.repos.d/argo.repo backup=no
owner=root group=root mode=0644
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6' when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6'
- name: Install mongodb repo - name: Install mongodb repo
......
--- ---
- name: Install argo-web-api package - name: Install argo-web-api package
yum: name=argo-web-api state=latest yum: name=argo-web-api state=latest enablerepo={{ enabled_argo_repo }}
notify: updated argo-web-api package notify: updated argo-web-api package
tags: api tags: api
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment