Skip to content

Instantly share code, notes, and snippets.

@salewski
Created February 17, 2018 17:41
Show Gist options
  • Save salewski/c1c16ca1739307cb7fe158b8c41284cf to your computer and use it in GitHub Desktop.
Save salewski/c1c16ca1739307cb7fe158b8c41284cf to your computer and use it in GitHub Desktop.
vagrantfile-keepalived-doc-build-fedora27
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile for verifying Fedora 27-based documentation upodates for
# keepalived issue #761:
#
# https://github.com/acassen/keepalived/issues/761
#
# 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|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "fedora/27-cloud-base"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
config.vm.box_check_update = false
# The below will give you a box on which you can 'git clone' the
# 'keepalived' repo and configure the project, but will not be able to build
# the HTML and/or PDF documentation.
#
# To be able to build the HTML documenation, you additionally need to:
#
# # yum -y install python-sphinx
#
# Note that the above should pull in the package 'python2-sphinx_rtd_theme'.
#
# To be able to build the LaTeX and/or PDF documenation, you additionally
# need to:
#
# # yum -y install latexmk python-sphinx-latex
#
config.vm.provision "shell", inline: <<-SHELL
yum -y install git gcc automake autoconf
yum -y install openssl-devel libnl3-devel ipset-devel iptables-devel libnfnetlink-devel
SHELL
# Upon login (as the 'vagrant' user):
#
# $ mkdir src
#
# $ cd src
# $ git clone https://github.com/acassen/keepalived.git
#
# $ cd keepalived
#
# $ find . -exec touch -r configure {} +
#
# $ ./configure --prefix=/tmp/blah-keepalived-build
#
# If you have installed the packages to build the HTML documentation, then
# you can run the following from the top of the build tree:
#
# $ make html
#
# If you have installed the packages to build the LaTeX and PDF
# documentation, then you can run the following to kick off the build of
# that. Note that building the PDF documentation cannot be done from the top
# of the build tree, hence the reason we 'cd' into the 'doc' subdir:
#
# $ cd doc
# $ make latexpdf
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment