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
$ $EDITOR .vault_pass # add the vault password
$ ansible-vault edit group_vars/mojoconf
- Make changes
- Push changes to github
- Log into the server
- Run
deploy development
to update development to master branch - Check https://test.mojoconf.com/
- Run
deploy production
to update production to master branch - 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.
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
Marcus Ramberg
Jan Henning Thorsen