First cut at bodhi app migration to ansible. Thanks janeznemanic. Ticket 4193

This commit is contained in:
Kevin Fenzi 2014-02-19 21:07:16 +00:00
parent 7dc3900f4c
commit 769efe6ab8
35 changed files with 1360 additions and 0 deletions

View file

@ -0,0 +1,27 @@
---
# Define resources for this group of hosts here.
jobrunner: false
epelmasher: false
lvm_size: 40000
mem_size: 4096
num_cpus: 2
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
tcp_ports: [ 80, 443,
# These 16 ports are used by fedmsg. One for each wsgi thread.
3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007,
3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015]
fas_client_groups: sysadmin-noc
# These are consumed by a task in roles/fedmsg_base/main.yml
fedmsg_certs:
- service: shell
owner: root
group: sysadmin
- service: bodhi
owner: root
group: apache

View file

@ -0,0 +1,10 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
volgroup: /dev/vg_virthost01
eth0_ip: 10.5.126.110
vmhost: virthost01.phx2.fedoraproject.org
datacenter: phx2

View file

@ -0,0 +1,10 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
volgroup: /dev/vg_guests
eth0_ip: 10.5.126.166
vmhost: virthost10.phx2.fedoraproject.org
datacenter: phx2

View file

@ -0,0 +1,10 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
volgroup: /dev/vg_virthost03
eth0_ip: 10.5.126.167
vmhost: virthost03.phx2.fedoraproject.org
datacenter: phx2

View file

@ -91,6 +91,13 @@ blockerbugs02.phx2.fedoraproject.org
blockerbugs01.stg.phx2.fedoraproject.org
blockerbugs-dev.cloud.fedoraproject.org
[bodhi]
boodhi01.phx2.fedoraproject.org
boodhi02.phx2.fedoraproject.org
[bodhi-stg]
boodhi01.stg.phx2.fedoraproject.org
[bvirthost]
bvirthost01.phx2.fedoraproject.org
bvirthost02.phx2.fedoraproject.org

View file

@ -0,0 +1,53 @@
- name: make bodhi
hosts: bodhi:bodhi-stg #machines: bodhi01, bodhi02, releng04, relepel01
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- include: "{{ tasks }}/virt_instance_create.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: make the box be real
hosts: bodhi:bodhi-stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- denyhosts
- nagios_client
- fas_client
- fedmsg_base
- collectd
- nfs_client
- { role: bodhi/base, when: "inventory_hostname.startswith('bodhi01') or inventory_hostname.startswith('bodhi02')" }
- { role: bodhi/masher, jobrunner: true, when: "inventory_hostname.startswith('releng04')" }
- { role: bodhi/masher, epelmasher: true, when: "inventory_hostname.startswith('relepel01')" }
tasks:
- include: "{{ tasks }}/hosts.yml"
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
- include: "{{ tasks }}/sudo.yml"
- include: "{{ tasks }}/apache.yml"
- include: "{{ tasks }}/openvpn_client.yml"
when: env != "staging"
- include: "{{ tasks }}/iptables.yml"
- include: "{{ tasks }}/mod_wsgi.yml
handlers:
- include: "{{ handlers }}/restart_services.yml"

View file

@ -0,0 +1,18 @@
Alias /updates/static /usr/share/bodhi/static
WSGISocketPrefix run/wsgi
WSGIRestrictSignal Off
WSGIDaemonProcess bodhi user=bodhi group=bodhi display-name=bodhi maximum-requests=1000 processes=4 threads=1
WSGIPythonOptimize 1
WSGIScriptAlias /updates /usr/share/bodhi/bodhi.wsgi/updates
# Hack, to work around some weirdness with python-tgmochikit & TG1
Alias /updates/tg_widgets/tgmochikit/packed/MochiKit/MochiKit.js /usr/lib/python2.6/site-packages/tgmochikit/static/javascript/1.4.2/packed/MochiKit/MochiKit.js
<Directory /usr/share/bodhi>
WSGIProcessGroup bodhi
Order deny,allow
Allow from all
</Directory>

View file

@ -0,0 +1,87 @@
---
# tasklist for setting up bodhi
# This is the base set of files needed for bodhi
- name: install needed packages
yum: pkg={{ item }} state=installed
with_items:
- bodhi-server
tags:
- packages
- name: setup /etc/bodhi/ directory
file: path=/etc/bodhi owner=root group=root mode=0755 state=directory
tags:
- config
- name: setup basic /etc/bodhi/ contents
template: >
src="bodhi-prod.cfg.j2"
dest="/etc/bodhi/bodhi.cfg"
owner=bodhi
group=bodhi
mode=0600
notify:
- restart httpd
tags:
- config
- name: setup basic /etc/httpd/conf.d/ bodhi contents
copy: >
src="bodhi-app.conf"
dest="/etc/httpd/conf.d/bodhi.conf"
owner=root
group=root
mode=0644
notify:
- restart httpd
tags:
- config
- name: setup /etc/pki/bodhi directory
file: path=/etc/pki/bodhi owner=root group=root mode=0755 state=directory
tags:
- config
- name: install bodhi.pem file
copy: >
src="{{ puppet_private }}/bodhi_key_and_cert.pem"
dest="/etc/pki/bodhi/bodhi.pem"
owner=bodhi
group=bodhi
mode=0400
tags:
- config
- name: install bodhi certificates
copy: >
src="{{ puppet_private }}/fedora-ca.cert"
dest="/etc/pki/bodhi/{{ item }}"
owner=root
group=root
mode=0644
with_items:
- fedora-server-ca.cert
- fedora-upload-ca.cert
tags:
- config
- name: setup /var/log/bodhi directory
file: path=/var/log/bodhi owner=bodhi group=bodhi mode=0755 state=directory
tags:
- config
- name: install /var/tmp/bodhi-bz.cookie file
file: >
path=/var/tmp/bodhi-bz.cookie
owner=bodhi
group=bodhi
mode=0600
state=file
tags:
- config
- name: enable httpd_tmp_exec SELinux boolean
seboolean: name=httpd_tmp_exec state=yes persistent=yes
tags:
- config

View file

@ -0,0 +1,204 @@
[global]
##
## Bodhi Production Configuration
##
## $Id: bodhi-prod.cfg.erb,v 1.8 2008/05/21 23:38:07 lmacken Exp $
##
# Release status
# pre-beta enforces the 'Pre Beta' policy defined here:
# https://fedoraproject.org/wiki/Updates_Policy
f21.status = 'pre_beta'
f21.post_beta.mandatory_days_in_testing = 7
f21.post_beta.critpath.num_admin_approvals = 0
f21.post_beta.critpath.min_karma = 2
f21.post_beta.critpath.stable_after_days_without_negative_karma = 14
f21.pre_beta.mandatory_days_in_testing = 3
f21.pre_beta.critpath.num_admin_approvals = 0
f21.pre_beta.critpath.min_karma = 1
# Bodhi Defaults:
#
# The number of admin approvals it takes to be able to push a critical path
# # update to stable for a pending release.
# critpath.num_admin_approvals = 0
#
# # The net karma required to submit a critial path update to a pending release)
# critpath.min_karma = 2
#
# # Allow critpath to submit for stable after 2 weeks with no negative karma
# critpath.stable_after_days_without_negative_karma = 14
## A notice to flash on the front page
#frontpage_notice = 'Bodhi is now enforcing the <a href="https://fedoraproject.org/wiki/Package_update_acceptance_criteria">Package Update Acceptance Criteria</a> across all Fedora releases.'
## A notice to flash on the New Update page
#newupdate_notice = 'Koji is currently down for a scheduled outage. Please see <a href="http://status.fedoraproject.org/">status.fedoraproject.org</a> for more information'
# Query the Fedora Package Database for the list of Critical Path Packages.
{% if environment == "production" %}
critpath.type = 'pkgdb'
{% endif %}
{% if environment == "production" %}
deployment_type = "prod"
{% endif %}
{% if environment == "staging" %}
deployment_type = "stg"
{% endif %}
{% if environment == "development" %}
deployment_type = "dev"
{% endif %}
# We no longer require proventester karma for critpath approval
# https://fedorahosted.org/bodhi/ticket/653
critpath.num_admin_approvals = 0
#f17.pre_beta.critpath.num_admin_approvals = 0
query_wiki_test_cases = True
sqlobject.dburi="notrans_postgres://bodhi:{{ bodhiPassword }}@db-bodhi/bodhi"
masher = 'http://releng04/updates'
# For the build auto-complete widget
tg_mochikit.packed = True
server.socket_port=8084
server.environment="production"
autoreload.on = False
server.webpath="/updates"
server.log_file = "server.log"
server.log_to_screen = False
server.thread_pool = 50
server.socket_queue_size = 30
# We probably want to have apache do this for us...
#gzipFilter.on = True
session_filter.on = False
base_url_filter.on = True
base_url_filter.use_x_forwarded_host = False
{% if environment == "staging" %}
base_url_filter.base_url = 'https://admin.stg.fedoraproject.org'
{% else %}
base_url_filter.base_url = 'https://admin.fedoraproject.org'
{% endif %}
tg.strict_parameters = True
tg.ignore_parameters = ["_csrf_token"]
# Periodic jobs
jobs = 'cache_release_data'
# FAS2
#sqlalchemy.dburi="sqlite:///"
fas.url = 'https://admin.fedoraproject.org/accounts/'
identity.provider='jsonfas2'
identity.saprovider.model.visit="fedora.accounts.tgfas.VisitIdentity"
visit.manager="jsonfas2"
visit.saprovider.model="fedora.accounts.tgfas.Visit"
visit.cookie.secure = True
visit.cookie.httponly = True
# Our identity that we use to fetch bugzilla details and such
bodhi_password='{{ bodhiBugzillaPassword }}'
bodhi_email = 'updates@fedoraproject.org'
security_team = 'security_respons-members@fedoraproject.org'
release_team_address = 'bodhiadmin-members@fedoraproject.org'
fedora_announce_list = 'package-announce@lists.fedoraproject.org'
fedora_test_announce_list = 'test@lists.fedoraproject.org'
mashed_dir = '/mnt/koji/mash/updates'
# TurboMail 3.0 settings
{% if environment == "staging" %}
mail.on = False
{% else %}
mail.on = True
{% endif %}
mail.transport = 'smtp'
mail.smtp.server = 'bastion'
# The 'utf-8-qp' encoding causes problems with TurboMail 3.x
# https://fedorahosted.org/bodhi/ticket/648
mail.message.encoding = 'utf-8'
notice_sender = 'updates@fedoraproject.org'
#bz_server = 'https://bzprx.vip.phx.redhat.com/xmlrpc.cgi'
bz_server = 'https://bugzilla.redhat.com/xmlrpc.cgi'
bz_cookie = '/var/tmp/bodhi-bz.cookie'
bz_products = 'Fedora,Fedora EPEL,oVirt'
build_dir = '/mnt/koji/packages'
{% if environment == "staging" %}
base_address = 'https://admin.stg.fedoraproject.org'
{% else %}
base_address = 'https://admin.fedoraproject.org'
{% endif %}
acl_system = 'pkgdb'
{% if environment == "staging" %}
pkgdb_url = 'http://localhost/pkgdb'
{% else %}
pkgdb_url = 'https://admin.fedoraproject.org/pkgdb'
{% endif %}
{% if environment == "staging" %}
buildsystem = 'dev'
{% else %}
buildsystem = 'koji'
{% endif %}
client_cert = '/etc/pki/bodhi/bodhi.pem'
clientca_cert = '/etc/pki/bodhi/fedora-upload-ca.cert'
serverca_cert = '/etc/pki/bodhi/fedora-server-ca.cert'
[logging]
[[handlers]]
[[[debug_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='DEBUG'
formatter='full_content'
[[[access_out]]]
class='TimedRotatingFileHandler'
level='INFO'
args="('/var/log/bodhi/access.log', 'D', 7)"
formatter='message_only'
[[[error_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='ERROR'
formatter='full_content'
[[loggers]]
[[[bodhi]]]
level='DEBUG'
qualname='bodhi'
handlers=['debug_out']
propagate=0
[[[allinfo]]]
level='INFO'
handlers=['debug_out']
propagate=0
#[[[access]]]
#level='INFO'
#qualname='turbogears.access'
#handlers=['debug_out']
[[[turbomail]]]
level='INFO'
qualname='turbomail'
handlers=['debug_out']
[[[urllib3]]]
level='WARN'
qualname='urllib3'
handlers=['debug_out']

View file

@ -0,0 +1,3 @@
---
epelmasher: false
jobrunner: false

View file

@ -0,0 +1,15 @@
Alias /updates/static /usr/share/bodhi/static
WSGISocketPrefix run/wsgi
WSGIRestrictSignal Off
WSGIDaemonProcess bodhi user=masher group=masher display-name=bodhi
WSGIPythonOptimize 1
WSGIScriptAlias /updates /usr/share/bodhi/bodhi.wsgi/updates
<Directory /usr/share/bodhi>
WSGIProcessGroup bodhi
Order deny,allow
Allow from all
</Directory>

View file

@ -0,0 +1,17 @@
# mash config file
[el6-epel-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo_path = %(arch)s/debug
debuginfo = True
multilib = True
multilib_method = devel
tag = dist-6E-epel-testing
inherit = False
strict_keys = True
keys = 0608b895
use_repoview = True
repoviewurl = http://download.fedoraproject.org/pub/epel/testing/6/%(arch)s/
repoviewtitle = "Fedora EPEL Testing 6 - %(arch)s"
arches = i386 x86_64 ppc64

View file

@ -0,0 +1,17 @@
# mash config file
[el6-epel]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo_path = %(arch)s/debug
debuginfo = True
multilib = True
multilib_method = devel
tag = dist-6E-epel
inherit = False
strict_keys = True
keys = 0608b895
use_repoview = True
repoviewurl = http://download.fedoraproject.org/pub/epel/6/%(arch)s/
repoviewtitle = "Fedora EPEL 6 - %(arch)s"
arches = i386 x86_64 ppc64

View file

@ -0,0 +1,17 @@
[f13-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = dist-f13-updates
inherit = False
strict_keys = True
keys = E8E40FDE
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/13/%(arch)s/
repoviewtitle = "Fedora 13 Updates - %(arch)s"
arches = i386 x86_64
delta = True
# Enable this once F13 releases
delta_dirs = /pub/fedora/linux/releases/13/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f13-updates/%(arch)s/
#delta_dirs = /pub/fedora/linux/development/13/%(arch)s/os/

View file

@ -0,0 +1,20 @@
# mash config file
[f14-updates-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = dist-f14-updates-testing
inherit = False
strict_keys = True
keys = 97A1071F
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/14/%(arch)s/
repoviewtitle = "Fedora 14 Updates Testing - %(arch)s"
arches = i386 x86_64
delta = True
# Enable this once F14 releases
#delta_dirs = /pub/fedora/linux/releases/14/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f14-updates/%(arch)s/
delta_dirs = /pub/fedora/linux/development/14/%(arch)s/os/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/updates/14/%(arch)s, http://download.fedoraproject.org/pub/fedora/linux/releases/14/Everything/%(arch)s/os

View file

@ -0,0 +1,16 @@
[f14-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = dist-f14-updates
inherit = False
strict_keys = True
keys = 97A1071F
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/14/%(arch)s/
repoviewtitle = "Fedora 14 Updates - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/14/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f14-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/releases/14/Everything/%(arch)s/os

View file

@ -0,0 +1,20 @@
# mash config file
[f15-updates-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = dist-f15-updates-testing
inherit = False
strict_keys = True
keys = 069C8460
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/15/%(arch)s/
repoviewtitle = "Fedora 15 Updates Testing - %(arch)s"
arches = i386 x86_64
delta = True
# Enable this once F15 releases
#delta_dirs = /pub/fedora/linux/releases/15/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f15-updates/%(arch)s/
delta_dirs = /pub/fedora/linux/development/15/%(arch)s/os/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/updates/15/%(arch)s, http://download.fedoraproject.org/pub/fedora/linux/releases/15/Everything/%(arch)s/os

View file

@ -0,0 +1,16 @@
[f15-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = dist-f15-updates
inherit = False
strict_keys = True
keys = 069C8460
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/15/%(arch)s/
repoviewtitle = "Fedora 15 Updates - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/15/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f15-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/releases/15/Everything/%(arch)s/os

View file

@ -0,0 +1,20 @@
# mash config file
[f16-updates-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f16-updates-testing
inherit = False
strict_keys = True
keys = A82BA4B7
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/16/%(arch)s/
repoviewtitle = "Fedora 16 Updates Testing - %(arch)s"
arches = i386 x86_64
delta = True
# Enable this once F16 releases
delta_dirs = /pub/fedora/linux/releases/16/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f16-updates/%(arch)s/
#delta_dirs = /pub/fedora/linux/development/16/%(arch)s/os/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/updates/16/%(arch)s, http://download.fedoraproject.org/pub/fedora/linux/releases/16/Everything/%(arch)s/os

View file

@ -0,0 +1,16 @@
[f16-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f16-updates
inherit = False
strict_keys = True
keys = A82BA4B7
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/16/%(arch)s/
repoviewtitle = "Fedora 16 Updates - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/16/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f16-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/releases/16/Everything/%(arch)s/os

View file

@ -0,0 +1,18 @@
# mash config file
[f17-updates-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f17-updates-testing
inherit = False
strict_keys = True
keys = 1ACA3465
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/17/%(arch)s/
repoviewtitle = "Fedora 17 Updates Testing - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/17/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f17-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/updates/17/%(arch)s, http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/%(arch)s/os

View file

@ -0,0 +1,16 @@
[f17-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f17-updates
inherit = False
strict_keys = True
keys = 1ACA3465
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/17/%(arch)s/
repoviewtitle = "Fedora 17 Updates - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/17/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f17-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/%(arch)s/os

View file

@ -0,0 +1,18 @@
# mash config file
[f18-updates-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f18-updates-testing
inherit = False
strict_keys = True
keys = DE7F38BD
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/18/%(arch)s/
repoviewtitle = "Fedora 18 Updates Testing - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/18/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f18-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/updates/18/%(arch)s, http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/%(arch)s/os

View file

@ -0,0 +1,18 @@
[f18-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f18-updates
inherit = False
strict_keys = True
keys = DE7F38BD
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/18/%(arch)s/
repoviewtitle = "Fedora 18 Updates - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/18/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f18-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/%(arch)s/os

View file

@ -0,0 +1,21 @@
# mash config file
[f19-updates-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f19-updates-testing
inherit = False
strict_keys = True
keys = FB4b18E6
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/19/%(arch)s/
repoviewtitle = "Fedora 19 Updates Testing - %(arch)s"
arches = i386 x86_64
delta = True
delta_dirs = /pub/fedora/linux/releases/19/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f19-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/updates/19/%(arch)s, http://download.fedoraproject.org/pub/fedora/linux/releases/19/Everything/%(arch)s/os
# point to branched till we release then use above
#delta_dirs = /pub/fedora/linux/development/19/%(arch)s/os/
#parent_repos = http://download.fedoraproject.org/pub/fedora/linux/development/19/%(arch)s/os/

View file

@ -0,0 +1,18 @@
[f19-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f19-updates
inherit = False
strict_keys = True
keys = FB4B18E6
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/19/%(arch)s/
repoviewtitle = "Fedora 19 Updates - %(arch)s"
arches = i386 x86_64
delta = True
#delta_dirs = /pub/fedora/linux/development/19/%(arch)s/os/,/mnt/koji/mash/updates/f19-updates/%(arch)s/
#parent_repos = http://download.fedoraproject.org/pub/fedora/linux/development/19/%(arch)s/os
delta_dirs = /pub/fedora/linux/releases/19/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f19-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/releases/19/Everything/%(arch)s/os

View file

@ -0,0 +1,21 @@
# mash config file
[f20-updates-testing]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f20-updates-testing
inherit = False
strict_keys = True
keys = 246110C1
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/20/%(arch)s/
repoviewtitle = "Fedora 20 Updates Testing - %(arch)s"
arches = armhfp i386 x86_64
delta = True
#delta_dirs = /pub/fedora/linux/releases/20/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f20-updates/%(arch)s/
#parent_repos = http://download.fedoraproject.org/pub/fedora/linux/updates/20/%(arch)s, http://download.fedoraproject.org/pub/fedora/linux/releases/20/Everything/%(arch)s/os
# point to branched till we release then use above
delta_dirs = /pub/fedora/linux/development/20/%(arch)s/os/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/development/20/%(arch)s/os/

View file

@ -0,0 +1,20 @@
[f20-updates]
rpm_path = %(arch)s/
source_path = SRPMS/
debuginfo = True
multilib = True
multilib_method = devel
tag = f20-updates
inherit = False
strict_keys = True
keys = 246110C1
repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/20/%(arch)s/
repoviewtitle = "Fedora 20 Updates - %(arch)s"
arches = armhfp i386 x86_64
delta = True
#generate deltas against branched
delta_dirs = /pub/fedora/linux/development/20/%(arch)s/os/,/mnt/koji/mash/updates/f20-updates/%(arch)s/
parent_repos = http://download.fedoraproject.org/pub/fedora/linux/development/20/%(arch)s/os
# Bellow needs enabling at GA
#delta_dirs = /pub/fedora/linux/releases/20/Everything/%(arch)s/os/,/mnt/koji/mash/updates/f20-updates/%(arch)s/
#parent_repos = http://download.fedoraproject.org/pub/fedora/linux/releases/20/Everything/%(arch)s/os

View file

@ -0,0 +1,3 @@
---
dependencies:
- { role: bodhi/base }

View file

@ -0,0 +1,134 @@
---
# tasklist for setting up bodhi/masher (requires bodhi/base)
# This is the base set of files needed for bodhi/masher
- name: install needed packages
yum: pkg={{ item }} state=installed
with_items:
- python-fedora-turbogears
tags:
- packages
- name: install bodhi-masher /etc/bodhi/bodhi.cfg file
template: >
src="bodhi-masher.cfg.j2"
dest="/etc/bodhi/bodhi.cfg"
owner=masher
group=masher
mode=0600
notify:
- restart httpd
tags:
- config
- name: install bodhi-masher /etc/httpd/conf.d/bodhi.conf file
copy: >
src="bodhi-masher.conf"
dest="/etc/httpd/conf.d/bodhi.conf"
owner=root
group=root
mode=0644
notify:
- restart httpd
tags:
- config
- name: change owner and group attributes of bodhi.pem file
file: >
path="/etc/pki/bodhi/bodhi.pem"
owner=masher
group=masher
tags:
- config
- name: change owner and group attributes of /var/log/bodhi directory
file: path=/var/log/bodhi owner=masher group=masher
tags:
- config
- name: setup /etc/bodhi/mash.conf directory
file: path=/etc/bodhi/mash.conf owner=masher group=masher mode=0755 state=directory
tags:
- config
- name: change type part of SELinux file context
file: path="/home/masher/.cvspass" setype=httpd_sys_script_rw_t state=file
tags:
- config
- name: change type part of SELinux file context
file: path="/var/tmp/bodhi/comps/" setype=httpd_sys_script_rw_t state=directory recurse=yes
tags:
- config
- name: change owner attribute of /var/tmp/bodhi-bz.cookie file
file: >
path=/var/tmp/bodhi-bz.cookie
owner=masher
tags:
- config
- name: install /etc/bodhi/*.mash files
copy: >
src="{{ item }}"
dest="/etc/bodhi/{{ item }}"
owner=masher
mode=0640
with_items:
- f13-updates.mash
- f14-updates.mash
- f14-updates-testing.mash
- f15-updates.mash
- f15-updates-testing.mash
- f16-updates.mash
- f16-updates-testing.mash
- f17-updates.mash
- f17-updates-testing.mash
- f18-updates.mash
- f18-updates-testing.mash
- f19-updates.mash
- f19-updates-testing.mash
- f20-updates.mash
- f20-updates-testing.mash
- el6-epel.mash
- el6-epel-testing.mash
tags:
- config
# tasks for setting up epelmasher
- name: install needed packages
yum: pkg={{ item }} state=installed
with_items:
- repoview
when: epelmasher
tags:
- packages
- name: install bodhi-epel-masher /etc/bodhi/bodhi.cfg file
template: >
src="bodhi-epel-masher.cfg.j2"
dest="/etc/bodhi/bodhi.cfg"
owner=masher
group=masher
mode=0600
when: epelmasher
notify:
- restart httpd
tags:
- config
# tasklist for setting up jobrunner
- name: install bodhi-masher-jobrunner /etc/bodhi/bodhi.cfg file
template: >
src="bodhi-masher-jobrunner.cfg.j2"
dest="/etc/bodhi/bodhi.cfg"
owner=masher
group=masher
mode=0600
when: jobrunner
notify:
- restart httpd
tags:
- config

View file

@ -0,0 +1,143 @@
[global]
##
## Bodhi Production Masher Configuration
##
## $Id: bodhi-prod.cfg.erb,v 1.8 2008/05/21 23:38:07 lmacken Exp $
##
arches = 'i386 x86_64 ppc/ppc64'
# For pushing EPEL updates from the masher
bodhi_url = 'http://localhost/updates'
sqlobject.dburi="notrans_postgres://bodhi:{{ bodhiPassword }}@db-bodhi/bodhi"
masher = None # we are the masher
server.socket_port=8084
server.environment="production"
autoreload.on = False
server.webpath="/updates"
server.log_file = "server.log"
server.log_to_screen = False
server.thread_pool = 50
server.socket_queue_size = 30
# We probably want to have apache do this for us...
#gzipFilter.on = True
session_filter.on = False
base_url_filter.on = True
base_url_filter.use_x_forwarded_host = False
base_url_filter.base_url = 'https://admin.fedoraproject.org'
tg.strict_parameters = True
tg.ignore_parameters = ["_csrf_token"]
# Periodic jobs
jobs = ''
# Query the Fedora Package Database for the list of Critical Path Packages.
critpath.type = 'pkgdb'
# FAS2
#sqlalchemy.dburi="sqlite:///"
fas.url = 'https://admin.fedoraproject.org/accounts/'
identity.provider='jsonfas2'
identity.saprovider.model.visit="fedora.accounts.tgfas.VisitIdentity"
visit.manager="jsonfas2"
visit.saprovider.model="fedora.accounts.tgfas.Visit"
visit.cookie.secure = True
# Our identity that we use to fetch bugzilla details and such
bodhi_password='{{ bodhiBugzillaPassword }}'
bodhi_email = 'updates@fedoraproject.org'
# TurboMail 3.0 settings
mail.on = True
mail.transport = 'smtp'
mail.smtp.server = 'bastion'
# The 'utf-8-qp' encoding causes problems with TurboMail 3.x
# https://fedorahosted.org/bodhi/ticket/648
mail.message.encoding = 'utf-8'
notice_sender = 'updates@fedoraproject.org'
security_team = 'security_respons-members@fedoraproject.org'
release_team_address = 'bodhiadmin-members@fedoraproject.org'
fedora_announce_list = 'package-announce@lists.fedoraproject.org'
fedora_test_announce_list = 'test@lists.fedoraproject.org'
fedora_epel_announce_list = 'epel-package-announce@lists.fedoraproject.org'
fedora_epel_test_announce_list = 'epel-devel@lists.fedoraproject.org'
build_dir = '/mnt/koji/packages'
mashed_dir = '/mnt/koji/mash/updates/'
mashed_stage_dir = '/mnt/koji/mash/updates/'
mash_conf = '/etc/bodhi/mash.conf'
comps_dir = '/var/tmp/bodhi/comps'
base_address = 'https://admin.fedoraproject.org'
#bz_server = 'https://bzprx.vip.phx.redhat.com/xmlrpc.cgi'
bz_server = 'https://bugzilla.redhat.com/xmlrpc.cgi'
bz_cookie = '/var/tmp/bodhi-bz.cookie'
bz_products = 'Fedora,Fedora EPEL,oVirt'
acl_system = 'pkgdb'
pkgdb_url = 'https://admin.fedoraproject.org/pkgdb'
buildsystem = 'koji'
client_cert = '/etc/pki/bodhi/bodhi.pem'
clientca_cert = '/etc/pki/bodhi/fedora-upload-ca.cert'
serverca_cert = '/etc/pki/bodhi/fedora-server-ca.cert'
masher_lock_id = 'FEDORA-EPEL'
master_repomd = 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/%d/i386/repodata/repomd.xml'
fedora_master_repomd = 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/%d/i386/repodata/repomd.xml'
fedora_epel_master_repomd = 'http://download01.phx2.fedoraproject.org/pub/epel/%d/i386/repodata/repomd.xml'
[logging]
[[handlers]]
[[[debug_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='DEBUG'
formatter='full_content'
[[[access_out]]]
class='TimedRotatingFileHandler'
level='INFO'
args="('/var/log/bodhi/access.log', 'D', 7)"
formatter='message_only'
[[[error_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='ERROR'
formatter='full_content'
[[loggers]]
[[[bodhi]]]
level='DEBUG'
qualname='bodhi'
handlers=['debug_out']
propagate=0
[[[allinfo]]]
level='INFO'
handlers=['debug_out']
propagate=0
#[[[access]]]
#level='INFO'
#qualname='turbogears.access'
#handlers=['debug_out']
[[[turbomail]]]
level='INFO'
qualname='turbomail'
handlers=['debug_out']

View file

@ -0,0 +1,159 @@
[global]
##
## Bodhi Production Masher Configuration
##
## $Id: bodhi-prod.cfg.erb,v 1.8 2008/05/21 23:38:07 lmacken Exp $
##
# Release status
# pre-beta enforces the 'Pre Beta' policy defined here:
# https://fedoraproject.org/wiki/Updates_Policy
f21.status = 'pre_beta'
f21.post_beta.mandatory_days_in_testing = 7
f21.post_beta.critpath.num_admin_approvals = 0
f21.post_beta.critpath.min_karma = 2
f21.post_beta.critpath.stable_after_days_without_negative_karma = 14
f21.pre_beta.mandatory_days_in_testing = 3
f21.pre_beta.critpath.num_admin_approvals = 0
f21.pre_beta.critpath.min_karma = 1
sqlobject.dburi="notrans_postgres://bodhi:{{ bodhiPassword }}@db-bodhi/bodhi"
masher = None # we are the masher
server.socket_port=8084
server.environment="production"
autoreload.on = False
server.webpath="/updates"
server.log_file = "server.log"
server.log_to_screen = False
server.thread_pool = 50
server.socket_queue_size = 30
# We probably want to have apache do this for us...
#gzipFilter.on = True
session_filter.on = False
base_url_filter.on = True
base_url_filter.use_x_forwarded_host = False
base_url_filter.base_url = 'https://admin.fedoraproject.org'
tg.strict_parameters = True
tg.ignore_parameters = ["_csrf_token"]
# Periodic jobs
jobs = 'nagmail cache_release_data refresh_metrics approve_testing_updates expire_buildroot_overrides clean_pending_tags'
# Query the Fedora Package Database for the list of Critical Path Packages.
critpath.type = 'pkgdb'
# FAS2
#sqlalchemy.dburi="sqlite:///"
fas.url = 'https://admin.fedoraproject.org/accounts/'
identity.provider='jsonfas2'
identity.saprovider.model.visit="fedora.accounts.tgfas.VisitIdentity"
visit.manager="jsonfas2"
visit.saprovider.model="fedora.accounts.tgfas.Visit"
visit.cookie.secure = True
# Our identity that we use to fetch bugzilla details and such
bodhi_password='{{ bodhiBugzillaPassword }}'
bodhi_email = 'updates@fedoraproject.org'
# TurboMail 3.0 settings
mail.on = True
mail.transport = 'smtp'
mail.smtp.server = 'bastion'
# The 'utf-8-qp' encoding causes problems with TurboMail 3.x
# https://fedorahosted.org/bodhi/ticket/648
mail.message.encoding = 'utf-8'
notice_sender = 'updates@fedoraproject.org'
security_team = 'security_respons-members@fedoraproject.org'
release_team_address = 'bodhiadmin-members@fedoraproject.org'
fedora_announce_list = 'package-announce@lists.fedoraproject.org'
fedora_test_announce_list = 'test@lists.fedoraproject.org'
fedora_epel_announce_list = 'epel-package-announce@lists.fedoraproject.org'
fedora_epel_test_announce_list = 'epel-devel@lists.fedoraproject.org'
build_dir = '/mnt/koji/packages'
mashed_dir = '/mnt/koji/mash/updates/'
mashed_stage_dir = '/mnt/koji/mash/updates/'
mash_conf = '/etc/bodhi/mash.conf'
comps_dir = '/var/tmp/bodhi/comps'
base_address = 'https://admin.fedoraproject.org'
#bz_server = 'https://bzprx.vip.phx.redhat.com/xmlrpc.cgi'
bz_server = 'https://bugzilla.redhat.com/xmlrpc.cgi'
bz_cookie = '/var/tmp/bodhi-bz.cookie'
bz_products = 'Fedora,Fedora EPEL,oVirt'
acl_system = 'pkgdb'
pkgdb_url = 'https://admin.fedoraproject.org/pkgdb'
buildsystem = 'koji'
client_cert = '/etc/pki/bodhi/bodhi.pem'
clientca_cert = '/etc/pki/bodhi/fedora-upload-ca.cert'
serverca_cert = '/etc/pki/bodhi/fedora-server-ca.cert'
masher_lock_id = 'FEDORA'
master_repomd = 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/%d/i386/repodata/repomd.xml'
fedora_master_repomd = 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/%d/i386/repodata/repomd.xml'
fedora_epel_master_repomd = 'http://download01.phx2.fedoraproject.org/pub/epel/%d/i386/repodata/repomd.xml'
arches = 'i386 x86_64'
[logging]
[[handlers]]
[[[debug_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='DEBUG'
formatter='full_content'
[[[access_out]]]
class='TimedRotatingFileHandler'
level='INFO'
args="('/var/log/bodhi/access.log', 'D', 7)"
formatter='message_only'
[[[error_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='ERROR'
formatter='full_content'
[[loggers]]
[[[bodhi]]]
level='DEBUG'
qualname='bodhi'
handlers=['debug_out']
propagate=0
[[[allinfo]]]
level='INFO'
handlers=['debug_out']
propagate=0
#[[[access]]]
#level='INFO'
#qualname='turbogears.access'
#handlers=['debug_out']
[[[turbomail]]]
level='INFO'
qualname='turbomail'
handlers=['debug_out']
[[[urllib3]]]
level='WARN'
qualname='urllib3'
handlers=['debug_out']

View file

@ -0,0 +1,142 @@
[global]
##
## Bodhi Production Masher Configuration
##
## $Id: bodhi-prod.cfg.erb,v 1.8 2008/05/21 23:38:07 lmacken Exp $
##
sqlobject.dburi="notrans_postgres://bodhi:{{ bodhiPassword }}@db-bodhi/bodhi"
masher = None # we are the masher
server.socket_port=8084
server.environment="production"
autoreload.on = False
server.webpath="/updates"
server.log_file = "server.log"
server.log_to_screen = False
server.thread_pool = 50
server.socket_queue_size = 30
# We probably want to have apache do this for us...
#gzipFilter.on = True
session_filter.on = False
base_url_filter.on = True
base_url_filter.use_x_forwarded_host = False
base_url_filter.base_url = 'https://admin.fedoraproject.org'
tg.strict_parameters = True
tg.ignore_parameters = ["_csrf_token"]
# Periodic jobs
jobs = ''
# Query the Fedora Package Database for the list of Critical Path Packages.
# This pkgdb feature is currently broken in staging.
{% if environment == "production" %}
critpath.type = 'pkgdb'
{% endif %}
# FAS2
#sqlalchemy.dburi="sqlite:///"
fas.url = 'https://admin.fedoraproject.org/accounts/'
identity.provider='jsonfas2'
identity.saprovider.model.visit="fedora.accounts.tgfas.VisitIdentity"
visit.manager="jsonfas2"
visit.saprovider.model="fedora.accounts.tgfas.Visit"
visit.cookie.secure = True
# Our identity that we use to fetch bugzilla details and such
bodhi_password='{{ bodhiBugzillaPassword }}'
bodhi_email = 'updates@fedoraproject.org'
mail.on = True
mail.server = 'bastion'
notice_sender = 'updates@fedoraproject.org'
security_team = 'security_respons-members@fedoraproject.org'
release_team_address = 'bodhiadmin-members@fedoraproject.org'
fedora_announce_list = 'package-announce@lists.fedoraproject.org'
fedora_test_announce_list = 'test@lists.fedoraproject.org'
fedora_epel_announce_list = 'epel-package-announce@lists.fedoraproject.org'
fedora_epel_test_announce_list = 'epel-devel@lists.fedoraproject.org'
build_dir = '/mnt/koji/packages'
mashed_dir = '/mnt/koji/mash/updates/'
mashed_stage_dir = '/mnt/koji/mash/updates/'
mash_conf = '/etc/bodhi/mash.conf'
comps_dir = '/var/tmp/bodhi/comps'
base_address = 'https://admin.fedoraproject.org'
#bz_server = 'https://bzprx.vip.phx.redhat.com/xmlrpc.cgi'
bz_server = 'https://bugzilla.redhat.com/xmlrpc.cgi'
bz_cookie = '/var/tmp/bodhi-bz.cookie'
bz_products = 'Fedora,Fedora EPEL,oVirt'
acl_system = 'pkgdb'
pkgdb_url = 'https://admin.fedoraproject.org/pkgdb'
buildsystem = 'koji'
client_cert = '/etc/pki/bodhi/bodhi.pem'
clientca_cert = '/etc/pki/bodhi/fedora-upload-ca.cert'
serverca_cert = '/etc/pki/bodhi/fedora-server-ca.cert'
masher_lock_id = 'FEDORA'
master_repomd = 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/%d/i386/repodata/repomd.xml'
fedora_master_repomd = 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/%d/i386/repodata/repomd.xml'
fedora_epel_master_repomd = 'http://download01.phx2.fedoraproject.org/pub/epel/%d/i386/repodata/repomd.xml'
arches = 'armhfp i386 x86_64'
[logging]
[[handlers]]
[[[debug_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='DEBUG'
formatter='full_content'
[[[access_out]]]
class='TimedRotatingFileHandler'
level='INFO'
args="('/var/log/bodhi/access.log', 'D', 7)"
formatter='message_only'
[[[error_out]]]
class='TimedRotatingFileHandler'
args="('/var/log/bodhi/server.log', 'D', 7)"
level='ERROR'
formatter='full_content'
[[loggers]]
[[[bodhi]]]
level='DEBUG'
qualname='bodhi'
handlers=['debug_out']
propagate=0
[[[allinfo]]]
level='INFO'
handlers=['debug_out']
propagate=0
#[[[access]]]
#level='INFO'
#qualname='turbogears.access'
#handlers=['debug_out']
[[[turbomail]]]
level='INFO'
qualname='turbomail'
handlers=['debug_out']
[[[urllib3]]]
level='WARN'
qualname='urllib3'
handlers=['debug_out']

View file

@ -0,0 +1 @@
10.5.88.0/24 via 10.5.127.254 dev eth1

View file

@ -0,0 +1,25 @@
- name: route config for netapp network
copy: src=route-eth1 dest=/etc/sysconfig/network-scripts/route-eth1
- name: check for netapp route
command: ip route show
register: netapproute
always_run: yes
changed_when: "1 != 1"
- name: run netapp route
command: /etc/sysconfig/network-scripts/ifup-routes eth1
# when: netapproute.stdout.find("10.5.88.0") == -1 and not inventory_hostname.startswith('arm')
- name: nfs mount points
mount: >
name=/mnt/{{ mnt_dir }}
src=vtap-fedora-nfs01.storage.phx2.redhat.com:/vol/{{ nfs_src_dir }}
fstype=nfs
opts=ro,hard,bg,intr,noatime,nodev,nosuid
passno=0
dump=0
state=mounted
- name: make a mnt/ link
file: state=link src=/mnt/{{ mnt_dir }}/{{ mnt_link }} dest=/mnt/{{ mnt_link }}