Add options to enable/disable hooks (sending mail, commit /etc/.git, save to database…) #7
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -10,7 +10,7 @@ load File.expand_path(vagrantfile) if File.exists?(vagrantfile)
|
|||
Vagrant.configure('2') do |config|
|
||||
config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ '.vagrant', '.git' ]
|
||||
config.ssh.shell = "/bin/sh"
|
||||
|
||||
|
||||
$deps = <<SCRIPT
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -yq install postgresql-client sudo sendmail
|
||||
SCRIPT
|
||||
|
@ -49,7 +49,7 @@ SCRIPT
|
|||
config.vm.define "#{i[:name]}" do |node|
|
||||
node.vm.hostname = "evomaintenance-#{i[:name]}"
|
||||
node.vm.box = "#{i[:box]}"
|
||||
|
||||
|
||||
config.vm.provision "deps", type: "shell", :inline => $deps if "#{i[:name]}" == "debian"
|
||||
config.vm.provision "deps", type: "shell", :inline => "pkg_add postgresql-client-10.5p1" if "#{i[:name]}" == "openbsd"
|
||||
config.vm.provision "install", type: "shell", :inline => $install, :args => ["#{i[:group]}"]
|
||||
|
|
6
debian/rules
vendored
6
debian/rules
vendored
|
@ -12,15 +12,15 @@ build: build-stamp
|
|||
build-stamp:
|
||||
dh_testdir
|
||||
touch $@
|
||||
clean:
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
dh_clean
|
||||
dh_clean
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
install -m 700 -d $(CURDIR)/debian/evomaintenance/usr/share/scripts
|
||||
install -m 700 evomaintenance.sh $(CURDIR)/debian/evomaintenance/usr/share/scripts/
|
||||
|
|
Loading…
Reference in a new issue