When you inherit from a class the class you inherit from is evaluated
first, which is why it is able to set the parameter defaults for the
"subclass".
So when those if statements in foo::params are evaluated the class foo
simply haven't been evaluated yet, so you can't reference any
variables in i
Hi,
Thanks for the answer, but still searching as I've got this error now :
ruby setup.rb
> /usr/lib/ruby/1.9.1/rubygems.rb:206:in `try_activate': undefined method
> `find_by_path' for Gem::Specification:Class (NoMethodError)
> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `resc
Hi,
Please have a look at this init.pp file.
https://github.com/shadyabhi/puppet-t/blob/master/modules/php/manifests/init.pp
In short, I have defined two classes that do some stuff & then I define
that the resources in one class should be executed before the resources of
the other class by usi
Hi,
http://docs.puppetlabs.com/guides/language_guide.html
"Class names, module names, and the names of defined and custom resource
types should be restricted to lowercase alphanumeric characters and
underscores, and should begin with a lowercase letter; that is, they
should match the expression [
2012/8/13 Deimos Fr :
> Hi,
>
> Thanks for the answer, but still searching as I've got this error now :
>
>> ruby setup.rb
>> /usr/lib/ruby/1.9.1/rubygems.rb:206:in `try_activate': undefined method
>> `find_by_path' for Gem::Specification:Class (NoMethodError)
>> from /usr/lib/ruby/1.9.1/rubyge
I did as well. But I'm still blocked to the rubygem compilation :
> update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.8 1
> ruby setup.rb
/usr/lib/ruby/1.9.1/rubygems.rb:206:in `try_activate': undefined method
`find_by_path' for Gem:
Ok, works now. I has to did a sad thing. For unknow reasons, this doesn't
work at all :
> update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.8 1
> update-alternatives --remove ruby /usr/bin/ruby
So what I did is :
> rm /etc/alternatives/ruby
> ln -s /usr/bin/ruby1.8 /etc/alternatives
On Monday, August 13, 2012 9:25:44 AM UTC+2, Erik Dalén wrote:
>
> When you inherit from a class the class you inherit from is evaluated
> first, which is why it is able to set the parameter defaults for the
> "subclass".
>
> So when those if statements in foo::params are evaluated the class f
Thanks Stephen. It would have been great if violating the rule created
error/warning while doing puppet test runs. Isn't it the desirable way
to avoid bugs while doing dependency resolution?
On Mon 13 Aug 2012 03:13:25 PM IST, Stephen Gran wrote:
Hi,
http://docs.puppetlabs.com/guides/language
All, I am trying to have a unique type name be having
"${username}-${dotfile}" where $dotfile is an array of filenames.
This is based on the Puppet 2.7 Cookbook to manage user dotfiles and ssh
keys.
I opened a bug here:
http://projects.puppetlabs.com/issues/15919
I have a github gist here:
http
On Sunday, August 12, 2012 6:51:37 AM UTC-5, Erik Dalén wrote:
>
> On 12 August 2012 08:30, Douglas Garstang >
> wrote:
> > So, general puppet design question. I have a definition called
> > create_vg that creates an lvm volume group. An input to this is
> > obviously the list of physical dis
All,
I am running Puppet 2.7.17 on Ubuntu 10.04 (64bit, server).
In some of my modules/files I have some broken symlinks (that once deployed
to the nodes are not broken) in directories that I manage via puppet.
When I run puppet doc, it errors out complaining about the target of
whatever symli
I did a quick look for it but I could not find it. When it comes to puppet
masters, is it required to copy the puppet/ssl/ca directory to each puppet
master or is there a configuration to make the puppet master not try to
generate its own CA if there is a ca_server option specified?
--
You rec
On Monday, August 13, 2012 12:35:32 AM UTC-5, yersinia.spiros wrote:
>
> For situation like this define the group as a virtual group , better
> yet define a module that contain the virtual group including it in
> your class and "realize" it when necessary. Or sometime better use the
> "spaces
I have been trying to figure out for some time, I am using
puppet-2.6.11 on RedHat 5.6 and hiera 0.1.0.
Anytime I add a new hostgroup I can;t get hiera to pick up or parse
that directory structure correctly.
Has anyone ever run into this issue? or is there something simple I am
missing here. Reall
On Mon, Aug 13, 2012 at 6:46 AM, Matt wrote:
> I did a quick look for it but I could not find it. When it comes to puppet
> masters, is it required to copy the puppet/ssl/ca directory to each puppet
> master or is there a configuration to make the puppet master not try to
> generate its own CA if
Right, thats what I am trying to do but what is happening that I'm seeing
is the masters are creating their own CA. The error I am seeing is this.
info: Creating a new SSL key for ca
debug: Using cached certificate for ca
Could not prepare for execution: The certificate retrieved from the master
Ok, that's helpful, however:
On Sun, Aug 12, 2012 at 8:43 AM, Eric Shamow wrote:
> An example: suppose is this module you say $puppetmaster =
> "myserver.local" and in another module, you want to only run on a puppet
> master and so say $puppetmaster = true. When Puppet assembles the model of
>
On Monday, August 13, 2012, Matt wrote:
> Right, thats what I am trying to do but what is happening that I'm seeing
> is the masters are creating their own CA. The error I am seeing is this.
You should get a SSL certificate for the master using puppet cert generate
on the ca. Unfortunately you
Yup that was the missing entry. I didnt have the ca setting at all disabled.
Thanks!
On Monday, August 13, 2012 11:53:56 AM UTC-4, Jeff McCune wrote:
>
> On Monday, August 13, 2012, Matt wrote:
>
>> Right, thats what I am trying to do but what is happening that I'm seeing
>> is the masters are c
On Mon, Aug 13, 2012 at 8:31 AM, Zachary Stern wrote:
> Ok, that's helpful, however:
>
>
> On Sun, Aug 12, 2012 at 8:43 AM, Eric Shamow wrote:
>
>> An example: suppose is this module you say $puppetmaster =
>> "myserver.local" and in another module, you want to only run on a puppet
>> master and
> class puppet (
> $server = $puppet::params::server
> ) include puppet::params {
> ...
> }
>
If I'm already specifying scope, e.g. $server = $puppet::params::server,
why do I also need the include?
--
zachary alex stern I systems architect | ceo - enter: narnia
o: 212.731.2033 | f: 212.20
On Mon, Aug 13, 2012 at 9:37 AM, Zachary Stern wrote:
>
> class puppet (
>> $server = $puppet::params::server
>> ) include puppet::params {
>> ...
>> }
>>
>
> If I'm already specifying scope, e.g. $server = $puppet::params::server,
> why do I also need the include?
>
Sorry typo:
class puppet
On Mon, Aug 13, 2012 at 12:42 PM, Nan Liu wrote:
> class puppet (
> $server = $puppet::params::server
> ) inherits puppet::params {
>
Still missing something here - why do I need "inherits", or ANY statement
at all, other than the $server = $puppet::params::server.
$puppet::params::server seem
Is there a way to use MySQL to store puppet certificates instead of storing
them on a file system? the reason I ask this questions is if a server
fails, I can bring up another one and point to the MySQL server and I can
be up and running. The other implementation is in an environment with large
For the people still looking for an answer:
chown -R puppet:puppet /var/lib/puppet/reports
Op woensdag 30 maart 2011 21:02:43 UTC+2 schreef hyzhang het volgende:
>
> Thank. I am pasting the entire message here:
>
> Mar 30 14:01:04 puppetclient1 puppet-agent[28571]: Could not request
> certificat
I install the MS Exchange on agent via puppet.When the installing script
run successfully on the agent,puppet can not obtain the return vaule any
more.The log truncated when I switch the logouput to "true". I'm confused
if the cache is full or reach the time limit.
Can you give me some tip?
T
It looks like that buffer is full and puppet can not handle more return
value .
在 2012年8月13日星期一UTC+8下午7时24分11秒,Feng写道:
> I install the MS Exchange on agent via puppet.When the installing script
> run successfully on the agent,puppet can not obtain the return vaule any
> more.The log truncated
On Mon, Aug 13, 2012 at 9:45 AM, Zachary Stern wrote:
> On Mon, Aug 13, 2012 at 12:42 PM, Nan Liu wrote:
>>
>> class puppet (
>> $server = $puppet::params::server
>> ) inherits puppet::params {
>
>
> Still missing something here - why do I need "inherits", or ANY statement at
> all, other than
On Mon, Aug 13, 2012 at 4:47 AM, Ron wrote:
> All, I am trying to have a unique type name be having
> "${username}-${dotfile}" where $dotfile is an array of filenames.
> This is based on the Puppet 2.7 Cookbook to manage user dotfiles and ssh
> keys.
>
> I opened a bug here:
> http://projects.pupp
Is the output of a command called by puppet stored somewhere on the master
or agent?
For example, if have the statement
---
commands :ls => "ls"
---
and then I try something like " ls, '/' "
where does the output of "ls /" go? I've tried poking around in vardir on
both the master and the agent
Thanks for the replies. I will give them metadata_expire option a try and
if that doesnt work.. ill just execute a yum clean all with every internal
repo update.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the w
On Mon, Aug 13, 2012 at 11:55 AM, ZJE wrote:
>
> Is the output of a command called by puppet stored somewhere on the master or
> agent?
>
> For example, if have the statement
> ---
> commands :ls => "ls"
> ---
>
> and then I try something like " ls, '/' "
>
> where does the output of "ls /" go? I
If using the nodes/*.pp and having your site.pp be "import 'nodes/*'",
what is the best practice? Is it better to have one node def per file, or
group the node defs by class (ie, all app servers in one file or all web
servers in one file) or some other layout?
Also, is there a way to have the n
On Monday, August 13, 2012 1:20:27 PM UTC-5, Nan Liu wrote:
>
>
> A common misconception, but most people expect in puppet string+array
> results in an array value with the string prefix every array element,
> what you get is actually string + array.to_s.
Yes, we seem to have seen a lot of th
On Monday, August 13, 2012 5:14:46 PM UTC-4, jcbollinger wrote:
>
>
>
> On Monday, August 13, 2012 1:20:27 PM UTC-5, Nan Liu wrote:
>>
>>
>> A common misconception, but most people expect in puppet string+array
>> results in an array value with the string prefix every array element,
>> what you
HUGE Thanks to Nan Liu!
Here is my updated gist on github. This is now working and in production.
https://gist.github.com/3323851
Best,
Ron
On Monday, August 13, 2012 5:23:17 PM UTC-4, Ron wrote:
>
>
>
> On Monday, August 13, 2012 5:14:46 PM UTC-4, jcbollinger wrote:
>>
>>
>>
>> On Monday, Augus
On Mon, Aug 13, 2012 at 2:44 PM, Ron wrote:
> HUGE Thanks to Nan Liu!
>
> Here is my updated gist on github. This is now working and in production.
> https://gist.github.com/3323851
Whoops, please don't abuse inline_template despite my terrible example.
John, thanks for the suggestion. The regsu
I'm pretty sure I'm coming at this from the wrong direction, if anybody
could point me to what the puppet idiom should be here I'd really
appreciate it.
I'd like to install two instances of this service on this host, with
different parameters:
node /^memcache\d+.util.foo.com$/ {
class {'
Reposting my answer to a similar thread:
https://groups.google.com/d/msg/puppet-users/xAhvtWetin4/cw4OOuNfCcIJ
Short version: use a define.
http://docs.puppetlabs.com/guides/language_guide.html#defined-resource-types
On Mon, Aug 13, 2012 at 05:17:13PM -0700, Kevin G. wrote:
>I'm pretty sure
On Mon, Aug 13, 2012 at 11:55:23AM -0700, ZJE wrote:
> Is the output of a command called by puppet stored somewhere on the master
> or agent?
>
> For example, if have the statement
> ---
> commands :ls => "ls"
> ---
>
> and then I try something like " ls, '/' "
this does not seem right. The abo
>
> Short version: use a define.
>
>
> http://docs.puppetlabs.com/guides/language_guide.html#defined-resource-types
>
That's it, thanks!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://grou
Hi everyone,
The hiera command line program (version 0.3.0) is currently taking around 2
seconds per invocation. This seems quite slow to me, but is probably not
an issue for most users.
We have a number of legacy machines that for one reason or another have not
been puppetised yet, and proba
Trying to force puppet class execution order with:
Class['lvm'] -> Class['network'] -> Class['apt'] -> Class <| |>
This is giving me:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Resource type class doesn't exist at
/truth/sauce/env/prod/modules/role/manifests/common.
44 matches
Mail list logo