Last active
January 25, 2017 18:07
-
-
Save matschaffer/97764148967fe17e5349 to your computer and use it in GitHub Desktop.
An _almost_ working vagrant setup for rebuilding nginx to include ldap support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- debian/rules 2015-01-03 01:59:23.505804279 +0000 | |
| +++ debian/rules.new 2015-01-03 02:00:17.853802251 +0000 | |
| @@ -94,6 +94,7 @@ | |
| --with-mail \ | |
| --with-mail_ssl_module \ | |
| --add-module=$(MODULESDIR)/nginx-auth-pam \ | |
| + --add-module=$(MODULESDIR)/nginx-auth-ldap \ | |
| --add-module=$(MODULESDIR)/nginx-dav-ext-module \ | |
| --add-module=$(MODULESDIR)/nginx-echo \ | |
| --add-module=$(MODULESDIR)/nginx-upstream-fair \ | |
| @@ -140,6 +141,7 @@ | |
| --with-mail_ssl_module \ | |
| --add-module=$(MODULESDIR)/headers-more-nginx-module \ | |
| --add-module=$(MODULESDIR)/nginx-auth-pam \ | |
| + --add-module=$(MODULESDIR)/nginx-auth-ldap \ | |
| --add-module=$(MODULESDIR)/nginx-cache-purge \ | |
| --add-module=$(MODULESDIR)/nginx-dav-ext-module \ | |
| --add-module=$(MODULESDIR)/nginx-development-kit \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vagrant.configure(2) do |config| | |
| config.vm.box = 'ubuntu/trusty64' | |
| config.vm.provider 'virtualbox' do |v| | |
| v.memory = 4096 | |
| v.cpus = 8 | |
| end | |
| config.vm.network 'private_network', ip: '192.168.33.10' | |
| config.vm.hostname = 'build.vagrant.stellar-ops.com' | |
| config.vm.provision :shell, inline: <<-SH | |
| apt-get update | |
| # build basics | |
| apt-get install -y \ | |
| autotools-dev \ | |
| bzr \ | |
| bzr-builddeb \ | |
| debhelper \ | |
| dh-systemd \ | |
| git \ | |
| libexpat-dev \ | |
| libgd2-dev \ | |
| libgeoip-dev \ | |
| libldap2-dev \ | |
| liblua5.1-dev \ | |
| libmhash-dev \ | |
| libpam0g-dev \ | |
| libpcre3-dev \ | |
| libperl-dev \ | |
| libssl-dev \ | |
| libxslt1-dev \ | |
| po-debconf \ | |
| bzr branch lp:ubuntu/trusty-security/nginx | |
| cd nginx | |
| git clone https://github.com/kvspb/nginx-auth-ldap.git debian/modules/nginx-auth-ldap | |
| patch -p0 < /vagrant/debian_rules.patch | |
| EDITOR='vi +wq' dch --bin-nmu | |
| #dpkg-buildpackage -us -uc | |
| bzr builddeb | |
| SH | |
| end | |
| # vi: set ft=ruby : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment