Skip to content

Commit

Permalink
clean up DO cloudinit leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
tomster committed Nov 4, 2016
1 parent bc6f2aa commit d04a90c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bsdploy/fabfile_digitalocean.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8
from bsdploy.bootstrap_utils import BootstrapUtils
from fabric.api import env, sudo
from fabric.api import env, sudo, run
from time import sleep

# a plain, default fabfile for jailhosts on digital ocean
Expand Down Expand Up @@ -38,6 +38,11 @@ def bootstrap(**kwargs):
env.host_string = original_host
# give sshd a chance to restart
sleep(2)
# clean up DO cloudinit leftovers
run("rm /etc/rc.d/digitalocean")
run("rm -r /etc/rc.digitalocean.d")
run("rm -r /usr/local/bsd-cloudinit/")
run("pkg remove -y avahi-autoipd")

# allow overwrites from the commandline
env.instance.config.update(kwargs)
Expand Down

0 comments on commit d04a90c

Please sign in to comment.