initial modernpaste01.stg stuff

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2016-09-06 00:41:48 +00:00
parent 9619a2cad4
commit b8e0a2d732
5 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,12 @@
---
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-fedora-24
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/24/Server/x86_64/os/
volgroup: /dev/vg_guests
eth0_ip: 10.5.126.221
vmhost: virthost11.phx2.fedoraproject.org
datacenter: phx2

View file

@ -195,6 +195,9 @@ mdapi01.phx2.fedoraproject.org
[mdapi-stg]
mdapi01.stg.phx2.fedoraproject.org
[modernpaste-stg]
modernpaste01.stg.phx2.fedoraproject.org
[bodhi-backend]
# This one handles the mashing/releng stuff
# 01 is rhel7, 03 is Fedora 24
@ -636,6 +639,7 @@ mdapi01.stg.phx2.fedoraproject.org
ipa01.stg.phx2.fedoraproject.org
ipsilon01.stg.phx2.fedoraproject.org
memcached01.stg.phx2.fedoraproject.org
modernpaste01.stg.phx2.fedoraproject.org
noc01.stg.phx2.fedoraproject.org
notifs-backend01.stg.phx2.fedoraproject.org
notifs-web01.stg.phx2.fedoraproject.org

View file

@ -0,0 +1,50 @@
# create a new modernpaste server
# NOTE: should be used with --limit most of the time
# NOTE: make sure there is room/space for this server on the vmhost
# NOTE: most of these vars_path come from group_vars/mirrorlist or from hostvars
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=modernpaste-stg"
- name: dole out the generic configuration
hosts: modernpaste-stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
#- nagios/client
- hosts
- fas_client
- sudo
- collectd/base
#- fedmsg/base
tasks:
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: dole out the service-specific config
hosts: modernpaste-stg
user: root
gather_facts: True
roles:
- modernpaste
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"

View file

@ -0,0 +1,8 @@
[codeblock-modern-paste]
name=Copr repo for modern-paste owned by codeblock
baseurl=https://copr-be.cloud.fedoraproject.org/results/codeblock/modern-paste/fedora-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/codeblock/modern-paste/pubkey.gpg
enabled=1
enabled_metadata=1

View file

@ -0,0 +1,24 @@
---
- name: setup the copr repo
copy: >
src="codeblock-modern-paste-fedora-24.repo"
dest="/etc/yum.repos.d/modern-paste.repo"
owner=root
group=root
mode=0644
tags:
- config
- modernpaste
- repo
- packages
- name: install needed packages
package: pkg={{ item }} state=present
with_items:
- python-psycopg2
- httpd
- mod_wsgi
- modern-paste
tags:
- packages
- modernpaste