Displaying 7 results from an estimated 7 matches for "style_guid".
Did you mean:
style_guide
2013 Jan 31
7
Calling a "subclass" correctly in a node def?
Hi Guys!
I played with this a bit and perused the Puppet3 docs, and tried a few
different ways of calling the module with no joy before giving in and
posting. I''m kind of new to all this so bear with me.
*Goal of module*
Singular module to hold both a mysql (client) and mysql-server class.
Module default would be ''mysql'', or for mysql-servers we''ll call
2011 Apr 01
4
if statement: 'true' from left operand of 'in' expression is not a string
...from left operand of ''in'' expression is not a string at
/etc/puppet/manifests/classes/monitoring.pp:7 on node puppet
------------------------------------------------------------------------
This snippet of code I got from the puppet style-guide:
http://docs.puppetlabs.com/guides/style_guide.html#class-inheritance
-> see the bluetooth class example
Any ideas? What am I missing?
Btw. I''m running a self-build version of puppet 2.6.4 without additional
patches ...
Many thanks
Jan
--
| Jan Dennis Bungart
() ascii ribbon campaign...
2011 Dec 19
7
When the lint accumulates...
...that Tim Sharpe from GitHub wrote a Puppet
linting tool:
$ gem install puppet-lint
$ puppet-lint mymanifest.pp
Source: https://github.com/rodjek/puppet-lint
The linting tool checks Puppet code for "best practice" based on the
Puppet Labs Style Guide:
http://docs.puppetlabs.com/guides/style_guide.html
A lot of us have been using puppet-lint (and puppet parser validate) to
ensure our code is synoptically correct and as "best practice" as
possible.
We''re also aware that there are some strange and odd things in the
Puppet language and whilst we can''t fix all them...
2012 Apr 12
1
Developing a module: Use it from the current directory?
In general, the loading/import/namespacing mechanism is really something
that I cannot wrap my head around, even after reading the relevant sections
in the documentation.
Specifically, I''m trying to put together a module. I believe I have the
correct module structure:
$ find
.
./test.pp
./graphite
./graphite/manifests
./graphite/manifests/init.pp
./graphite/files
2012 Jun 27
6
Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82
I have a module located at /etc/puppet/environments/test/modules/ruby.
I
n this I have a manifests folder with two .pp files - init.pp and
gemInstall.pp.
In one of my node def files I have:
include ruby
ruby::gemInstall { ''someGem-version.gem'':
path => ''/path/to/agent/local/gem/repo'',
}
ruby::gemInstall is a define, and it has some logic to get around
2011 Dec 06
8
explicit class dependencies
Do explicit class dependencies work?
This simple example fails with:
Could not find resource ''Class[Config]'' for relationship on ''Class[Uses_config]''
class config {
}
class uses_config {
Class[''config''] -> Class[''uses_config'']
}
include uses_config
Am I doing something?
Thanks,
Christian
--
You received this
2011 May 13
18
Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Hi,
I have been trying to improve the coding of some of
my puppet recipes and had some trouble so wrote this:
http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Comments on the web seem to indicate that extlookup() solves "all
problems" but I don''t really see that and hence have proposed a possible
way to keep the data closer together and make the extlookup()