December 2018
Beginner
826 pages
22h 54m
English
Throughout this chapter, we're going to use the following Vagrantfile; note that we only use two machines: CentOS to highlight SELinux features and abilities, and an Ubuntu installation for AppArmor:
# -*- mode: ruby -*-# vi: set ft=ruby :$provisionScript = <<-SCRIPTsed -i 's/console=tty0 console=ttyS0,115200n8//g' /boot/grub2/grub.cfgsystemctl restart sshdSCRIPTVagrant.configure("2") do |config| config.vm.define "centos7" do |centos7| centos7.vm.box = "centos/7" centos7.vm.box_version = "1804.02" centos7.vm.provision "shell", inline: $provisionScript end config.vm.define "ubuntu1804" do |ubuntu1804| ubuntu1804.vm.box = "ubuntu/bionic64" ubuntu1804.vm.box_version = "20180927.0.0" endend