test_name "Puppet Master sanity checks: PID file and SSL dir creation" skip_test 'not testing with puppetserver' unless @options['is_puppetserver'] hostname = on(master, 'facter hostname').stdout.strip fqdn = on(master, 'facter fqdn').stdout.strip with_puppet_running_on(master, :main => { :dns_alt_names => "puppet,#{hostname},#{fqdn}", :verbose => true, :noop => true }) do # SSL dir created? step "SSL dir created?" on master, "[ -d #{master.puppet('master')['ssldir']} ]" # PID file exists? step "PID file created?" on master, "[ -f #{master.puppet('master')['pidfile']} ]" end step "Create module directories normally handled via packaging" on master, "mkdir -p #{master['distmoduledir']}" on master, "mkdir -p #{master['sitemoduledir']}"