prepare modernpaste01.phx2
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
82242717fb
commit
c85d395719
4 changed files with 27 additions and 5 deletions
14
inventory/host_vars/modernpaste01.phx2.fedoraproject.org
Normal file
14
inventory/host_vars/modernpaste01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
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/
|
||||||
|
|
||||||
|
mem_size: 4096
|
||||||
|
volgroup: /dev/vg_virthost03
|
||||||
|
eth0_ip: 10.5.126.230
|
||||||
|
vmhost: virthost03.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
||||||
|
tcp_ports: [22, 80, 443]
|
|
@ -186,6 +186,9 @@ mdapi01.phx2.fedoraproject.org
|
||||||
[mdapi-stg]
|
[mdapi-stg]
|
||||||
mdapi01.stg.phx2.fedoraproject.org
|
mdapi01.stg.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
[modernpaste]
|
||||||
|
modernpaste01.phx2.fedoraproject.org
|
||||||
|
|
||||||
[modernpaste-stg]
|
[modernpaste-stg]
|
||||||
modernpaste01.stg.phx2.fedoraproject.org
|
modernpaste01.stg.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
# NOTE: make sure there is room/space for this server on the vmhost
|
# 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
|
# 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"
|
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=modernpaste-stg:modernpaste"
|
||||||
|
|
||||||
- name: dole out the generic configuration
|
- name: dole out the generic configuration
|
||||||
hosts: modernpaste-stg
|
hosts: modernpaste-stg:modernpaste
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- rkhunter
|
- rkhunter
|
||||||
#- nagios/client
|
- nagios/client
|
||||||
- hosts
|
- hosts
|
||||||
- fas_client
|
- fas_client
|
||||||
- sudo
|
- sudo
|
||||||
- collectd/base
|
- collectd/base
|
||||||
#- fedmsg/base
|
- fedmsg/base
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/yumrepos.yml"
|
- include: "{{ tasks }}/yumrepos.yml"
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
- name: dole out the service-specific config
|
- name: dole out the service-specific config
|
||||||
hosts: modernpaste-stg
|
hosts: modernpaste-stg:modernpaste
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
import config
|
import config
|
||||||
import constants
|
import constants
|
||||||
|
|
||||||
|
{% if env == 'staging' %}
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgres://{{modernpaste_stg_db_user}}:{{modernpaste_stg_db_password}}@db01/modernpaste'
|
SQLALCHEMY_DATABASE_URI = 'postgres://{{modernpaste_stg_db_user}}:{{modernpaste_stg_db_password}}@db01/modernpaste'
|
||||||
|
{% else %}
|
||||||
|
SQLALCHEMY_DATABASE_URI = 'postgres://{{modernpaste_db_user}}:{{modernpaste_db_password}}@db01/modernpaste'
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
|
|
||||||
# Flask session secret key
|
# Flask session secret key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue