Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

(puppetlabs/puppet-acceptance) (maint) Set some sane cmd line defaults

(puppetlabs/puppet-acceptance) (maint) Fix Test Setup failure on clean windows vm
(8 lines)
(puppetlabs/puppet) Tickets/2.7.x/12339 module search formatting
(8 lines)
Feb 8, 2012
Wearetherobots
Wearetherobots

Please review pull request #137: (maint) Set some sane cmd line defaults opened by (djm68)

Description:

Watching some devs run the harness was a little painful: too
many args being passed to stop running step that are geared
to provisoning CI VMs. Setting this opts to not run unless
specified.

  • Opened: Thu Feb 09 01:14:52 UTC 2012
  • Based on: puppetlabs:pe2.0.x (621aec31d35ebb0a5c203897f230bfbd3ee12ac5)
  • Requested merge: djm68:sane_cmd_line_defaults_happier_devs (6627412b402a1f724f8baa532238331e24db4f65)

Diff follows:

diff --git a/lib/options_parsing.rb b/lib/options_parsing.rb
index 2d6d30a..2e76b7c 100644
--- a/lib/options_parsing.rb
+++ b/lib/options_parsing.rb
@@ -126,14 +126,14 @@ def self.parse_args
         @options[:ntpserver] = server
       end
 
-      @options[:notimesync] = FALSE
-      opts.on( '--no-ntp', 'skip ntpdate step' ) do
-        @options[:notimesync] = TRUE
+      @options[:timesync] = FALSE
+      opts.on( '--ntp', 'run ntpdate step' ) do
+        @options[:timesync] = TRUE
       end
 
-      @options[:no_root_keys] = FALSE
-      opts.on('--no-root-keys', 'skip syncing ~root/.ssh/authorized_keys') do
-        @options[:no_root_keys] = TRUE
+      @options[:root_keys] = FALSE
+      opts.on('--root-keys', 'sync ~root/.ssh/authorized_keys') do
+        @options[:root_keys] = TRUE
       end
 
       @options[:dhcp_renew] = FALSE
diff --git a/setup/early/02-ntpdate.rb b/setup/early/02-ntpdate.rb
index 8f1320c..c9438b5 100644
--- a/setup/early/02-ntpdate.rb
+++ b/setup/early/02-ntpdate.rb
@@ -1,4 +1,4 @@
-unless options[:notimesync]
+if options[:timesync]
   test_name "Update system time sync"
   step "run ntpdate against NTP pool systems"
   hosts.each do |host|
diff --git a/setup/early/20-root_authorized_keys.rb b/setup/early/20-root_authorized_keys.rb
index 48cc308..a77af33 100644
--- a/setup/early/20-root_authorized_keys.rb
+++ b/setup/early/20-root_authorized_keys.rb
@@ -5,7 +5,7 @@
 # issues on Windows and maybe Solaris.  We will likely need to filter this step
 # but we're deliberately taking the approach of "assume it will work, fix it
 # when reality dictates otherwise"
-if not options[:no_root_keys] then
+if options[:root_keys] then
   script = "https://raw.github.com/puppetlabs/puppetlabs-sshkeys/master/templates/scripts/manage_root_authorized_keys"
   setup_root_authorized_keys = "curl -o - #{script} | bash"
   step "Sync root authorized_keys from github"

    
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to puppet-de### @googlegroups.com.
To unsubscribe from this group, send email to puppet-dev+unsub### @googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
Reply
Tags: cmd linedevspuppet
(puppetlabs/puppet-acceptance) (maint) add gunzip for solaris
February 2, 2012 04:00:58 PM
Please review pull request #132:(maint) add gunzip for solaris [Link: https://github.com/puppetlabs/puppet-acceptance/pull/132 ] opened by (justinstoller) Description: previously we were using tar xf, we need to add gunzip for…
(puppetlabs/puppet-acceptance) (maint) better solaris output
January 17, 2012 03:16:59 PM
On Tue Jan 17 21:03:22 UTC 2012 pull request #108 was closed. (maint) better solaris output [Link: https://github.com/puppetlabs/puppet-acceptance/pull/108 ] requested by (justinstoller) The pull request was merged by: mykhyggz -- You…
(puppetlabs/puppet-acceptance) (maint) add gunzip for solaris
February 2, 2012 04:16:15 PM
On Thu Feb 02 22:05:08 UTC 2012 pull request #132 was closed. (maint) add gunzip for solaris [Link: https://github.com/puppetlabs/puppet-acceptance/pull/132 ] requested by (justinstoller) -- You received this message because you are…
(puppetlabs/puppet-acceptance) (maint) add gunzip for solaris
February 2, 2012 04:16:35 PM
On Thu Feb 02 22:08:17 UTC 2012 pull request #133 was closed. (maint) add gunzip for solaris [Link: https://github.com/puppetlabs/puppet-acceptance/pull/133 ] requested by (justinstoller) The pull request was merged by: mykhyggz -- You…
(puppetlabs/puppet-acceptance) (maint) No longer default to running ntp
February 8, 2012 06:46:05 PM
Please review pull request #135:(maint) No longer default to running ntp [Link: https://github.com/puppetlabs/puppet-acceptance/pull/135 ] opened by (djm68) Description: Back porting useful mod from the 2.0.x harness series. NTP no…
(puppetlabs/puppet-acceptance) New pull request: (maint) Saved tmp
November 4, 2011 03:17:43 PM
Please review pull request #77:(maint) Saved tmp [Link: https://github.com/puppetlabs/puppet-acceptance/pull/77 ] opened by (justinstoller) Description: Don't blow away the contents of the tmp folder because the upgrader depends on…
(puppetlabs/puppet-acceptance) (maint) Create source path
January 20, 2012 07:02:11 PM
On Sat Jan 21 01:00:39 UTC 2012 pull request #118 was closed. (maint) Create source path [Link: https://github.com/puppetlabs/puppet-acceptance/pull/118 ] requested by (djm68) The pull request was merged by: djm68 -- You received this…
(puppetlabs/puppet-acceptance) New pull request: (maint) Add ec2 install method
September 27, 2011 03:46:47 PM
Greetings! Please review the pull request #29:(maint) Add ec2 install method [Link: https://github.com/puppetlabs/puppet-acceptance/pull/29 ] opened by (djm68) Some more information about the pull request: * Opened: Tue Sep 27…
(puppetlabs/puppet-acceptance) (maint) re-sign dashboard properly after upgrade
February 2, 2012 03:16:23 PM
On Thu Feb 02 21:14:54 UTC 2012 pull request #131 was closed. (maint) re-sign dashboard properly after upgrade [Link: https://github.com/puppetlabs/puppet-acceptance/pull/131 ] requested by (justinstoller) The pull request was merged by:…
(puppetlabs/puppet-acceptance) New pull request: (maint) clean up configs
September 6, 2011 05:31:13 PM
Greetings! Please review the pull request #11:(maint) clean up configs [Link: https://github.com/puppetlabs/puppet-acceptance/pull/11 ] opened by (djm68) Some more information about the pull request: * Opened: Tue Sep 06 22:21:16…
(puppetlabs/puppet-acceptance) (maint) killing the agents could disguise issues with PE
February 8, 2012 06:01:08 PM
On Wed Feb 08 23:52:58 UTC 2012 pull request #130 was closed. (maint) killing the agents could disguise issues with PE [Link: https://github.com/puppetlabs/puppet-acceptance/pull/130 ] requested by (justinstoller) The pull request was…
(puppetlabs/puppet-acceptance) New pull request: (maint) Allow alt portno for PE console
November 4, 2011 01:47:46 PM
Please review pull request #74:(maint) Allow alt portno for PE console [Link: https://github.com/puppetlabs/puppet-acceptance/pull/74 ] opened by (djm68) Description: PE console will have the option to run on alt portno's, adding the…
(puppetlabs/puppet-acceptance) New pull request: (maint) Update valid pe
October 24, 2011 06:02:07 PM
Greetings! Please review the pull request #58:(maint) Update valid pe [Link: https://github.com/puppetlabs/puppet-acceptance/pull/58 ] opened by (justinstoller) Some more information about the pull request: * Opened: Mon Oct 24…
(puppetlabs/puppet-acceptance) (maint) re-sign dashboard properly after upgrade
February 2, 2012 11:31:08 AM
Please review pull request #131:(maint) re-sign dashboard properly after upgrade [Link: https://github.com/puppetlabs/puppet-acceptance/pull/131 ] opened by (justinstoller) Description: This adds an additional signing step after…
(puppetlabs/puppet-acceptance) (maint) killing the agents could disguise issues with PE
February 2, 2012 11:31:08 AM
Please review pull request #130:(maint) killing the agents could disguise issues with PE [Link: https://github.com/puppetlabs/puppet-acceptance/pull/130 ] opened by (justinstoller) Description: ...not being in a sane state after…
(puppetlabs/puppet-acceptance) New pull request: (maint) Updater updates
October 21, 2011 01:16:58 PM
Greetings! Please review the pull request #56:(maint) Updater updates [Link: https://github.com/puppetlabs/puppet-acceptance/pull/56 ] opened by (justinstoller) Some more information about the pull request: * Opened: Fri Oct 21…
(puppetlabs/puppet-acceptance) Closed pull request: (maint) don't track tmp dir
October 17, 2011 06:48:16 PM
Greetings! On Fri Oct 14 23:01:36 UTC 2011 pull request #50 was closed. (maint) don't track tmp dir [Link: https://github.com/puppetlabs/puppet-acceptance/pull/50 ] requested by (justinstoller) Thanks! The Pull Request Bot -- You…
(puppetlabs/puppet-acceptance) (maint) Modifying configs to use our dedicated master
January 18, 2012 01:16:53 PM
On Wed Jan 18 19:05:25 UTC 2012 pull request #109 was closed. (maint) Modifying configs to use our dedicated master [Link: https://github.com/puppetlabs/puppet-acceptance/pull/109 ] requested by (djm68) The pull request was merged by:…
(puppetlabs/puppet-acceptance) (maint) Small fix to dpittmans installer update
January 20, 2012 07:02:10 PM
On Sat Jan 21 00:48:04 UTC 2012 pull request #117 was closed. (maint) Small fix to dpittmans installer update [Link: https://github.com/puppetlabs/puppet-acceptance/pull/117 ] requested by (djm68) The pull request was merged by: djm68 …
(puppetlabs/puppet-acceptance) Closed pull request: (maint) Saved tmp
November 4, 2011 03:32:49 PM
On Fri Nov 04 20:21:08 UTC 2011 pull request #77 was closed. (maint) Saved tmp [Link: https://github.com/puppetlabs/puppet-acceptance/pull/77 ] requested by (justinstoller) The pull request was merged by: mykhyggz -- You received this…
Framework for acceptance testing involving text files with regexes
April 4, 2011
I have created a software package that produces a directory full of results. I would like to test the results from some standard input files. The…
Debian-sys-maint user in mysql?
February 9, 2011
hi guys, i just installed mysql on debian 6. With phpmyadmin i noticed there are already 4 mysql user: debian-sys-maint (localhost) root (127.0.0.1)…
Why do i have debian-sys-maint instead of a mysql root user?
February 4, 2011
I am currently trying to get mysql setup and i was trying to recover the password because i didnt know my root password and i got these directions…
Templating MySQL's my.cnf for setup in Puppet
February 18, 2011
I have been tasked with templating MySQL's my.cnf in an attempt standardize the configuration amongst the slave databases using Puppet. Right now,…
How can I configure exim4 with a smarthost via puppet?
March 26, 2011
I have tried to automate the exim setup via puppet. I followed the approach described here , whiched worked for me for a few packages, but for exim…
Is there any way to use arrays in a puppet module (not in template)?
May 10, 2010
I want to use puppet to manage a hadoop cluster. On the machines we have several directories which must be created and set permissions. But i'm…
Puppet + Passenger + Apache/Nginx
June 22, 2011
I'm working on a very large puppet deployment, but seem to be hitting a brick wall. My ideal setup is to use Nginx + Passenger to serve puppet. The…
Puppet offloading using NGINX, 403 forbidden error
May 21, 2011
I'm currently trying to offload some of the file serving puppet does using NGINX (As displayed here…
Puppet defined resource - selective parameterization?
May 6, 2011
Hi all, I'm currently banging my head trying to find the "best way" to achieve this type of granularity for puppet: I have a server running…
Mysql with no defaults
May 23, 2011
I found this tip on a site. check problematic queries using MySQL server running with option --no-defaults and compare result. I will like to know…
Fail2ban on Ubuntu (defaults okay?)
June 9, 2011
I run an Ubuntu-based web-server (LAMP) and have installed fail2ban. Does it have sensible defaults to restrict malicious activity via SSH and any…
What is the use of --print-defaults in mysql
May 23, 2011
what is the use of --print-defaults in mysql. what are the advantages and disadvantages. can we add it in my.cnf file Regards, Chinta kiran
Locale that defaults to LATIN1 Encoding
March 5, 2011
Hi, I'm trying to create a new database cluster in postgresql that defaults to LATIN1 encoding, or at least supports it. Does anybody know what…
How to use mysql defaults file (my.cnf) with sqlalchemy?
March 17, 2011
I'd like to have sqlalchemy get the hostname, username, and password for the mysql database it's connecting to. The documentation says mysql schemas…
Is there a function identical to "IF" but defaults the 3rd argument to NULL?
June 23, 2011
Basically I want to do IF(x>y,z,NULL) But without having to specify the 3rd argument all the time. I'm going to be using this a lot and I want my…
How to set up a Gatekeeper hosting setup that serves pages if they exist, but defaults to another server if it doesn't exist?
March 9, 2011
Hi, I'm building a gatekeeper app that lets the owner of MyClientsSite.com show a modified page that I'm hosting on MySite.com, but visitors to…
Adding defaults to integer columns, error saying 'right sytnax near 'default-1 default null'
April 11, 2011
I have a column named 'parent_id' that I am trying to add a default of -1 to: change_column :categories, :parent_id, :default => -1 The type is a…
How to split a stacktrace line into namespace, class, method file and line number?
February 28, 2011
C# stack traces take the following form: at Foo.Core.Test.FinalMethod(Doh doh) in C:\Projects\src\Core.Tests\Test.cs:line 21 at…
Php regex find string between line start and empty line without lines that starts with any html tags
June 7, 2011
hello i have to get any lines without html tags into this format <p>lorem ipsum</p> e.g. hello world <h2>lol</h2> lorem…
Regex to parse a single line starting with "My Password: " to the end of the line
April 2, 2011
Hi, I want to parse a line starting with the words "My Password: ". The problem is that the 2 words have space in between them and there is a space…