Replace all references to "environment" with "env".

It turns out that "environment" is reserved in ansible.
    See: http://ur1.ca/eb6gp
This commit is contained in:
Ralph Bean 2013-06-13 16:23:30 +00:00
parent 568e6ad0d8
commit 96610bfb4f
7 changed files with 13 additions and 15 deletions

View file

@ -2,7 +2,7 @@ pam_url:
{
settings:
{
{% if environment == 'staging' %}
{% if env == 'staging' %}
url = "https://fas-all.phx2.fedoraproject.org:8443/"; # URI to fetch
{% elif datacenter == 'phx2' %}
url = "https://fas-all.stg.phx2.fedoraproject.org:8443/"; # URI to fetch

View file

@ -2,14 +2,12 @@
config = dict(
# Set this to dev if you're hacking on fedmsg or an app locally.
# Set to stg or prod if running in the Fedora Infrastructure.
{% if environment == 'staging' %}
{% if env == 'staging' %}
environment="stg",
{% else %}
environment="prod",
{% endif %}
# XXX - the ansible environment var is "${environment}".
# This used to be set to 1 for safety, but it turns out it was
# excessive. It is the number of seconds that fedmsg should sleep
# after it has initialized, but before it begins to try and send any

View file

@ -1,4 +1,4 @@
{% if environment == 'staging' %}
{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
non_phx_suffix = 'stg.fedoraproject.org'
{% else %}
@ -28,7 +28,7 @@ config = dict(
"tcp://releng01.%s:3000" % suffix,
"tcp://releng01.%s:3001" % suffix,
],
{% if not environment == 'staging' %}
{% if not env == 'staging' %}
"bodhi.app03": [
"tcp://app03.%s:300%i" % (suffix, i)
for i in range(8)
@ -68,7 +68,7 @@ config = dict(
"tcp://fas01.%s:30%02i" % (suffix, i)
for i in range(32)
],
{% if environment != 'staging' %}
{% if env != 'staging' %}
"fas.fas02": [
"tcp://fas02.%s:30%02i" % (suffix, i)
for i in range(32)
@ -83,7 +83,7 @@ config = dict(
"tcp://packages01.%s:30%02i" % (suffix, i)
for i in range(32)
],
{% if environment != 'staging' %}
{% if env != 'staging' %}
"fedoratagger.packages02": [
"tcp://packages02.%s:30%02i" % (suffix, i)
for i in range(32)
@ -92,7 +92,7 @@ config = dict(
"busmon_consumers.busgateway01": [
"tcp://busgateway01.%s:3000" % suffix,
],
{% if environment != 'staging' %}
{% if env != 'staging' %}
"supybot.value03": [
"tcp://value03.%s:3000" % suffix,
],
@ -109,7 +109,7 @@ config = dict(
for i in range(6)
],
{% if environment != 'staging' %}
{% if env != 'staging' %}
# fedorahosted trac runs as 4 processes with 4 threads each.
"trac.hosted03": [
"tcp://hosted03.%s:30%02i" % (vpn_suffix, i)

View file

@ -1,4 +1,4 @@
{% if environment == 'staging' %}
{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
non_phx_suffix = 'stg.fedoraproject.org'
{% else %}
@ -16,7 +16,7 @@ config = dict(
"tcp://app02.%s:301%i" % (suffix, i)
for i in range(6)
],
{% if not environment == 'staging' %}
{% if not env == 'staging' %}
"pkgdb.app03": [
"tcp://app03.%s:301%i" % (suffix, i)
for i in range(6)

View file

@ -1,4 +1,4 @@
{% if environment == 'staging' %}
{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
non_phx_suffix = 'stg.fedoraproject.org'
{% else %}

View file

@ -1,5 +1,5 @@
{% if environment == 'staging' %}
{% if env == 'staging' %}
suffix = "stg.phx2.fedoraproject.org"
app_hosts = [
"app01.stg.phx2.fedoraproject.org",

View file

@ -1,3 +1,3 @@
---
freezes: false
environment: staging
env: staging