Skip to content
benbugohit edited this page Sep 7, 2019 · 6 revisions

How to install this demo in a latest centos 7 guest, with latest rundeck, using Virtualbox provider, on a Linux Host

Clone this git repository

cd ; mkdir vagrantVMs ; cd vagrantVMs

git clone https://github.com/rundeck/anvils-demo.git

cd anvils-demo

## Put the information to get the latest centos 7

Modify Vagrantfile:

vi Vagrantfile to put these values (in date of the 7th of sept., 2019)

config.vm.box_version = "201907.24.0"

̀config.vm.box = "bento/centos-7"

## Modify the scripts install-rundeck.sh and add-projects.sh

Comment in "add-project.sh" line 3:

#set -eu

That prevents in Centos 7.3 the creation of the nodes in the "for" statement

And, line 170, correct the file to have:

rd adhoc -p $PROJECT --follow --filter 'tags: anvils' -- whoami \&\& hostname

instead of

rd adhoc -p $PROJECT --follow --filter 'tags: anvils' -- whoami \&\& "echo -- \${node.description}"

Also modify the file "install-rundeck.sh" to have:

if ! grep "Grails application running" /var/log/rundeck/service.log

line 144

Launch the VM rundeck

vagrant up rundeck

Log in rundeck

http://192.168.50.2:4440/

## Downloaded files

The downloaded bentos/centos-7 files are located in ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7/201907.24.0/virtualbox/:

`ls ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7/201907.24.0/virtualbox/

box.ovf

box_update_check

centos-7.6-x86_64-disk001.vmdk

metadata.json

Vagrantfile

`

Clone this wiki locally