epcim
10/20/2015 - 1:20 PM

gitzone.howto.md

Gitzone (an git managed DNS (Bind) zone file)

https://github.com/dyne/gitzone.git https://github.com/apealive-cookbooks/gitzone

useradd gitzone -m
sudo su - gitzone -c "mkdir ~/.ssh"
sudo su - gitzone -c "ssh-keygen -f ~/.ssh/gitzone_id_rsa"
mkdir /srv;cd /srv
git clone https://github.com/dyne/gitzone.git
gitzone-install gitzone `getent passwd gitzone|awk -F':' '{print $6}'`/.ssh/gitzone_id_rsa.pub

mkdir /etc/bind/repos; cat > /etc/bind/repos/gitzone.conf <<EOF
zone "domain.com" {
    type master;
    notify yes;
    file "/var/cache/bind/gitzone/domain.com";
};