Console color in 3.0.1

131 views
Skip to first unread message

thinkwell

unread,
Oct 31, 2012, 1:37:55 PM10/31/12
to puppet...@googlegroups.com
A trivial post, perhaps, but I liked the console coloring of 2.7 much better than 3.0. Is there a way to get the 2.7 coloring back or to customize the console color scheme?

TIA,

Dave

Josh Cooper

unread,
Oct 31, 2012, 1:54:59 PM10/31/12
to puppet...@googlegroups.com
Hi Dave,
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/4bXHMLuqsJ8J.
> 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.

Others feel the same way: http://projects.puppetlabs.com/issues/16728.
Please add yourself as a watcher and comment on the ticket.

Josh

--
Josh Cooper
Developer, Puppet Labs

Jeff McCune

unread,
Oct 31, 2012, 1:54:05 PM10/31/12
to puppet...@googlegroups.com
On Wed, Oct 31, 2012 at 10:37 AM, thinkwell <thinkwel...@gmail.com> wrote:
A trivial post, perhaps, but I liked the console coloring of 2.7 much better than 3.0. Is there a way to get the 2.7 coloring back or to customize the console color scheme?

It's possible, but not exactly easy.  For a time, the new format was only available using the log destination "telly_prototype_console" with something like this in puppet.conf:

[main]
logdest = telly_prototype_console

However, in commit 537343d we replaced the default destination named "console" with the telly console.  Unfortunately, we didn't leave the old destination in place as an option, but I'm not sure if we could have.

If this really bothers you, you might be able to create a new destination using:

Puppet::Util::Log.newdesttype :puppet27_console do
 ...
end

You can see the Puppet 2.7.19 console formatter here:

-Jeff
Message has been deleted

thinkwell

unread,
Oct 31, 2012, 3:27:11 PM10/31/12
to puppet...@googlegroups.com
Josh, thanks for that ticket link. I've signed up as a watcher.

Jeff, I've added the puppet27_console code to a client machine, then added the lines below to its puppet.conf, but no luck. Coloring remains the 3.0 version. Is that possible? Or did I do something wrong?

[main]
logdest = puppet27_console

Jeff McCune

unread,
Oct 31, 2012, 7:44:36 PM10/31/12
to Puppet User Discussion
On Wed, Oct 31, 2012 at 12:24 PM, thinkwell <thinkwel...@gmail.com> wrote:
Josh, thanks for that ticket link. I've signed up as a watcher.

Jeff, I've added the puppet27_console code to a client machine, then added the lines below to its puppet.conf, but no luck. Coloring remains the 3.0 version. Is that possible? Or did I do something wrong?

I'm not sure this will work even if you did everything perfectly, so I think this way lies madness.  Unless you're up for the challenging of hacking at the internals of Puppet, I think this is a bad road to go down.

If you'd like to keep trying though, please post the changes you made as a patch or into a topic branch on Github and we can continue the discussion on the puppet-dev mailing list or irc channel.

-Jeff

thinkwell

unread,
Nov 2, 2012, 9:24:34 PM11/2/12
to puppet...@googlegroups.com
I'm not a ruby programmer and the puppet internals will remain a wilderness to me for the near future. So I'll have to content myself with watching the ticket and waiting for the final solution. Thanks alot for your ideas, though.

Eugene

unread,
Nov 14, 2012, 9:34:18 AM11/14/12
to puppet...@googlegroups.com
Don't know may be it someone be useful I have prepared a patch that returns the old puppet 2.7 color style (patch in attach)

just run from <puppet_gem>/lib/puppet/util/log location for me it's a /var/lib/gems/1.8/gems/puppet-3.0.1/lib/puppet/util/log:

patch -p1 < ./destinations_oldStyleColor.patch

and enjoy :)


среда, 31 октября 2012 г., 19:37:56 UTC+2 пользователь thinkwell написал:
destinations_oldStyleColor.patch
Reply all
Reply to author
Forward
0 new messages