No description, website, or topics provided.
Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
group_vars
roles
.gitignore
README.md
ansible.cfg
inventory
mojoconf.yml

README.md

Mojoconf ansible playbook

How to run it

To check for changes:

$ ansible-playbook -s -i inventory mojoconf.yml -C

To deploy:

$ ansible-playbook -s -i inventory mojoconf.yml

To deploy parts of the playbook:

$ ansible-playbook -s -i inventory mojoconf.yml -t nginx
$ ansible-playbook -s -i inventory mojoconf.yml -t webapp

Set private variables

$ $EDITOR .vault_pass # add the vault password
$ ansible-vault edit group_vars/mojoconf

Deploy new version of MCT

  1. Make changes
  2. Push changes to github
  3. Log into the server
  4. Run deploy development to update development to master branch
  5. Check https://test.mojoconf.com/
  6. Run deploy production to update production to master branch
  7. Check https://www.mojoconf.com/

See also deploy source or run deploy for more options.

It's also possible to run deploy status to see which commit is active.

Note: Any changes done directly on the mct server will be wiped.

Clear cache from cloudflare

Make SSL key/cert

openssl genrsa -out mojoconf.key 4096

openssl req -new -sha256 -x509 -extensions v3_ca -days 365 \
  -key mojoconf.key -out mojoconf.crt \
  -subj /C=NO/ST=Oslo/L=Oslo/O=Mojoconf/CN=mojoconf.com

Author

Marcus Ramberg

Jan Henning Thorsen