Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions conf/pillar/devs.sls
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
users:
daaray:
public_key:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDAjwyvvD6fojZ47GDqEBR1uN8dEBtGTzyFnQ6rlJT01Lw628PhSY+XwZxG6RfQt2+cFVkYo9cGpHWyGM4hP65Ft1XNkOiXAsa9yoWykOAlqpOEMLEHZ0w5NsDP+uCextuVIEIaBu1pcvKgUlcSJlDhoCUF00DBbkYDpNKRY2f1AN49HdfXB+xGGKnb6xJtb4487fDsE10pGbPRWsvL2w2FzHFwt7a/1rQ03y6sFHZhURSW4jCwBKAvdNazVrL3A/cVXJEBa9Q1LSfvG18ILk8GOVT7gmQLLFOJAeSWK576PjIizBqB1wgIi3sSjCWS22BocONrifqQ9v/URA4E68R dray@caktusgroup.com
dpoirier:
public_key:
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAmFIbg8mdvn7MQajwpBWXdK+utvP7+d0f391Z+v2r79Pam3/9j8VFBH8mioAmp9b2iFL6DZeDOYWOIM5R3U/bIVvJ8/2kZpE+rItJRyuqYQp3ZbOkBTxmv1avRfX4LSaM4uvurtSHK+VFbRXRlSKr7gURM7d7pUXTsuqAuGiJeBRc492RhKsaRf21/7+X8LyUuIWmaGn/CRgn6SBtq1xTilCAlkiRFBbUR++qkHWonfImAeHN6EiIx9fwtvfjtJA8kW49t75io9HoIovA24psyfZZuMFYkiPzDtPDXSm0fhwx0IbAZc2W1iWqYLbrBZM7A3QGyF61JeafxuC+Jzm3Ow== dpoirier@caktusgroup.com
mlassiter:
public_key:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJ9no08KPk8en6zGN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Ae5jQFxmCPkkp5+cKFz/FpRq7zQJIDfkanr54hHYeC0t4wzM= scottm@caktus005
copelco:
public_key:
- ssh-dss AAAAB3NzaC1kc3MAAACBAP/dCNcAJED+pBsEwH01E4NU2xrvoB6H5gXkvQHWIKUuMF3MWXgSGhKpgVqLJKh+d0gwuKyI9344HM5dFs4z3E0JhI7Fg4uXIYu1SwuqnxO+D18WLVGt4gCn57JCjLy/c8LJWAHJWFb2v9t4fayC+oBiyEvpjI6VYIJnSvO3D4tjAAAAFQCNzcKi0sehN1Jw+zB6ccMlHt5E6wAAAIEAnW18UHG/O+RIkJazTJ7qFlOb79RS1nnvnHAvtfuiAPIBmeJcKoZkiQzeBYtFereSRHmSug9DsqHK6C5PrP36UMZYhDkqqp5gpJexmokI2kt3AVxJwro7cjy6Tq+0yt+lwqH4JEblybk7yPeRNC1ihnp2CSipC5LP1PydIcgN9/UAAACAeH1OxUzgCfpM06cfKL57gtjIS34ryCdkT2oYfYOANa8vahN2JqxB004o+z2CnQ9DkTqzzf9jUYI/qal19+zYhn8Bd/FdPVp+VTfRpR17fQKuTWrnF7g6jNVN2ltwHo6o99vrCzjHhJHZ2EXOODzAUrACptyfQv/ZCutkjAg44YE= copelco@montgomery.local
# Replace username1 and username2 with actual developer usernames and their
# public ssh keys
#users:
# username1:
# public_key:
# - ssh-rsa AAA...ABX user@example.com
# username2:
# public_key:
# - ssh-rsa AAA...ABX user2@example.com
8 changes: 3 additions & 5 deletions conf/pillar/secrets.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@ secrets:
newrelic_license_key: XXXXXX
# Uncomment if using celery worker configuration
# BROKER_PASSWORD: XXXXXX
# Only define MYSQL_PASSWORD if you need MySQL for migrations
# MYSQL_PASSWORD: XXXXXX

# Iraq:
ONA_DOMAIN_IQ: ona-staging.caktusgroup.com
ONA_DOMAIN_IQ: ona-staging.example.com
ONA_API_ACCESS_TOKEN_IQ: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONA_PACKAGE_FORM_ID_IQ: 4
ONA_DEVICEID_VERIFICATION_FORM_ID_IQ: 5

# Jordan:
ONA_DOMAIN_JO: ona-staging.caktusgroup.com
ONA_DOMAIN_JO: ona-staging.example.com
ONA_API_ACCESS_TOKEN_JO: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONA_PACKAGE_FORM_ID_JO: 4
ONA_DEVICEID_VERIFICATION_FORM_ID_JO: 5

# Turkey:
ONA_DOMAIN_TR: ona-staging.caktusgroup.com
ONA_DOMAIN_TR: ona-staging.example.com
ONA_API_ACCESS_TOKEN_TR: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONA_PACKAGE_FORM_ID_TR: 4
ONA_DEVICEID_VERIFICATION_FORM_ID_TR: 5
Expand Down
4 changes: 1 addition & 3 deletions docs/backups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ How to check that backups are working
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)

* Get access to the GPG keypair used for the backups. (Someone on the project can
share them via Lastpass.) The Lastpass entry is named "Caktus Admin GPG Key Note".
Read the comments on the Lastpass entry for instructions to add the keypair to
* Get access to the GPG keypair used for the backups. Add the keypair to
your GPG keypair.

* Decrypt the file::
Expand Down
17 changes: 8 additions & 9 deletions docs/new_environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ a new server, to be referred to as the ``testing`` environment.
a light-gray selector on a black background.)
* Use an AMI (image) of Ubuntu 12.04 server, 64-bit, EBS - e.g. ubuntu-precise-12.04-amd64-server-20140408 (ami-d1f308a6)
* Be sure to save the private key that is created, or use
an existing one you already own. (Caktus: key pairs are stored
in LastPass, search for CTS.) The AWS private key is only
an existing one you already own. The AWS private key is only
needed until CTS has been deployed the first time, but it
is essential until then.

Expand Down Expand Up @@ -62,7 +61,7 @@ to multiple places in the CTS configuration files.

For the purposes of this documentation, we'll assume we're adding
a new environment named ``testing``, which will be accessed
at ``cts-testing.caktusgroup.com``.
at ``cts-testing.example.com``.

#. Edit the fabfile (`fabfile.py` in the top directory).
Create a new task near the top, modeled
Expand All @@ -72,7 +71,7 @@ at ``cts-testing.caktusgroup.com``.
@task
def testing():
env.environment = 'testing'
env.hosts = ['cts-testing.caktusgroup.com']
env.hosts = ['cts-testing.example.com']
env.master = env.hosts[0]

#. In the fabfile, add the new environment to ``SERVER_ENVIRONMENTS`` near the top::
Expand All @@ -94,7 +93,7 @@ at ``cts-testing.caktusgroup.com``.

environment: testing

domain: cts-testing.caktusgroup.com
domain: cts-testing.example.com

repo:
url: git@github.com:theirc/CTS.git
Expand Down Expand Up @@ -144,27 +143,27 @@ at ``cts-testing.caktusgroup.com``.
newrelic_license_key: zzzzz

# Iraq:
ONA_DOMAIN_IQ: ona-staging.caktusgroup.com
ONA_DOMAIN_IQ: ona-staging.example.com
ONA_API_ACCESS_TOKEN_IQ: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONA_PACKAGE_FORM_ID_IQ: 4
ONA_DEVICEID_VERIFICATION_FORM_ID_IQ: 5

# Jordan:
ONA_DOMAIN_JO: ona-staging.caktusgroup.com
ONA_DOMAIN_JO: ona-staging.example.com
ONA_API_ACCESS_TOKEN_JO: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONA_PACKAGE_FORM_ID_JO: 4
ONA_DEVICEID_VERIFICATION_FORM_ID_JO: 5

# Turkey:
ONA_DOMAIN_TR: ona-staging.caktusgroup.com
ONA_DOMAIN_TR: ona-staging.example.com
ONA_API_ACCESS_TOKEN_TR: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONA_PACKAGE_FORM_ID_TR: 4
ONA_DEVICEID_VERIFICATION_FORM_ID_TR: 5

# Uncomment and update username/password to enable HTTP basic auth
# Comment out to enable access to the public to the site
http_auth:
caktus: abc123
testuser: testpass

github_deploy_key: |
-----BEGIN RSA PRIVATE KEY-----
Expand Down
2 changes: 1 addition & 1 deletion docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ e.g. ``conf/pillar/staging/env.sls`` might contain::

environment: staging

domain: cts-staging.caktusgroup.com
domain: cts-staging.example.com

repo:
url: git@github.com:theirc/CTS.git
Expand Down
10 changes: 4 additions & 6 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,19 @@
@task
def testing():
env.environment = 'testing'
env.hosts = ['ec2-54-146-90-35.compute-1.amazonaws.com']
env.hosts = ['cts-testing.example.com']


@task
def staging():
env.environment = 'staging'
env.hosts = ['cts-staging.rescue.org']
env.hosts = ['cts-staging.example.com']


@task
def production():
env.environment = 'production'
# This hostname for our own use to connect to the server to manage it.
# IRC might choose to use whatever domain they want for the web site.
env.hosts = ['cts.rescue.org']
env.hosts = ['cts.example.com']


@task
Expand All @@ -52,7 +50,7 @@ def instance(name):
if name not in INSTANCES:
abort("%s is not a valid instance; instances are %s" % (name, INSTANCES))
env.instance = name
# If these lines change, change conf/salt/project/db/init_sls
# If these lines change, change conf/salt/project/db/init.sls
# and cts/settings/staging.py.
env.db_name = 'cts_%s' % env.instance
env.db_owner = 'cts_%s' % env.instance
Expand Down