From: Ken Dreyer Date: Wed, 1 Apr 2015 14:07:49 +0000 (-0600) Subject: add puddle role and playbook X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=44d83db29eeedd7f963837316ba106bcccd4e54e;p=ceph-cm-ansible.git add puddle role and playbook Add the necessary configuration for installing and running distill and puddle. Many of the templated variables here are internal to Red Hat and are present in the other "secrets" Ansible repository. Signed-off-by: Ken Dreyer --- diff --git a/puddle.yml b/puddle.yml new file mode 100644 index 0000000..d339368 --- /dev/null +++ b/puddle.yml @@ -0,0 +1,5 @@ +--- +- hosts: puddle + roles: + - common + - puddle diff --git a/roles/puddle/defaults/main.yml b/roles/puddle/defaults/main.yml new file mode 100644 index 0000000..9354a88 --- /dev/null +++ b/roles/puddle/defaults/main.yml @@ -0,0 +1,3 @@ +--- +# The name of the unprivileged user that will run puddle +puddle_user: puddle diff --git a/roles/puddle/handlers/main.yml b/roles/puddle/handlers/main.yml new file mode 100644 index 0000000..f9faf72 --- /dev/null +++ b/roles/puddle/handlers/main.yml @@ -0,0 +1,11 @@ +--- + +- name: restart nginx + service: + name: nginx + state: restarted + +- name: restart faucet + service: + name: faucet + state: restarted diff --git a/roles/puddle/meta/main.yml b/roles/puddle/meta/main.yml new file mode 100644 index 0000000..313fd69 --- /dev/null +++ b/roles/puddle/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - role: secrets diff --git a/roles/puddle/tasks/configure.yml b/roles/puddle/tasks/configure.yml new file mode 100644 index 0000000..65c4ae3 --- /dev/null +++ b/roles/puddle/tasks/configure.yml @@ -0,0 +1,48 @@ +--- +- name: add ceph puddle config dir + file: + path: /etc/puddle/ceph + owner: root + group: root + mode: 0755 + state: directory + +- name: add ceph puddle config files + template: + src: "{{ item }}.conf" + dest: "/etc/puddle/ceph/{{ item }}.conf" + owner: root + group: root + mode: 0644 + with_items: + - ceph-1.2-rhel-6 + - ceph-1.2-rhel-7 + - rh-common-rhel-6 + - rh-common-rhel-7 + - ceph-1.3-rhel-7 + +- name: add rcm-kerberos config file + template: + src: 'rcm-kerberos.conf' + dest: '/etc/rcm-kerberos.conf' + owner: root + group: root + mode: 0644 + +# Note: this file must be installed on the host independent of ansible. +- name: set permissions on keytab + file: + path: "{{ puddle.kerberos_keytab }}" + owner: root + group: puddle + mode: 0640 + +- name: add faucet config file + template: + src: 'faucet.conf' + dest: '/etc/puddle/faucet.conf' + owner: root + group: root + mode: 0644 + notify: + - restart faucet diff --git a/roles/puddle/tasks/distill/configure.yml b/roles/puddle/tasks/distill/configure.yml new file mode 100644 index 0000000..0f0de81 --- /dev/null +++ b/roles/puddle/tasks/distill/configure.yml @@ -0,0 +1,48 @@ +--- +- name: add ceph distill config dir + file: + path: /etc/distill/ceph + owner: root + group: root + mode: 0755 + state: directory + +- name: add distill config files + template: + src: "../../templates/distill/{{ item }}" + dest: "/etc/distill/ceph/{{ item }}" + owner: root + group: root + mode: 0644 + with_items: + - ceph-1.3-rhel-7.conf + - comps-ceph-1.3-rhel-7.xml + - run-distill.conf + - variants-ceph-1.3-rhel-7.xml + +# distill requires this symlink in order to run. +- name: symlink /mnt/brew + file: + src: /mnt/redhat/brewroot + dest: /mnt/brew + owner: root + group: root + state: link + +- name: create destinations (targets) for distill trees (composes) + file: + path: /var/www/{{ ansible_hostname }}/htdocs/distill/{{ item }}-trees + owner: "{{ puddle_user }}" + mode: 0755 + state: directory + with_items: + - 1.3-candidate + # 1.3-pending + +- name: add ceph wrapper script for run-distill + template: + src: '../../templates/distill/ceph-distill' + dest: '/usr/local/bin/ceph-distill' + owner: root + group: root + mode: 0755 diff --git a/roles/puddle/tasks/distill/install.yml b/roles/puddle/tasks/distill/install.yml new file mode 100644 index 0000000..69d9abf --- /dev/null +++ b/roles/puddle/tasks/distill/install.yml @@ -0,0 +1,8 @@ +--- +- name: install distill + yum: + name: "{{ item }}" + state: present + with_items: + - distill + - distill-utils diff --git a/roles/puddle/tasks/install.yml b/roles/puddle/tasks/install.yml new file mode 100644 index 0000000..9e52a94 --- /dev/null +++ b/roles/puddle/tasks/install.yml @@ -0,0 +1,26 @@ +--- +- name: enable rel-eng repositories + template: + src: eng-rhel-7.repo + dest: /etc/yum.repos.d/eng-rhel-7.repo + owner: root + group: root + mode: 0644 + +- name: install puddle and dependencies + yum: + name: "{{ item }}" + state: present + with_items: + - puddle + - rcm-kerberos + - krb5-workstation + - kstart + +- name: Add a new unprivileged UID to run puddle + user: + name: "{{ puddle_user }}" + state: present + home: '/etc/puddle' + createhome: no + system: yes diff --git a/roles/puddle/tasks/main.yml b/roles/puddle/tasks/main.yml new file mode 100644 index 0000000..4292ad8 --- /dev/null +++ b/roles/puddle/tasks/main.yml @@ -0,0 +1,22 @@ +--- +- fail: + msg: "Puddle is only relevant on RHEL" + when: ansible_distribution != 'RedHat' + +# install puddle +- include: install.yml + +# configure NFS +- include: nfs.yml + +# configure puddle +- include: configure.yml + +# install and configure web server +- include: nginx.yml + tags: + - nginx + +# install and configure distill +- include: distill/install.yml +- include: distill/configure.yml diff --git a/roles/puddle/tasks/nfs.yml b/roles/puddle/tasks/nfs.yml new file mode 100644 index 0000000..fd8b173 --- /dev/null +++ b/roles/puddle/tasks/nfs.yml @@ -0,0 +1,14 @@ +--- + +- name: install nfs client + yum: + name: nfs-utils + state: present + +- name: Mount /mnt/redhat + mount: + name: /mnt/redhat + src: "{{ puddle.mnt_redhat_nfs_src }}" + fstype: nfs + opts: 'ro,nosuid,nodev,hard,intr,bg,noatime,nodiratime,nfsvers=3,tcp,rsize=8192,wsize=8192' + state: mounted diff --git a/roles/puddle/tasks/nginx.yml b/roles/puddle/tasks/nginx.yml new file mode 100644 index 0000000..d8094d4 --- /dev/null +++ b/roles/puddle/tasks/nginx.yml @@ -0,0 +1,20 @@ +--- +- name: install nginx web server + yum: name=nginx state=present + +- name: create nginx docroot + file: + path: "/var/www/{{ ansible_hostname }}/htdocs" + owner: "{{ puddle_user }}" + mode: 0755 + state: directory + +- name: configure nginx + template: + src: nginx.conf + dest: /etc/nginx/nginx.conf + notify: + - restart nginx + +- name: start the nginx service + service: name=nginx state=started enabled=yes diff --git a/roles/puddle/templates/ceph-1.2-rhel-6.conf b/roles/puddle/templates/ceph-1.2-rhel-6.conf new file mode 100644 index 0000000..7369c46 --- /dev/null +++ b/roles/puddle/templates/ceph-1.2-rhel-6.conf @@ -0,0 +1,41 @@ +# +# {{ ansible_managed }} +# + +[puddle] +type = errata +errata_release = CEPH-1.2 +errata_whitelist = no +product_name = RHCeph +version = 1.2-RHEL-6 +rootdir = /var/www/{{ ansible_hostname }}/htdocs/puddles +emails = {{ puddle.emails }} +signed = yes +rhndir = no +mashroot = /tmp/mash/ceph +brewroot = {{ puddle.brewroot_url }} +topurl = {{ puddle.topurl }}/puddles +announcer = {{ puddle.announcer }} +publish = no +cdndir = no + + +[RH6-CEPH-CALAMARI-1.2] +variant = RH6-CEPH-CALAMARI-1.2 +external = {{ puddle.rhel_6_z_repo_url }} +keys = fd431d51,f21541eb + +[RH6-CEPH-INSTALLER-1.2] +variant = RH6-CEPH-INSTALLER-1.2 +external = {{ puddle.rhel_6_z_repo_url }} +keys = fd431d51,f21541eb + +[RH6-CEPH-MON-1.2] +variant = RH6-CEPH-MON-1.2 +external = {{ puddle.rhel_6_z_repo_url }} +keys = fd431d51,f21541eb + +[RH6-CEPH-OSD-1.2] +variant = RH6-CEPH-OSD-1.2 +external = {{ puddle.rhel_6_z_repo_url }} +keys = fd431d51,f21541eb diff --git a/roles/puddle/templates/ceph-1.2-rhel-7.conf b/roles/puddle/templates/ceph-1.2-rhel-7.conf new file mode 100644 index 0000000..2089394 --- /dev/null +++ b/roles/puddle/templates/ceph-1.2-rhel-7.conf @@ -0,0 +1,41 @@ +# +# {{ ansible_managed }} +# + +[puddle] +type = errata +errata_release = CEPH-1.2 +errata_whitelist = no +product_name = RHCeph +version = 1.2-RHEL-7 +rootdir = /var/www/{{ ansible_hostname }}/htdocs/puddles +emails = {{ puddle.emails }} +signed = yes +rhndir = no +mashroot = /tmp/mash/ceph +brewroot = {{ puddle.brewroot_url }} +topurl = {{ puddle.topurl }}/puddles +announcer = {{ puddle.announcer }} +publish = no +cdndir = no + + +[Server-RH7-CEPH-CALAMARI-1.2] +variant = Server-RH7-CEPH-CALAMARI-1.2 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb + +[Server-RH7-CEPH-INSTALLER-1.2] +variant = Server-RH7-CEPH-INSTALLER-1.2 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb + +[Server-RH7-CEPH-MON-1.2] +variant = Server-RH7-CEPH-MON-1.2 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb + +[Server-RH7-CEPH-OSD-1.2] +variant = Server-RH7-CEPH-OSD-1.2 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb diff --git a/roles/puddle/templates/ceph-1.3-rhel-7.conf b/roles/puddle/templates/ceph-1.3-rhel-7.conf new file mode 100644 index 0000000..5213487 --- /dev/null +++ b/roles/puddle/templates/ceph-1.3-rhel-7.conf @@ -0,0 +1,42 @@ +# +# {{ ansible_managed }} +# + +[puddle] +type = errata +errata_release = CEPH-1.3.0 +errata_whitelist = no +errata_blacklist = no +product_name = RHCeph +version = 1.3-RHEL-7 +rootdir = /var/www/{{ ansible_hostname }}/htdocs/puddles +emails = {{ puddle.emails }} +signed = no +rhndir = no +mashroot = /tmp/mash/ceph +brewroot = {{ puddle.brewroot_url }} +topurl = {{ puddle.topurl }}/puddles +announcer = {{ puddle.announcer }} +publish = no +cdndir = no + + +[Server-RH7-CEPH-CALAMARI-1.3] +variant = Server-RH7-CEPH-CALAMARI-1.3 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb + +[Server-RH7-CEPH-INSTALLER-1.3] +variant = Server-RH7-CEPH-INSTALLER-1.3 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb + +[Server-RH7-CEPH-MON-1.3] +variant = Server-RH7-CEPH-MON-1.3 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb + +[Server-RH7-CEPH-OSD-1.3] +variant = Server-RH7-CEPH-OSD-1.3 +external = {{ puddle.rhel_7_z_repo_url }} +keys = fd431d51,f21541eb diff --git a/roles/puddle/templates/distill/ceph-1.3-rhel-7.conf b/roles/puddle/templates/distill/ceph-1.3-rhel-7.conf new file mode 100644 index 0000000..f3eab92 --- /dev/null +++ b/roles/puddle/templates/distill/ceph-1.3-rhel-7.conf @@ -0,0 +1,65 @@ +# +# {{ ansible_managed }} +# + +# PRODUCT INFO +product_name = "Red Hat Ceph" +product_short = "Ceph" +product_version = "1.3" +product_is_layered = True + + +# BASE PRODUCT INFO (FOR A LAYERED PRODUCT ONLY) +base_product_short = "RHEL" +base_product_version = "7" +base_product_name = "Red Hat Enterprise Linux" + + +# GENERAL SETTINGS +bootable = False +comps_file = "comps-ceph-1.3-rhel-7.xml" +variants_file = "variants-ceph-1.3-rhel-7.xml" + +# FD431D51 = redhatrelease2 (rhel6+ gold key) +# F21541EB = beta2 (rhel6+ beta key) +# None = unsigned +sigkeys = ["FD431D51", "F21541EB", None] + + +multilib_arches = ["x86_64"] +multilib_methods = [] # devel (recommended), all, base, file, kernel, none, runtime + + +# RUNROOT SETTINGS +runroot = False + + +# PKGSET +pkgset_source = "koji" # koji, repos + +# PKGSET - REPOS +# pkgset_repos format: {arch: [repo1_url, repo2_url, ...]} +# pkgset_repos = {} + +# PKGSET - KOJI +pkgset_koji_path_prefix = "/mnt/brew" +pkgset_koji_url = "{{ distill.brewhub_url }}" +pkgset_koji_tag = "ceph-1.3-rhel-7-candidate" + + +# GATHER +gather_method = "deps" # deps, nodeps +gather_source = "comps" # comps, json, none +check_deps = False +# variant ID regex: arch: packages +gather_lookaside_repos = [ + ("^.*$", { + "x86_64": [ + "{{ distill.rhel_7_lookaside_repo_x86_64_url }}", + "{{ distill.rhel_7_lookaside_repo_src_url }}", + ], + }), +] + + +createrepo_c = True diff --git a/roles/puddle/templates/distill/ceph-distill b/roles/puddle/templates/distill/ceph-distill new file mode 100755 index 0000000..510b5a8 --- /dev/null +++ b/roles/puddle/templates/distill/ceph-distill @@ -0,0 +1,54 @@ +#!/bin/bash + +# +# {{ ansible_managed }} +# + +# Distill's output is very large. This script wraps "run-distill" and does a +# bit of tidying up afterwards. It removes a lot of the files that we don't +# use, and it even deletes older composes. + +# The general idea is to make sure we don't run out of disk space on our VM. + +cd /etc/distill/ceph +run-distill el7-test + +set -e + +# Keep this many old composes around. +keep=20 + +# $compose_config is this is the directory in htdocs that we want to clean up. +compose_config=1.3-candidate-trees + +# Eventually we will want to refactor the rest of this script into a function +# and loop over more compose_configs here. + +target=/var/www/{{ ansible_hostname }}/htdocs/distill/$compose_config +compose_id=$(cat $target/latest-Ceph-1-RHEL-7/COMPOSE_ID) + +# Cleanup temporary files that we don't need and take up space +pushd $target/latest-Ceph-1-RHEL-7 + # Temporary work directory; not usuable by QE. + rm -r work + # These repos are not relevant. Just save the "Installer" repo. + rm -r compose/{Calamari,MON,OSD} + pushd compose/Installer + # Remove more things that we don't need + rm -r x86_64/{debug,jigdo,os}/ + rm -r source/tree/ + # This ISO is only the "Installer" ISO, not the unified one. Remove it. + rm x86_64/iso/$compose_id-Installer-x86_64-dvd1.iso* + rm source/iso/$compose_id-Installer-source-dvd1.iso* + # These checksums are for the "Installer" ISO (see above). + rm {source,x86_64}/iso/MD5SUM + rm {source,x86_64}/iso/SHA1SUM + rm {source,x86_64}/iso/SHA256SUM + # We are now left with two single "unified" ISOs in /x86_64 and in /source. + popd # compose/Installer +popd # $target + +# Remove composes older than $keep number. +for old in $(ls -d $target/Ceph* | tail -n +${keep}); do + rm -r $old +done diff --git a/roles/puddle/templates/distill/comps-ceph-1.3-rhel-7.xml b/roles/puddle/templates/distill/comps-ceph-1.3-rhel-7.xml new file mode 100644 index 0000000..c6f9d02 --- /dev/null +++ b/roles/puddle/templates/distill/comps-ceph-1.3-rhel-7.xml @@ -0,0 +1,60 @@ + + + + + + calamari + Red Hat Ceph Calamari + Red Hat Ceph Calamari packages + true + true + + calamari-clients + calamari-servers + salt-master + zeromq3-devel + + + + + ceph-installer + Red Hat Ceph Installer + Red Hat Ceph Installer packages + true + true + + ceph-deploy + + + + + ceph-mon + Red Hat Ceph Monitor + Red Hat Ceph Monitor packages + true + true + + ceph-mon + diamond + librados2-devel + librbd1-devel + salt-minion + + + + + ceph-osd + Red Hat Ceph OSD + Red Hat Ceph Object Storage Daemon packages + true + true + + ceph-osd + diamond + librados2-devel + librbd1-devel + salt-minion + + + + diff --git a/roles/puddle/templates/distill/run-distill.conf b/roles/puddle/templates/distill/run-distill.conf new file mode 100644 index 0000000..862ced5 --- /dev/null +++ b/roles/puddle/templates/distill/run-distill.conf @@ -0,0 +1,54 @@ +# +# This file is managed by ansible, don't make changes here - they will be overwritten. +# + +[el7] +config = ceph-1.3-rhel-7.conf +compose_type = production +target = /mnt/redhat/devel/candidate-trees +no_label = 0 +kerberos = 0 +kerberos_keytab = /etc/distill.$HOSTNAME.keytab +kerberos_principal = distill/$HOSTNAME +skip_phase = +just_phase = +changelogs = 0 +composedb = 0 +notification = 0 +email = kdreyer@redhat.com +pre_compose_script = +post_compose_script = + +[el7-nightly] +config = ceph-1.3-rhel-7.conf +compose_type = nightly +target = /mnt/redhat/nightly +no_label = 1 +kerberos = 0 +kerberos_keytab = /etc/distill.$HOSTNAME.keytab +kerberos_principal = distill/$HOSTNAME +skip_phase = +just_phase = +changelogs = 0 +composedb = 0 +notification = 0 +email = {{ distill.email }} +pre_compose_script = +post_compose_script = + +[el7-test] +config = ceph-1.3-rhel-7.conf +compose_type = test +target = /var/www/{{ ansible_hostname }}/htdocs/distill/1.3-candidate-trees +no_label = 1 +kerberos = 0 +kerberos_keytab = /etc/distill.$HOSTNAME.keytab +kerberos_principal = distill/$HOSTNAME +skip_phase = +just_phase = +changelogs = 0 +composedb = 0 +notification = 0 +email = {{ distill.email }} +pre_compose_script = +post_compose_script = compose-create-unified-isos $COMPOSE_PATH diff --git a/roles/puddle/templates/distill/variants-ceph-1.3-rhel-7.xml b/roles/puddle/templates/distill/variants-ceph-1.3-rhel-7.xml new file mode 100644 index 0000000..83dc299 --- /dev/null +++ b/roles/puddle/templates/distill/variants-ceph-1.3-rhel-7.xml @@ -0,0 +1,42 @@ + + + + + + + + x86_64 + + + calamari + + + + + + x86_64 + + + ceph-installer + + + + + + x86_64 + + + ceph-mon + + + + + + x86_64 + + + ceph-osd + + + + diff --git a/roles/puddle/templates/eng-rhel-7.repo b/roles/puddle/templates/eng-rhel-7.repo new file mode 100644 index 0000000..ffa5c67 --- /dev/null +++ b/roles/puddle/templates/eng-rhel-7.repo @@ -0,0 +1,15 @@ +# +# {{ ansible_managed }} +# + +[eng-rhel-7] +name=Rel-Eng Packages for RHEL 7 - $basearch +baseurl={{ puddle.eng_rhel_7_repo_url }} +gpgcheck=0 +enabled=1 + +[eng-rhel-7-candidate] +name=Rel-Eng Packages for RHEL 7 - Testing - $basearch +baseurl={{ puddle.eng_rhel_7_candidate_repo_url }} +gpgcheck=0 +enabled=1 diff --git a/roles/puddle/templates/faucet.conf b/roles/puddle/templates/faucet.conf new file mode 100644 index 0000000..ab0ef05 --- /dev/null +++ b/roles/puddle/templates/faucet.conf @@ -0,0 +1,25 @@ +[main] +log = /var/log/faucet.log + +[ceph-1.3-rhel-7] +email = no +config = /etc/puddle/ceph/ceph-1.3-rhel-7.conf +window = 5 +# Once RT #345524 is completed, use "brew" with the -pending tag instead of +# "errata". +errata = 20313 +#brew = ceph-1.3-rhel-7-pending + +[ceph-1.2-rhel-7] +email = no +config = /etc/puddle/ceph/ceph-1.2-rhel-7.conf +window = 5 +# TODO: file RT ticket for sync_brew_with_errata with ceph-1.2 tags +brew = ceph-1.2-rhel-7-pending + +[ceph-1.2-rhel-6] +email = no +config = /etc/puddle/ceph/ceph-1.2-rhel-6.conf +window = 5 +# TODO: file RT ticket for sync_brew_with_errata with ceph-1.2 tags +brew = ceph-1.2-rhel-6-pending diff --git a/roles/puddle/templates/nginx.conf b/roles/puddle/templates/nginx.conf new file mode 100644 index 0000000..63c9fc6 --- /dev/null +++ b/roles/puddle/templates/nginx.conf @@ -0,0 +1,77 @@ +# +# {{ ansible_managed }} +# + +# For more information on configuration, see: +# * Official English Documentation: http://nginx.org/en/docs/ +# * Official Russian Documentation: http://nginx.org/ru/docs/ + +user nginx; +worker_processes 1; + +error_log /var/log/nginx/error.log; +#error_log /var/log/nginx/error.log notice; +#error_log /var/log/nginx/error.log info; + +pid /run/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + index index.html index.htm; + + server_tokens off; + + # Load modular configuration files from the /etc/nginx/conf.d directory. + # See http://nginx.org/en/docs/ngx_core_module.html#include + # for more information. + include /etc/nginx/conf.d/*.conf; + + server { + listen 80 default_server; + listen [::]:80 default_server; + server_name localhost; + root /var/www/{{ ansible_hostname }}/htdocs; + + location / { + autoindex on; + autoindex_exact_size off; + } + + # Some of distill's files have no suffix and are simply plaintext. + location ~ (COMPOSE_ID|STATUS)$ { + default_type text/plain; + } + + types { + # Plaintext files from puddle and distill: + text/plain conf log repo txt; + # More from distill: + text/plain manifest MD5SUM SHA1SUM SHA256SUM; + } + + #access_log /var/log/nginx/host.access.log main; + + } +} diff --git a/roles/puddle/templates/rcm-kerberos.conf b/roles/puddle/templates/rcm-kerberos.conf new file mode 100644 index 0000000..5dea048 --- /dev/null +++ b/roles/puddle/templates/rcm-kerberos.conf @@ -0,0 +1,7 @@ +# +# {{ ansible_managed }} +# + +[default] +keytab = {{ puddle.kerberos_keytab }} +principal = {{ puddle.kerberos_principal }} diff --git a/roles/puddle/templates/rh-common-rhel-6.conf b/roles/puddle/templates/rh-common-rhel-6.conf new file mode 100644 index 0000000..e254336 --- /dev/null +++ b/roles/puddle/templates/rh-common-rhel-6.conf @@ -0,0 +1,26 @@ +# +# {{ ansible_managed }} +# + +[puddle] +type = errata +#errata_release = RH-Common-ASYNC +errata_release = no +errata_whitelist = 20355 +product_name = RHEL-6-Server-RH-Common +version = 6.5 +rootdir = /var/www/{{ ansible_hostname }}/htdocs/puddles +emails = {{ puddle.emails }} +signed = no +rhndir = no +mashroot = /tmp/mash/ceph +brewroot = {{ puddle.brewroot_url }} +topurl = {{ puddle.topurl }}/puddles +announcer = {{ puddle.announcer }} +publish = no +cdndir = no + + +[rh-common-rhel-6.5] +variant = RH-Common +external = {{ puddle.rhel_6_z_repo_url }},{{ puddle.rhel_6_common_repo_url }} diff --git a/roles/puddle/templates/rh-common-rhel-7.conf b/roles/puddle/templates/rh-common-rhel-7.conf new file mode 100644 index 0000000..2f44842 --- /dev/null +++ b/roles/puddle/templates/rh-common-rhel-7.conf @@ -0,0 +1,26 @@ +# +# {{ ansible_managed }} +# + +[puddle] +type = errata +#errata_release = RH-Common-ASYNC +errata_release = no +errata_whitelist = 20355 +product_name = RHEL-7-RH-Common +version = 7.1 +rootdir = /var/www/{{ ansible_hostname }}/htdocs/puddles +emails = {{ puddle.emails }} +signed = no +rhndir = no +mashroot = /tmp/mash/ceph +brewroot = {{ puddle.brewroot_url }} +topurl = {{ puddle.topurl }}/puddles +announcer = {{ puddle.announcer }} +publish = no +cdndir = no + + +[rh-common-rhel-7.1] +variant = Server-RH-Common +external = {{ puddle.rhel_7_z_repo_url }},{{ puddle.rhel_7_common_repo_url }}