hello,

----- Original Message -----
> From: "Henrik Lindberg" <henrik.lindb...@cloudsmith.com>

> - use type system
> - use EPP instead of ERB
> - transition from using hira functions to using lookup (and next step to
> use 'data in environments and modules').
> - namespace all functions you create
> - whenever possible write functions in puppet instead of ruby
> - iterate and use regular resource syntax instead of create_resources
> - do not iterate by creating resources recursively

What do you mean by this? avoid resource{[array,of,names]: } ?

> - avoid depending on resource defaults expressions (murky area still)

But the new syntax works yes?

file {
  default:
    mode   => '0600',
    owner  => 'root',
    group  => 'root',
    ensure => file,
  '/etc/ssh_host_dsa_key.pub':
    mode => '0644',
}

> - avoid depending on automatic tagging  (murky area still)
> - document your manifests using Puppet Strings yard compatible syntax
> - avoid exposing temporary, "private" variables from classes (e.g. use
> 'with' function for creating temporary local scope).

good stuff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1869250531.212210.1450271929698.JavaMail.zimbra%40devco.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to