Sha256: fcd3affc55a9ac40af09f81f4fd2a1d7416fe1519737048b869bc1c106de0609
Contents?: true
Size: 720 Bytes
Versions: 4
Compression:
Stored size: 720 Bytes
Contents
require 'rspec-system' module RSpecSystem::Helpers class PuppetMasterInstall < RSpecSystem::Helper name 'puppet_master_install' def execute node = opts[:node] facts = node.facts if facts['osfamily'] == 'RedHat' shell :c => 'yum install -y puppet-server', :n => node if facts['operatingsystemrelease'] =~ /^5\./ shell :c => '/etc/init.d/puppetmaster start', :n => node else shell :c => 'service puppetmaster start', :n => node end elsif facts['osfamily'] == 'Debian' shell :c => 'apt-get install -y puppetmaster', :n => node shell :c => 'service puppetmaster start', :n => node end {} end end end
Version data entries
4 entries across 4 versions & 1 rubygems