Style Guide

37 views
Skip to first unread message

Andrea Cappelli

unread,
Jan 29, 2014, 12:39:00 PM1/29/14
to Puppet Users
Hi,
today I used puppet-lint (http://puppet-lint.com/) to check my manifests.

As a result I obtained a list of error and warnings which in many cases
are easy to solve, for example the use of $fqdn instead of $::fqdn

What I'm wondering is what are the real best practices you guys adopt
writing your puppet code, for example you use the :: on topscope
variables? You yse puppet-lint (or a similar tool) to check your style?

Thanks

--
Andrea Cappelli

Kurt Wall

unread,
Jan 29, 2014, 1:10:28 PM1/29/14
to puppet...@googlegroups.com
http://docs.puppetlabs.com/guides/best_practices.html
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/52E93CB4.1000102%40gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Andrea Cappelli

unread,
Jan 29, 2014, 1:42:50 PM1/29/14
to puppet...@googlegroups.com
Il 29/01/2014 19:10, Kurt Wall ha scritto:
> http://docs.puppetlabs.com/guides/best_practices.html
>

Thank you Kurt

--
Andrea Cappelli

Johan De Wit

unread,
Jan 29, 2014, 3:18:55 PM1/29/14
to puppet...@googlegroups.com
On 01/29/2014 07:42 PM, Andrea Cappelli wrote:
> Il 29/01/2014 19:10, Kurt Wall ha scritto:
>> http://docs.puppetlabs.com/guides/best_practices.html
>>
>
> Thank you Kurt
>
you are on the right track. We enforce the style guide using commit
hooks. if the code is not conform the guide, you can not check in your
code, and everyone benefits when you do this. especially you ..

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________

Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________


Next Events:
Puppet Fundamentals Training | http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Puppet Intruction Course | http://www.open-future.be/puppet-introduction-course-7th-february
Zabbix Certified Training | http://www.open-future.be/zabbix-certified-training-10-till-12th-february
Zabbix for Large Environments Training | http://www.open-future.be/zabbix-large-environments-training-13-till-14th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H
Reply all
Reply to author
Forward
0 new messages