#First install puppet
sudo su –
apt-get update
apt-get install puppet
#Then install puppet module for installing nexus
puppet module install hubspot-nexus
#Once module is installed, create a .pp file
nano nexus.pp
#Enter the below content inside the file
class{ ‘::java’: }
class{ ‘::nexus’:
version => ‘2.12.0’,
revision => ’01’,
nexus_root => ‘/srv’, # All directories and files will be relative to this
}
Class[‘::java’] ->
Class[‘::nexus’]
#save file and run file using below command
puppet apply –verbose nexus.pp
#Run Nexus
firefox hostname:8081/nexus