Matthew Somerville
f9190f3978
Add LOCAL_DOMAIN variable.
...
I wanted to use Mastodon on a server whose hostname didn’t match the domain to be used.
2018-08-23 21:05:22 +01:00
Sadiq Saif
65e8c564fd
Bump Mastodon git clone 2.4.1
2018-06-12 22:38:32 -04:00
staticsafe
03239c1b88
getting weird failures in VAPID key generation trying something
2018-05-28 13:28:15 -04:00
staticsafe
e1743c9425
Specify /bin/bash as the default shell for mastodon user
2018-05-28 13:11:02 -04:00
staticsafe
a566baf0f0
Add when conditionals for xenial vs bionic deps
2018-05-28 12:49:23 -04:00
Sadiq Saif
e27d11a311
use {{ ansible_distribution_release }} instead of xenial
...
This makes this task Ubuntu version agnostic
2018-05-28 12:22:57 -04:00
Sadiq Saif
043286087a
Bump Ruby version to 2.5.1
2018-05-28 12:12:03 -04:00
Sadiq Saif
919a296d3f
Bump Mastodon clone version to 2.4.0
2018-05-28 12:11:08 -04:00
Sadiq Saif
4df643e4a0
Bump Mastodon version clone to 2.3.3
2018-04-02 19:22:19 -04:00
Sadiq Saif
b0073023b1
Fix typo for letsencrypt-renew.sh script
2018-03-22 09:23:44 -04:00
Sadiq Saif
d4eee4e1b9
Bump Ruby version to 2.5.0
2018-02-26 13:00:24 -05:00
Sadiq Saif
9527b8484b
Update Mastodon version clone to v2.2.0
2018-02-06 12:13:49 -05:00
staticsafe
8e2f35cc23
Update Mastodon version checkout to v2.1.3.
2018-01-21 11:24:08 -05:00
staticsafe
2d31d38758
Update Mastodon version checkout to 2.1.0 in roles/mastodon-app/tasks/main.yml
2017-12-15 14:25:40 -05:00
staticsafe
f34f5a5eb6
We only need to copy .env.production once now
...
setting the SECRET_KEY_BASE environtment variable to 0 allows us to generate a VAPID_KEY
2017-12-11 12:20:30 -05:00
staticsafe
280efc749b
Oops had environment twice in roles/mastodon-config/tasks/main.yml
2017-12-11 12:15:54 -05:00
staticsafe
caa96d235f
Try setting SECRET_KEY_BASE to 0 when generating VAPID_KEYS
2017-12-11 12:14:43 -05:00
staticsafe
75d0e0fb45
We now build Ruby with jemalloc, set RUBY_CONFIGURE_OPTS
...
Added needed dependencies to common role
2017-12-11 11:35:05 -05:00
staticsafe
7c2251247a
Specify why we are stopping Mastodon services in roles/mastodon-postgresql/tasks/main.yml
2017-11-27 14:05:25 -05:00
staticsafe
e7b7b1e51b
mastodon-systemd role should run earlier as we want to stop services in mastodon-postgresql/tasks/main.yml
2017-11-27 13:25:13 -05:00
staticsafe
c13efa8bd4
Set correct rbenv+ruby-build PATH everywhere needed
2017-11-27 13:18:44 -05:00
staticsafe
c73e413727
Wrong indentation for a become in roles/mastodon-postgresql/tasks/main.yml
2017-11-27 12:19:45 -05:00
staticsafe
f8df9d04d2
Quote template variables in roles/mastodon-postgresql/tasks/main.yml
2017-11-27 12:18:08 -05:00
staticsafe
16b6f2dc82
Move group_vars/all.sample to root of playbook.
2017-11-27 12:14:00 -05:00
staticsafe
7c8d869f7c
Switch over to using a variable for database name
...
Also addition to PostgreSQL role to drop any existing database with the same name to allow for playbook reruns.
2017-11-27 12:12:42 -05:00
staticsafe
08fd4dc970
Change name of task in roles/mastodon-config/tasks/main.yml
2017-11-27 11:58:18 -05:00
staticsafe
6f503dedfe
Run assets precompile before database setup
...
This is so that if the precompile is killed due to OOM, you can just restart the playbook without needing to change the database
name in .env.production as it isn't created yet.
2017-11-27 11:55:32 -05:00
staticsafe
5f12cf17d1
Try restarting the mastodon services in roles/mastodon-config/tasks/main.yml
2017-11-27 11:48:28 -05:00
staticsafe
ba11593f07
We now use ansible_nodename so we don't need group_vars/all.sample
2017-11-26 22:47:25 -05:00
staticsafe
10e493ca8c
We no longer need the mastodon-webpush role, removed.
2017-11-26 22:36:49 -05:00
staticsafe
533db0d400
Ignore errors first time we copy .env.production
2017-11-26 22:19:35 -05:00
staticsafe
6b24b411b1
let's try registered variables with VAPID keys
2017-11-26 22:15:43 -05:00
staticsafe
f7bd49571e
Use stdout value in roles/mastodon-config/templates/.env.production.sample
2017-11-26 22:07:21 -05:00
staticsafe
d5d00bb815
it should be OTP_SECRET in roles/mastodon-config/templates/.env.production.sample
2017-11-26 22:01:35 -05:00
staticsafe
c332e83312
Try registered variables to template app secrets
2017-11-26 22:00:05 -05:00
staticsafe
75711b6fc8
Remove environment setting from shell command
2017-11-26 21:23:58 -05:00
staticsafe
c387f83ae7
add SAFETY_ASSURED=1 to roles/mastodon-config/tasks/main.yml
2017-11-26 21:11:21 -05:00
staticsafe
d659d42bda
set RAILS_ENV=production using shell instead
2017-11-26 21:06:30 -05:00
staticsafe
5bff8365ad
Add mastodon-config role.
2017-11-26 20:58:45 -05:00
staticsafe
9ef4926ccd
Move group_vars/all to root of playbook
2017-11-26 19:59:24 -05:00
staticsafe
4c106708b3
Add roles/group_vars/all so we don't have to use the CLI.
2017-11-26 19:56:47 -05:00
staticsafe
ff181dd075
Add mastodon-webpush role
2017-11-26 19:34:31 -05:00
staticsafe
68d0032b44
Add mastodon-systemd role.
2017-11-26 19:03:28 -05:00
staticsafe
e3090a4395
Add letsencrypt-renew.sh and copy of renewal script
2017-11-26 18:24:59 -05:00
staticsafe
baf17287a7
Use template instead of copy in roles/mastodon-nginx/tasks/main.yml
2017-11-26 18:11:23 -05:00
staticsafe
84fd8d2662
Add email to letsencrypt command
2017-11-26 18:08:27 -05:00
staticsafe
cded7b6bc5
Add mastodon-nginx role.
2017-11-26 18:03:37 -05:00
staticsafe
e8e2dd6b00
redis tools package should be redis-tools
2017-11-26 17:39:11 -05:00
staticsafe
b9c8c0a9b0
Add mastodon-redis role
2017-11-26 17:37:24 -05:00
staticsafe
2288bae23e
roles/mastodon-postgresql/tasks/main.yml needed an extra - at top
2017-11-26 16:52:25 -05:00
staticsafe
5265db132c
Add mastodon-postgresql role.
2017-11-26 16:50:21 -05:00
staticsafe
852b28f166
Add a comment to roles/ruby/tasks/main.yml
2017-11-26 16:40:26 -05:00
staticsafe
4d8e42dc8a
Add mastodon-app role.
2017-11-26 16:32:58 -05:00
staticsafe
14a98c87b2
Use || instead of && in roles/ruby/tasks/main.yml
2017-11-24 15:39:07 -05:00
staticsafe
56c44c33f5
Create backup when copying bashrc in ruby/tasks/main.yml
2017-11-24 15:37:05 -05:00
staticsafe
b23eebba41
Use a copied .bashrc file instead of shell commands
2017-11-24 15:35:56 -05:00
staticsafe
9c515da6b0
Define full path to rbenv for install
...
PATH doesn't seem to be set correctly previously or isn't in effect
2017-11-24 15:12:05 -05:00
staticsafe
8a3fd461c8
Add ruby role
2017-11-24 15:08:52 -05:00
staticsafe
5832eaf802
jfc quote was in the wrong place
2017-11-24 12:56:05 -05:00
staticsafe
234223d199
Quotes yet again
2017-11-24 12:55:15 -05:00
staticsafe
af04c0d333
Remove an extraneous quote
...
it's all about the quotes today
2017-11-24 12:54:31 -05:00
staticsafe
2d20f964b8
And less quotes
...
jeez Ansible make up your mind
2017-11-24 12:53:42 -05:00
staticsafe
03420f6182
More quotes needed in roles/common/tasks/main.yml
2017-11-24 12:53:03 -05:00
staticsafe
b37603c18e
Should be apt_repository instead of apt-repository
2017-11-24 12:51:54 -05:00
staticsafe
aaafece287
turns out apt_repository needs quotes
2017-11-24 12:50:47 -05:00
staticsafe
793b3e72e0
maybe apt_repository doesn't work with with_items
2017-11-24 12:49:08 -05:00
staticsafe
3ab2524ba0
Fix some indentation errors in common/tasks/main.yml
2017-11-24 12:47:25 -05:00
staticsafe
ea4cba1723
Role should have stuff that was in site.yml
2017-11-24 12:44:44 -05:00
staticsafe
448cfc4d08
Add common role for mastible playbook.
2017-11-24 12:36:57 -05:00