summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2015-05-27 13:17:40 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-06-02 15:47:11 +0200
commita0b95be79afdf1854c2bd0af58a28af2b8a083e9 (patch)
tree217d38ee71c2d7175ca926c11266056854dc7509 /contrib
parenta010c6fc2d2f503f47e0ce9dfd357b3f48636071 (diff)
downloadsssd-a0b95be79afdf1854c2bd0af58a28af2b8a083e9.tar.gz
sssd-a0b95be79afdf1854c2bd0af58a28af2b8a083e9.tar.xz
sssd-a0b95be79afdf1854c2bd0af58a28af2b8a083e9.zip
Add Vagrant configuration for SSSD
To set up a Vagrant development environment: * Install the Vagrant packages for your development system * On Fedora 22 and later: 'dnf install vagrant-libvirt' * Deploy the Vagrant box: * 'vagrant up' * Build SSSD: * vagrant ssh -c "cd /vagrant; reconfig; chmake" Vagrant can keep your development tree in-sync with the Vagrant box by running 'vagrant rsync-auto' in a shell (this will continue to run, monitoring for changes and syncing them as they are saved). Alternately, it can be manually synced with 'vagrant rsync' at will. More information: http://fedoramagazine.org/running-vagrant-fedora-22/ Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vagrant/bootstrap.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/vagrant/bootstrap.sh b/contrib/vagrant/bootstrap.sh
new file mode 100644
index 000000000..c887c1a0e
--- /dev/null
+++ b/contrib/vagrant/bootstrap.sh
@@ -0,0 +1,21 @@
+#!/bin/bash -x
+
+sed -e "s/@PACKAGE_NAME@/sssd/" \
+ -e "s/@PRERELEASE_VERSION@//" \
+ -e "s/@PACKAGE_VERSION@/0/" \
+ /vagrant/contrib/sssd.spec.in > /vagrant/contrib/sssd_vagrant.spec
+
+dnf clean metadata
+dnf install -y @buildsys-build realmd sssd adcli polkit oddjob-mkhomedir
+dnf builddep -y /vagrant/contrib/sssd_vagrant.spec
+
+source /usr/share/doc/git/contrib/completion/git-prompt.sh
+
+cat << EOF >> /home/vagrant/.bashrc
+source /usr/share/doc/git/contrib/completion/git-prompt.sh
+export GIT_PS1_SHOWDIRTYSTATE=1
+export PS1='[\u@\h:\W\$(__git_ps1 " (%s)")]\$\[\e[0m\] '
+
+. /vagrant/contrib/fedora/bashrc_sssd
+
+EOF