Daniel Kerwin
2010-Oct-21 14:10 UTC
[Puppet Users] Upgrade to 2.6: Cannot use class name as tag anymore?
Hi list, i just upgraded some servers to Puppet 2.6.2 and it seems like it''s not possible to use class names as tags anymore. I haven''t found any documentation about this except a bug for 2.6.1 that should be fixed (http://projects.puppetlabs.com/issues/4631). Example: class firewall { package { "iptables": ensure => latest, category => "net-firewall", } .... } # XXXXXXXX ~ # puppet agent --test --noop --tags main::firewall notice: Ignoring --listen on onetime run info: Retrieving plugin info: Loading facts in root_device info: Loading facts in site info: Loading facts in system_profile info: Loading facts in gcc_profile info: Loading facts in portage_sync info: Loading facts in default_gw info: Loading facts in root_device info: Loading facts in site info: Loading facts in system_profile info: Loading facts in gcc_profile info: Loading facts in portage_sync info: Loading facts in default_gw info: Caching catalog for XXXXXXXX.YYYYYYYY.com info: Applying configuration version ''1066:1074M'' notice: Finished catalog run in 1.01 seconds In this case a update for iptables is available when i don''t specify a tag. This has worked in 0.25.x and according to the docs it should too in 2.6 Thanks, Daniel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Todd Zullinger
2010-Oct-22 16:04 UTC
Re: [Puppet Users] Upgrade to 2.6: Cannot use class name as tag anymore?
Daniel Kerwin wrote:> i just upgraded some servers to Puppet 2.6.2 and it seems like it''s > not possible to use class names as tags anymore. I haven''t found any > documentation about this except a bug for 2.6.1 that should be fixed > (http://projects.puppetlabs.com/issues/4631).> # XXXXXXXX ~ # puppet agent --test --noop --tags main::firewallHave you tried using just --tags firewall? I''ve never tested with main:: prefixed. But using the classname works for me with 2.6.3rc1. -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unquestionably, there is progress. The average American now pays out twice as much in taxes as he formerly got in wages. -- H. L. Mencken