[Pkg-puppet-devel] [facter] 21/180: (FACT-375) Install facter from packages in pre-suite
Stig Sandbeck Mathisen
ssm at debian.org
Mon Jun 30 15:06:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit b8bdac30bf0ac4c0e6b2e01c80a88155c2181c77
Author: Adrien Thebo <git at somethingsinistral.net>
Date: Fri Mar 7 15:06:39 2014 -0800
(FACT-375) Install facter from packages in pre-suite
---
acceptance/config/packages/options.rb | 5 ++++
acceptance/lib/helper.rb | 1 +
acceptance/setup/packages/pre-suite/010_Install.rb | 32 ++++++++++++++++++++++
3 files changed, 38 insertions(+)
diff --git a/acceptance/config/packages/options.rb b/acceptance/config/packages/options.rb
new file mode 100644
index 0000000..5b9bd67
--- /dev/null
+++ b/acceptance/config/packages/options.rb
@@ -0,0 +1,5 @@
+{
+ :pre_suite => [
+ 'setup/packages/pre-suite/010_Install.rb',
+ ],
+}
diff --git a/acceptance/lib/helper.rb b/acceptance/lib/helper.rb
new file mode 100644
index 0000000..c2b5df8
--- /dev/null
+++ b/acceptance/lib/helper.rb
@@ -0,0 +1 @@
+$LOAD_PATH << File.expand_path(File.dirname(__FILE__))
diff --git a/acceptance/setup/packages/pre-suite/010_Install.rb b/acceptance/setup/packages/pre-suite/010_Install.rb
new file mode 100644
index 0000000..4556352
--- /dev/null
+++ b/acceptance/setup/packages/pre-suite/010_Install.rb
@@ -0,0 +1,32 @@
+require 'puppet/acceptance/install_utils'
+
+extend Puppet::Acceptance::InstallUtils
+
+test_name "Install Packages"
+
+step "Install repositories on target machines..." do
+
+ sha = ENV['SHA']
+ repo_configs_dir = 'repo-configs'
+
+ hosts.each do |host|
+ install_repos_on(host, sha, repo_configs_dir)
+ end
+end
+
+PACKAGES = {
+ :redhat => [
+ 'facter',
+ ],
+ :debian => [
+ 'facter',
+ ],
+# :solaris => [
+# 'puppet',
+# ],
+# :windows => [
+# 'puppet',
+# ],
+}
+
+install_packages_on(hosts, PACKAGES)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list