Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
define addgroups($groups) { $default = [ "foo", "bar" ] user { "dupe": groups => [ $default, $groups ] } } addgroups{ "foo": groups => [ "a", "b", "c" ] } ## when puppet agent: info: Caching catalog for node.domain.net err: Got an uncaught exception of type TypeError: can't convert String into Array ## puppet <file> says # puppet /tmp/concat.pp /dev/mem: No such file or directory err: //Addgroups[foo]/User[dupe]/ensure: change from absent to present failed: Could not create user dupe: Execution of '/usr/sbin/useradd -G a,b,c,foo,bar dupe' returned 6: useradd: unknown group a useradd: unknown group b useradd: unknown group c useradd: unknown group foo useradd: unknown group bar
This paste will be private.
From the Design Piracy series on my blog: