Method: Pero::Puppet#puppet_cmd
- Defined in:
- lib/pero/puppet.rb
#puppet_cmd ⇒ Object
173 174 175 176 177 178 179 |
# File 'lib/pero/puppet.rb', line 173 def puppet_cmd if Gem::Version.new('5.0.0') > Gem::Version.new(@options['agent-version']) "puppet agent --no-daemonize --onetime #{parse_puppet_option(@options)} --ca_port 8140 --ca_server localhost --masterport 8140 --server localhost" else "/opt/puppetlabs/bin/puppet agent --no-daemonize --onetime #{parse_puppet_option(@options)} --ca_server localhost --masterport 8140 --server localhost" end end |