Check that puppet is installed on the system and throw a graceful error.
ubuntu@dev:~/haproxy$ generate-puppetfile arioch/keepalived -d
Processing modules from the command line...
Listing discovered modules from CLI and/or Puppetfile:
arioch/keepalived
Installing modules. This may take a few minutes.
Your Puppetfile has been generated. Copy and paste between the markers:
=======================================================================
forge 'http://forge.puppetlabs.com'
# Modules discovered by generate-puppetfile
=======================================================================
ubuntu@dev:~/haproxy$ sudo gem install puppet
Fetching: facter-2.4.4.gem (100%)
Fetching: json_pure-1.8.3.gem (100%)
Fetching: hiera-3.0.5.gem (100%)
Fetching: puppet-4.3.1.gem (100%)
Successfully installed facter-2.4.4
Successfully installed json_pure-1.8.3
Successfully installed hiera-3.0.5
Successfully installed puppet-4.3.1
4 gems installed
Installing ri documentation for facter-2.4.4...
Installing ri documentation for json_pure-1.8.3...
Installing ri documentation for hiera-3.0.5...
Installing ri documentation for puppet-4.3.1...
Installing RDoc documentation for facter-2.4.4...
Installing RDoc documentation for json_pure-1.8.3...
Installing RDoc documentation for hiera-3.0.5...
Installing RDoc documentation for puppet-4.3.1...
ubuntu@dev:~/haproxy$ generate-puppetfile arioch/keepalived
Installing modules. This may take a few minutes.
Your Puppetfile has been generated. Copy and paste between the markers:
=======================================================================
forge 'http://forge.puppetlabs.com'
# Modules discovered by generate-puppetfile
mod 'arioch/keepalived', '1.2.3'
mod 'puppetlabs/concat', '1.2.5'
mod 'puppetlabs/stdlib', '4.10.0'
=======================================================================
Check that puppet is installed on the system and throw a graceful error.