diff options
author | 2016-08-30 12:14:48 -0700 | |
---|---|---|
committer | 2016-08-31 23:38:26 +0800 | |
commit | 1ed2f6c6a9096a0ae8ecadc1270cf527ab141e78 (patch) | |
tree | f84451325eee99c8e1c02516c22f448d18b2acf1 /Vagrantfile | |
parent | Module version bump for module_load perm use from Guido Trentalancia. (diff) | |
download | hardened-refpolicy-1ed2f6c6a9096a0ae8ecadc1270cf527ab141e78.tar.gz hardened-refpolicy-1ed2f6c6a9096a0ae8ecadc1270cf527ab141e78.tar.bz2 hardened-refpolicy-1ed2f6c6a9096a0ae8ecadc1270cf527ab141e78.zip |
Add Vagrant box for development.
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 000000000..129de68a3 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,47 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# All Vagrant configuration is done below. The "2" in Vagrant.configure +# configures the configuration version (we support older styles for +# backwards compatibility). Please don't change it unless you know what +# you're doing. +Vagrant.configure("2") do |config| + # build a Fedora 24 VM + config.vm.box = "bento/fedora-24" + # assign a nice hostname + config.vm.hostname = "selinux-devel" + # give it a private internal IP address + config.vm.network "private_network", type: "dhcp" + + config.vm.provider "virtualbox" do |vb| + # Customize the amount of memory on the VM: + vb.memory = "1024" + end + + # Enable provisioning with a shell script. Additional provisioners such as + # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the + # documentation for more information about their specific syntax and use. + config.vm.provision "shell", run: "once", inline: <<-SHELL + # get the man pages + echo "Upgrading DNF and installing man pages..." + dnf install -q -y man-pages >/dev/null + dnf upgrade -q -y dnf >/dev/null + + # install a few packages to make this machine ready to go out of the box + echo "Installing SELinux dev dependencies..." + dnf install -q -y \ + bash-completion \ + man-pages \ + vim \ + make \ + kernel-devel \ + selinux-policy-devel \ + libselinux-python \ + libselinux-python3 \ + >/dev/null + + # we set to permissive to allow loading and working with reference policy as opposed to fedora's fork + echo "Setting SELinux to Permissive Mode..." + setenforce 0 + SHELL +end |