[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Dominic Maraglia dmaraglia at gmail.com
Tue May 10 08:19:43 UTC 2011


The following commit has been merged in the experimental branch:
commit 92905ffb9f1538f226e2710ff1b6abb7c059672c
Author: Dominic Maraglia <dmaraglia at gmail.com>
Date:   Wed May 4 16:48:02 2011 -0700

    fixed test for ticket_7117
    
    Need to restart puppet master to detect changes made to auth.conf

diff --git a/acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb b/acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb
index bd0599d..76a6bf8 100644
--- a/acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb
+++ b/acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb
@@ -11,6 +11,17 @@ allow *
 step "Save original auth.conf file and create a temp auth.conf"
 on master, "cp #{config['puppetpath']}/auth.conf /tmp/auth.conf-7117; echo '#{add_2_authconf}' > #{config['puppetpath']}/auth.conf"
 
+# Kill running Puppet Master -- should not be running at this point
+step "Master: kill running Puppet Master"
+on master, "ps -U puppet | awk '/puppet/ { print \$1 }' | xargs kill || echo \"Puppet Master not running\""
+step "Master: Start Puppet Master"
+on master, puppet_master("--certdnsnames=\"puppet:$(hostname -s):$(hostname -f)\" --verbose --noop")
+
+
+# Run test on Agents
+step "Agent: agent --test"
+on agents, puppet_agent("--test")
+
 step "Fetch agent facts from Puppet Master"
 agents.each do |host|
   on(host, "curl -k -H \"Accept: yaml\" https://#{master}:8140/override/facts/\`hostname -f\`") do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list