Puppet 2.6.1rc2 does not honor agent's --tags option

62 views
Skip to first unread message

Jean-Baptiste Quenot

unread,
Aug 26, 2010, 5:06:15 AM8/26/10
to puppet...@googlegroups.com
Hi there,

After upgrading Puppet from 0.24.8 to 2.6.1rc2 at my company, I notice
that puppet agent's --tags option is not honored anymore:

$ puppet agent -t --tags haproxy
Aug 26 10:49:17 myhost puppet-agent[24694]: Fact syncing is deprecated
as of 0.25 -- use 'pluginsync' instead
Aug 26 10:49:17 myhost puppet-agent[24694]: Retrieving fact
Aug 26 10:49:19 myhost puppet-agent[24694]: Caching catalog for myhost
Aug 26 10:49:21 myhost puppet-agent[24694]: Applying configuration
version '1282812559'
Aug 26 10:49:21 myhost puppet-agent[24694]: Finished catalog run in 0.35 seconds

When running without --tags option:

$ puppet agent -t
Aug 26 10:50:06 myhost puppet-agent[24980]: Fact syncing is deprecated
as of 0.25 -- use 'pluginsync' instead
Aug 26 10:50:06 myhost puppet-agent[24980]: Retrieving fact
Aug 26 10:50:07 myhost puppet-agent[24980]: Caching catalog for myhost
Aug 26 10:50:09 myhost puppet-agent[24980]: Applying configuration
version '1282812559'
Aug 26 10:50:12 myhost puppet-agent[24980]:
(/Stage[main]//Node[default]/Exec[apt-get update]/returns) executed
successfully
Aug 26 10:50:13 myhost puppet-agent[24980]: FileBucket adding
/etc/haproxy/haproxy.cfg as {md5}3ec8e4cae37dbd31a39343aee996c2b7
Aug 26 10:50:13 myhost puppet-agent[24980]:
(/Stage[main]/Production_webserver/Haproxy[haproxy]/File[/etc/haproxy/haproxy.cfg])
Filebucketed /etc/haproxy/haproxy.cfg to puppet with sum
3ec8e4cae37dbd31a39343aee996c2b7
Aug 26 10:50:13 myhost puppet-agent[24980]:
(/Stage[main]/Production_webserver/Haproxy[haproxy]/File[/etc/haproxy/haproxy.cfg]/content)
content changed '{md5}3ec8e4cae37dbd31a39343aee996c2b7' to
'{md5}049eb2e67261991fa3453d79a8be0ef1'
Aug 26 10:50:20 myhost puppet-agent[24980]: Finished catalog run in
11.40 seconds

"haproxy" is actually the name of a definition:

define haproxy() {
file { "/etc/haproxy/haproxy.cfg":
mode => 640,
owner => root,
group => root,
content => template('haproxy.rb'),
require => Package["haproxy"]
}

package { "haproxy":
ensure => installed
}
}

This used to work with 0.24.8, would be nice to fix.

Cheers,
--
Jean-Baptiste Quenot

Todd Zullinger

unread,
Aug 30, 2010, 2:47:39 PM8/30/10
to puppet...@googlegroups.com
Jean-Baptiste Quenot wrote:
> After upgrading Puppet from 0.24.8 to 2.6.1rc2 at my company, I
> notice that puppet agent's --tags option is not honored anymore:

Did you happen to file a ticket for this yet? I need to test more
myself, but I believe I saw this the other day too, with rc3.

--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Years ago fairy tales all began with "Once upon a time...", now we
know they all begin with, "If I am elected..."
-- Carolyn Warner

Jason Koppe

unread,
Sep 1, 2010, 7:54:39 AM9/1/10
to puppet...@googlegroups.com
Automatic tags don't work for me but explicit tags do since moving to 2.6.
--
Jason Koppe
Jason.Rob...@gmail.com
Cell (210) 445-8242

Jason Koppe

unread,
Sep 3, 2010, 7:12:34 AM9/3/10
to puppet...@googlegroups.com
Are automatic tags working for others in 2.6?

Ryan Y. Coleman

unread,
Sep 3, 2010, 10:50:51 AM9/3/10
to puppet...@googlegroups.com

----- Original Message -----
> From: "Jason Koppe" <jason.rob...@gmail.com>
> To: puppet...@googlegroups.com
> Sent: Friday, September 3, 2010 7:12:34 AM
> Subject: Re: [Puppet Users] Puppet 2.6.1rc2 does not honor agent's --tags option
> Are automatic tags working for others in 2.6?

No, but see: http://projects.reductivelabs.com/issues/4631

> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

Jason Koppe

unread,
Sep 3, 2010, 12:17:03 PM9/3/10
to puppet...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages