Skip to content

Commit

Permalink
ansible: update www docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Dec 1, 2018
1 parent 6f581e4 commit 459f1b6
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions ansible/www-standalone/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
# io.js Website Setup
# Node.js Website Setup

This directory contains an Ansible playbook to set up the iojs.org website from a fresh Ubuntu host (Upstart configuration assumes 14.04 or similar).
Intended to mirror the configuration of the nodejs.org primary web server.

This setup listens to the [iojs/website](https://github.com/iojs/website) repository for new commits on the *master* branch. The changes are pulled locally and copied (sans the *.git* directory) into a publicly served directory.

The inventory uses the host `iojs-www`, the easiest way to link this is to add it to your *~/.ssh/config*, something like:

```text
Host iojs-www
HostName 104.236.136.193
User root
```

This setup assumes a GitHub Webhook is configured ([here](https://github.com/iojs/website/settings/hooks)) to point to port `9999` of the server with the path `/webhook` plus an additional secret.

Note that the *host_vars/iojs-www* file needs to be created, the *host_vars/iojs-www.tmpl* file can be used as a template and simply add the GitHub Webhook secret.

An SSL certificate should also be provided along with a key. The certificate, along with chain, should be placed in *resources/iojs_chained.crt* and the key in *resources/iojs.key*.

To set up the web server, run:

```text
$ ansible-playbook -i ../ansible-inventory ansible-playbook.yaml
```
* Not actively tested against the live server so may not be idempotent.
* The server contains significant state that it is essential to the live functioning of nodejs.org so this Ansible setup can't be used to setup a new site and it mirror the current nodejs.org state.
* Not integrated with the existing Build WG Ansible configuration (hence "standalone")

0 comments on commit 459f1b6

Please sign in to comment.