Commit Graph
100 Commits
Author SHA1 Message Date
greg bd720b0189 Use the regular SQL schema (not the new one for all vhosts into one db) 2019-05-14 11:24:08 +02:00
greg d9390a4b92 Don't use a concatenated cert for kosmos.org anymore 2019-05-13 18:53:45 +02:00
greg 5d1aeb7b68 Create a cert for 5apps.com and improve the renewal script 2019-05-13 18:52:39 +02:00
greg 88204ea91b Update the config to the current one running on andromeda 2019-05-13 17:59:04 +02:00
greg ad23530653 Add the firewall rules for ejabberd
Includes the missing 5223 port in the andromeda_firewall recipe too
2019-05-13 17:08:21 +02:00
greg b44a226753 Fix the postgresql setup for the ejabberd cookbook
Create a ejabberd user with a password from an encrypted data bag
2019-05-10 11:43:52 +02:00
greg 3884f9922e Merge branch 'master' into feature/7-ejabberd_rebased_2 2019-05-10 11:08:09 +02:00
greg 6b38396c3c Remove the 5apps hubots from dev 2019-05-08 17:53:36 +02:00
greg ba8b73a4dd Add mastodon to andromeda 2019-05-08 17:00:23 +02:00
greg 1e7f21bd41 Remove the mastodon recipes from dev 2019-05-08 17:00:07 +02:00
greg 90815bb274 Fix the postgresql credentials for the backup attributes 2019-05-08 16:58:47 +02:00
greg 7271065c5b Add names to the execute resources 2019-05-08 16:58:31 +02:00
greg 81192f7277 Fix the backup config format to work with backup 5 2019-05-08 12:26:47 +02:00
greg c4d5a2c6bb Remove the ipfs cluster recipe from dev's run list 2019-05-07 14:57:47 +02:00
greg 36e8950eba Update ipfs again, to fix a bug in the ipfs_config resource
It could not handle integers
2019-05-07 14:56:40 +02:00
greg 14f0fbc7be Use the last commit of the ipfs PR 2019-05-07 14:41:57 +02:00
greg 4b0818177d Use an unreleased version of our ipfs cookbook to lower RAM usage 2019-05-07 14:35:53 +02:00
greg 4fe3b8e8e7 Move botka and hal8000 from dev to barnard
Refs #51
2019-05-07 14:10:07 +02:00
greg 37aa87df5e Add a missing dependency on the zlib1g-dev for the backup gem
Fixes #56
2019-05-03 10:58:39 +02:00
greg 5bb34554a7 The nginx_certbot_site resource does nothing in the dev environment
No need to check for the environment in recipes that use the resource

Closes #54
2019-05-03 10:55:02 +02:00
greg 64a3444c40 Use the kredits_github role on barnard
This sets up the app and its nginx reverse proxy
2019-05-02 12:40:38 +02:00
greg 9284b4fe85 Add the missing kredits-web::nginx recipe for barnard
This was causing the firewall rules for ports 80 and 443 to be deleted

Refs #35
2019-05-02 11:33:53 +02:00
greg 61607f77c4 Update ipfs-cluster to 0.10.1
ipfs-cluster-ctl commands such as `pin rm` now work

Closes #48
2019-04-30 12:58:10 +02:00
greg 696d7cd561 Set up kosmos-hubot to use ipfs-cluster
That way a new document will be added and pinned on all members of the
cluster

Fixes #46
2019-04-26 16:54:02 +02:00
greg ed8a8f1225 Update the ipfs cookbook to set a maximum number of files
The default is too low and was treated like a low disk space alert by
ipfs and ipfs-cluster, set it to 64000

Closes #44
2019-04-26 15:58:37 +02:00
greg c186ebf703 Update go-ipfs to 0.4.20
https://github.com/ipfs/go-ipfs/blob/v0.4.20/CHANGELOG.md
2019-04-25 19:20:16 +02:00
greg 2cf611279b Make the systemd unit for kredits-github not world readable
This way the environment variables are kept secret. Only root can read
`/proc/$ID/environ`
2019-04-23 14:12:55 +02:00
greg f5051d6352 Revert "Move the environment variables to an EnvironmentFile"
This reverts commit 79023a65f2.
2019-04-23 14:12:16 +02:00
greg ecf5870195 Only add the Let's Encrypt set up when not in the dev environment 2019-04-23 11:41:12 +02:00
greg 79023a65f2 Move the environment variables to an EnvironmentFile 2019-04-23 11:40:33 +02:00
greg 451d182ca9 Add kredits_github role for the node app and the nginx vhost 2019-04-23 11:30:59 +02:00
greg fabbe398a2 Remove the nginx recipe inclusion and the dependency on nginx in the service
The nginx vhost should be set up after the app is deployed. The node app
doesn't need nginx to run
2019-04-23 11:28:23 +02:00
greg 1d0f66adc4 Remove an unused dependency on the firewall cookbook 2019-04-23 11:25:16 +02:00
greg 47d2ebe409 Add missing firewall rule for botka on freenode 2019-04-23 11:15:06 +02:00
greg bafa24351a Remove firewall rule that is already defined 2019-04-23 11:14:33 +02:00
greg 3b2a3bf3fa Replace reference to sockethub, remove comment that's not relevant 2019-04-23 10:33:31 +02:00
greg 94cb7c8e20 Add the id endpoint to our IPFS reverse proxy 2019-04-18 11:00:22 +02:00
greg b45430f63a Set permissions for the upload folder 2019-04-17 11:22:12 +02:00
greg 0e379644c5 MIT license for the kosmos-ejabberd cookbook 2019-04-17 10:30:29 +02:00
greg 1b770c0e95 Set up Let's Encrypt for the kosmos.org ejabberd server 2019-04-17 10:14:50 +02:00
greg 4519f2fe36 Add the kosmos-postgresql and ejabberd backup recipes 2019-04-17 10:14:50 +02:00
greg 80449ccbeb Add a recipe that sets up backups for ejabberd 2019-04-17 10:14:50 +02:00
greg 9346188ca7 Initial kosmos-ejabberd cookbook 2019-04-17 10:11:52 +02:00
greg 6da6d2a2bf Add the kosmos-btcpayserver nginx reverse proxy to andromeda 2019-04-15 10:54:35 +02:00
greg 6c7ec545ce Initial kosmos-btcpayserver cookbook setting up an nginx reverse proxy
Closes #19
2019-04-15 10:53:55 +02:00
greg d2142b046f Reload nginx immediately after enabling the Let's Encrypt vhost 2019-04-15 10:51:18 +02:00
greg cd00f4c049 Remove boilerplate from the CHANGELOG 2019-04-12 11:42:29 +02:00
greg 57d0885d26 Change the licenses of hte kosmos cookbooks to MIT 2019-04-12 11:41:20 +02:00
greg e65374c893 Add TODO prefix 2019-04-12 11:21:37 +02:00
greg 5a125982af Merge branch 'master' into chef_14 2019-04-11 18:23:23 +02:00
greg ba6e4220a1 Do not vendor cookbooks using Berkshelf anymore
Instead, use the Berkshelf support in knife-solo and the
vagrant-berkshelf plugin on Vagrant
2019-04-11 18:21:34 +02:00
greg 99fc183172 Do not vendor cookbooks using Berkshelf anymore
Instead, use the Berkshelf support in knife-solo and the
vagrant-berkshelf plugin on Vagrant
2019-04-11 18:16:28 +02:00
greg 67a2c1ea55 Fix the mastodon user variable 2019-04-10 16:38:57 +02:00
greg 4a6c1541ad Add the sockethub firewall rule for dev.kosmos.org 2019-04-10 16:34:25 +02:00
greg e0aa4c5b11 Move the firewall rule for sockethub to its own recipe 2019-04-10 16:33:56 +02:00
greg 39744f517f Fix an undefined variable on older Ubuntu versions 2019-04-10 16:19:05 +02:00
greg b3786053a5 Don't try to install packages on older Ubuntu versions (dev.kosmos.org)
The package repositories do not exist anymore
2019-04-10 16:18:22 +02:00
greg 590e1f83d2 Remove sockethub from the run list of dev to avoid updating it 2019-04-10 12:29:27 +02:00
greg 1844422fb8 Update the mediawiki cookbook 2019-04-10 11:50:23 +02:00
greg 919f5db431 Fix the application resources to work on Chef 14 2019-04-10 11:49:26 +02:00
greg 126b5f8dd5 Update the kosmos-mastodon cookbook to use the new postgresql cookbook
Don't depend on the deprecated database cookbook to create the database
2019-04-10 11:49:26 +02:00
greg f6d88bbd66 Use the new base role in the dev run list 2019-04-10 11:24:56 +02:00
greg 1349020bb9 Remove the mediawiki cookbook from dev, it is now on andromeda 2019-04-10 11:22:12 +02:00
greg ca118ca8f8 Use the second Redis database for sockethub 2019-04-09 11:39:35 +02:00
greg 2d18e4cd45 Set the mysql version for Ubuntu 18.04
The current mysql cookbook doesn't know the version it ships with
2019-04-09 11:09:54 +02:00
greg 05adca7fb2 Update the mediawiki to avoid setting permissions on /var/www 2019-04-09 11:09:33 +02:00
greg 21f0e4143e Move the hubot user creation to its own recipe 2019-04-08 17:58:02 +02:00
greg e137188a4e Add the build_essential resource to both recipes 2019-04-08 17:58:02 +02:00
greg e2c1a43a62 Fix cookbook dependency 2019-04-08 17:58:02 +02:00
greg 58d0557e9d Add the new base role and sockethub (moved from dev.kosmos.org) 2019-04-08 17:58:02 +02:00
greg 12355a6b27 Add a base role, so that chef is updated before anything else 2019-04-08 17:58:02 +02:00
greg fddadbce25 Install the ruby-dev package since the backup gem needs it 2019-04-08 12:35:43 +02:00
greg 4b75ae78dc Set the minimum Chef version since it depends on the new sudo resource 2019-04-08 12:31:47 +02:00
greg aa60d19743 Update sockethub to the latest tag
2.0.5 wasn't compatible with Node 10
2019-04-08 12:31:10 +02:00
greg 504ac417e2 Update nodejs to the latest LTS, using packages 2019-04-08 11:23:24 +02:00
greg 44eee142a7 Do nothing on old Ubuntu versions 2019-04-08 11:22:54 +02:00
greg 7bf583b5a3 Update Mediawiki to 1.32.0 2019-04-08 11:22:24 +02:00
greg 96cb3794f9 Don't try to enable TLS in the development environment 2019-04-08 11:21:45 +02:00
greg 4693b15826 Remove the kosmos-wordpress cookbook 2019-04-08 11:21:20 +02:00
greg 777b85c2ab Update the mediawiki cookbook and upstream cookbooks
Compatibility with Chef 14
2019-04-08 11:20:12 +02:00
greg 6e3e8cde1b Create the Let's Encrypt hook subdirectories 2019-04-08 11:16:38 +02:00
greg adc417282d Update the build-essential cookbook
This removes deprecation warnings on Chef 14, which ships with the
build_essential resource
2019-04-03 15:33:53 +02:00
greg 374d6bc975 Update the poise and postgresql cookbooks 2019-04-03 15:28:06 +02:00
greg 448bffe34e Get rid of the deprecated set_unless 2019-04-03 12:56:15 +02:00
greg b1a3c5e2cd Revert "Revert "Remove the sudo cookbook""
This reverts commit 87d7c721b1.
2019-04-03 12:52:40 +02:00
greg 2f05629fde Revert "Revert "Update Chef to 14.11.21""
This reverts commit db4b45b5c2.
2019-04-03 12:52:32 +02:00
greg 6b9ce81212 Set postgresql password from an encrypted data bag 2019-04-03 11:34:59 +02:00
greg d8a0ecec76 Update the postgresql cookbook 2019-04-03 11:34:41 +02:00
greg 85b7278ccc Add initial kosmos-postgresql cookbook
This is to install PostgreSQL all in one place instead of for each
service that needs it (Mastodon, ejabberd, ...)
2019-04-03 11:34:34 +02:00
greg 1ef24a2091 Install bundler 1.17.3 since we're still on Ruby 2.5 for now
Bundler 2.0 needs Ruby 2.6 or RubyGems 3.0
2019-04-03 11:02:51 +02:00
greg 58b5e5ac22 Move the creation of the SystemD service files outside of the application
This prevents a crash on the initial Chef run due to the service files
not being there yet before the services gets notified to restart
2019-04-03 11:02:25 +02:00
greg 87d7c721b1 Revert "Remove the sudo cookbook"
This reverts commit 73d1722d4b.
2019-04-03 10:30:38 +02:00
greg db4b45b5c2 Revert "Update Chef to 14.11.21"
This reverts commit 2f599ffd6d.
2019-04-03 10:30:24 +02:00
greg 73d1722d4b Remove the sudo cookbook
Chef 14 ships with a sudo resource:
https://docs.chef.io/resource_sudo.html
2019-04-02 12:17:06 +02:00
greg 2f599ffd6d Update Chef to 14.11.21
Closes #21
2019-04-02 12:16:13 +02:00
greg 5fa0fa661b Install certbot from the direct download when on 15.04
It does not have a ppa release. Add a cron job for renewal. When using
the PPA a Systemd timer is part of the package
2019-03-18 16:52:05 +01:00
greg 17f1b2a20a Create a nginx_certbot_site resource to remove duplication
It creates a folder, the nginx vhost for certbot and HTTP redirects, and
also runs certbot and recreates the nginx vhost that includes the TLS
cert
2019-03-15 19:03:28 +01:00
greg b30dcab4da Remove an IPFS port from the ejabberd firewall 2019-03-15 12:30:56 +01:00
greg c3135402ad Move the nginx hook to the deploy directory, create renewal-hooks dir 2019-03-14 20:21:34 +01:00
greg f50f48b55b Remove the old deploy hook, we moved it to the certbot config dir 2019-03-14 18:07:52 +01:00