13rac1 / git-dev-workflow

Ansible git dev/test/live continuous integration production server for Drupal
GNU General Public License v3.0
17 stars 7 forks source link

Feature request: Add script to quickly remove a site #7

Open davidneedham opened 11 years ago

davidneedham commented 11 years ago

Creating a site is simple and fast. But what if I made a typo in the name? Or what if GDW is on a development server that regularly needs to wipe out sites that have launched and are no longer needed?

Suggestions:

  1. Add a new command/script that removes all parts of a site.
  2. Provide instructions in the readme that describes all locations that need to be deleted or changed to get rid of a site.

I'd obviously prefer 1, but even 2 would be better than nothing. :+1:

13rac1 commented 10 years ago

The Ansible scripts are thoroughly documented which should make #2 simple.

Here is a start to #2:

That's probably it. Anything else?

davidneedham commented 10 years ago

That makes sense. Still, it'd be nice if there was a script to do it for me. Would this be easy enough for me to do myself, or is it harder than it sounds?

13rac1 commented 10 years ago

It shouldn't be too difficult. I haven't been removing projects from my systems, so haven't needed a removal script. I plan to make a script, but it won 't be soon.

If you make something for removal, please make it in Ansible and give me a pull request.

davidneedham commented 10 years ago

To add to your list above, Delete the user from gitolite: cd /root/gitolite-admin/conf/ & /root/gitolite/keydir