Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redeploy specs.webplatform.org in new production environment #90

Closed
3 tasks done
renoirb opened this issue Jan 17, 2015 · 9 comments
Closed
3 tasks done

Redeploy specs.webplatform.org in new production environment #90

renoirb opened this issue Jan 17, 2015 · 9 comments

Comments

@renoirb
Copy link
Member

renoirb commented Jan 17, 2015

Move from old DHO environment current scripts. Will automate in #104

Tasks

  • Allow direct upload through rsync+ssh
  • Allow to write files in where static files are written
  • Create hostname for direct shell poking ...specs.webplatform.org
  • Consider:
    • to support writing static file in same folder as where publican would if it were running. This way if it breaks, another person can rsync files directly too.
    • Using same owner:group ownership when rsyncing as what publican would use. It will prevent potential breakage by enforcing it.
@renoirb renoirb self-assigned this Jan 17, 2015
@renoirb renoirb added this to the Upgrade-production milestone Jan 17, 2015
@renoirb renoirb changed the title Redeploy specs in new environment Redeploy specs in new production environment Jan 17, 2015
@renoirb
Copy link
Member Author

renoirb commented Jan 28, 2015

Needs to sync with @darobin on how to automate. Will work on it soon.

@renoirb renoirb changed the title Redeploy specs in new production environment Redeploy specs.webplatform.org in new production environment Jan 28, 2015
@renoirb
Copy link
Member Author

renoirb commented Mar 12, 2015

Worked on initial deployment:

  1. Copy around latest dist archive from /srv/code/packages/specs/dists/
  2. rsync to server ONLY IF no /srv/webplatform/specs/index.html exists (i.e. VM is new) so that it doesnt overwrite in subsequent salt -G 'roles:specs' state.sls code

Also had to:

  1. Found issue with error page that calls through non SSL fonts and would throw mixed content, made specific rewrite for now.

@renoirb
Copy link
Member Author

renoirb commented Mar 12, 2015

@darobin, you can rsync code now to specs.production.wpdn at any time now :)

@renoirb
Copy link
Member Author

renoirb commented Mar 12, 2015

I’ll change DNS records only when you are ready. Of course.

@renoirb
Copy link
Member Author

renoirb commented Mar 12, 2015

UPDATE 2015-05-13: This is now invalid. We’ll use direct hostname instead rsync.specs.webplatform.org

Forgot to give public IP address you can use to test.

In your hosts file

173.236.255.113 specs.webplatform.org

But you MUST use specs.production.wpdn.

@renoirb
Copy link
Member Author

renoirb commented Apr 28, 2015

@darobin I’d like to sync with you on how we’ll setup the GitHub hook. I’ve prepared a Docker runner for publican and also how to setup a hook system that can automate anything we need. This can be done easily, I just want to get your feeling about it before going any further.

@renoirb
Copy link
Member Author

renoirb commented Apr 29, 2015

In relation to the Docker container, refer to #153

@renoirb
Copy link
Member Author

renoirb commented May 14, 2015

  • Created direct access SSH only vhost at rsync.specs.webplatform.org
  • Created upstream-specs security group to allow rsync+ssh
  • Allowed to upload files in /srv/webapps/publican, will have to be improved in Make sure webapps user on specs VM has ~/.authorized_keys #166
    • Upload static files via rsync+ssh to /srv/webapps/publican/data/publish
    • The same folder will be used either by publican when it generates files, OR somebody with access to rsync files directly

This feels dangerous as anybody with access can just write anything anywhere and make tamper manually with publican, and its configs. Letting this could prevent us to rebuild the service completely due to changes made directly.

It’ll do to suit the specific current request.

@renoirb
Copy link
Member Author

renoirb commented May 19, 2015

Made the switch 24h ago.

@renoirb renoirb closed this as completed May 19, 2015
renoirb added a commit to webplatform/salt-states that referenced this issue Jun 8, 2015
* robin user and SSH keys
* Setup publican in internal network in salt states
* Setup publican to be proxied from specs.webplatform.org/hook for GitHub
* matching pillars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant