On 10 February 2011 16:04, Nan Liu wrote:
>
> Not sure if there's a better way. Convert all Hash key to string, so
> it doesn't choke on the array sort:
>
> $foo = inline_template("<% scope.to_hash.keys.collect{|x|
> x.to_s}.sort.each do |k| %><%= k %><% end %>")
> notice($foo)
>
> Thanks Nan - i
On 2011/02/09, at 15:32, DigitalWonk wrote:
> Hello puppet world,
>
> I'm sure this is probably an easy fix, but I cannot seem to resolve this
> issue. The puppetmaster starts correctly and so does the puppet agent, which
> receives the update correctly if I restart the puppet agent service m
On Wed, Feb 9, 2011 at 8:36 PM, John Warburton wrote:
> On 3 February 2011 05:04, Dan Bode wrote:
>
>>
>> class fooperi {
>> $foo = inline_template("<% scope.to_hash.keys.each do |k| %>
>> <%= k %><% end %>")
>> notice($foo)
>> }
>
> so I have this running nicely in a file - but I'd love to h
On 3 February 2011 05:04, Dan Bode wrote:
> class fooperi {
> $foo = inline_template("<% scope.to_hash.keys.each do |k| %>
> <%= k %><% end %>")
> notice($foo)
> }
>
so I have this running nicely in a file - but I'd love to have the results
sorted. Putting ".sort" at random places on the ha
We have moved to a masterless puppet install after running a server/
client method for over a year (maybe two). We have about 500 machines
but started having trouble with alot less (~100)
The puppet master would consume 8 GB and then crash due to running out
of RAM. The puppet server was too unstab
Hi,
I think your client can't resolve puppet server hostname. Try to change
'server' directive in config file or add 'puppet' to /etc/hosts or use
'--server' option in command line.
Regards.
On 10.02.2011 01:26, Tim Dunphy wrote:
hello list
I am attempting to setup a puppet server in the
Hi Tim,
what is your puppet.conf? Have you specified a puppet server to use? If not, by
default it will look for a host named puppet which is why its complaining about
not being able to resolve.
Cheers,
Atha
On Wednesday, February 9, 2011 at 8:44 PM, Tim Dunphy wrote:
> Hello and thanks for you
Hello and thanks for your reply!!
It looks like the hostname is set correctly
[root@mcollective ~]# hostname -f
mcollective.acadaca.net
[root@mcollective ~]# facter | grep fqdn
fqdn => mcollective.acadaca.net
And here is a more verbose run of puppetd --test
[root@mcollective ~]# puppetd -t
Tim Dunphy said:
> hello list
>
> I am attempting to setup a puppet server in the amazon cloud. When I
> try to hit the host from the test client using puppetd --test I get
> this response...
>
>
>
>
> [root@mclient ~]# puppetd --test
> err: Could not retrieve catalog from remote server: geta
hello list
I am attempting to setup a puppet server in the amazon cloud. When I
try to hit the host from the test client using puppetd --test I get
this response...
[root@mclient ~]# puppetd --test
err: Could not retrieve catalog from remote server: getaddrinfo: Name
or service not known
warn
Hi Atha,
This is what the basefiles class that I have created looks like now:
class basefiles {
file { "/etc/ldap.conf":
source => "puppet:///snjh/ldap.conf"
}
file { "/etc/haha.txt":
source => "puppet:///snjh/haha.txt"
}
}
I have allowed everything (for the time bei
>Any luck with this? I'm running 2.6.4 and I'm encountering the same
>issue with my puppetmaster and agents on centos 5.5.
>
The issue appears to be with client reports being sent back. For the changes
attribute, it sends values: [] instead of what it expects, values: [- -
sym/ruby, - total, 0]
Hi Tim,
the source specified is wrong. Since this is apparently not in a module, it
should read:
> source => "puppet:///snjh/ldap.conf"
>
In case you wanted to retrieve your files from another puppetmaster:
source => "puppet://${puppetmaster}/snjh/ldap.conf"
where ${puppetmaster} is the name o
hello again list!!
I am attempting to work out how to serve files with puppet.
Here is my fileserver.conf file
# This file consists of arbitrarily named sections/modules
# defining where files are served from and to whom
# Define a section 'files'
# Adapt the allow/deny settings to your nee
On Feb 9, 2011, at 12:28 PM, Tim Dunphy wrote:
> Hello puppet list!!
>
>
>
> I keep getting the same error and I can't for the life of me see
> where this problem is...
>
>
> [root@VIRTCENT03:~] #puppetd --test
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Coul
Hi guys,
got it worked out!!!
class baseapps {
$packagelist = [ "nmap","php-common","php-cli","perl","keychain","screen" ]
package { $packagelist:
ensure => installed }
class sshd {
case $operatingsystem {
centos: { $ssh_packages = ["openssh","openssh-server",
Hi Tim,
you are missing a closing }
class baseapps {
$packagelist = [ "nmap","php-common","php-cli","perl","keychain","screen" ]
package { $packagelist:
ensure => installed
}
class sshd {
case $operatingsystem {
centos: { $ssh_packages = [ "openssh","openssh-server","openssh-clients" ] }
default
Hello,
I tried placing a comma where you suggested. However that did not
appear to make any difference. Do you have any other thoughts?
[root@VIRTCENT03:~] #puppetd --test
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not parse for environment production: Syntax
> It would be non trivial to keep the configuration data isolated in
> masterless mode if you have a desire to segment and isolate
> configuration data by system, or even system roles (i.e. my website
> database system should not contain puppet manifest with my financial
> database password).
>
>
Hi,
> service { sshd:
> name => $operatingsystem ? {
> centos => "sshd",
> default => "sshd",
> }
comma
> enable => true,
> ensure => running
>
> }
--
You received this message because you are subscribed to the Google
Hello puppet world,
I'm sure this is probably an easy fix, but I cannot seem to resolve this
issue. The puppetmaster starts correctly and so does the puppet agent,
which receives the update correctly if I restart the puppet agent
service manually or during the timed updates; however, if I per
I think it depends on the use case. I much prefer the git method. I'm
trying to do it the classic way this week, but there is a lot of decisions
to deploy an efficient puppetmaster which add complexity and unwanted
software to some setups.
Git does ssh.
Git is far faster.
Finally, the sour
Hello puppet list!!
I keep getting the same error and I can't for the life of me see
where this problem is...
[root@VIRTCENT03:~] #puppetd --test
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not parse for environment production: Syntax error at
'enable'; expe
I rolled out 2.6.3 to four puppetmasters yesterday as part of a canary
and while it's been less than 24 hours, there are already encouraging
signs. The servers participating in the canary logged just short of
600 500 errors yesterday and have logged 0 so far today. For further
comparison, the rem
Any luck with this? I'm running 2.6.4 and I'm encountering the same
issue with my puppetmaster and agents on centos 5.5.
rrdtool.x86_64 1.2.27-3.el5
installed
rrdtool-devel.x86_641.2.27-3.el5
installed
rrdtool-ruby.x86_64 1.2.27-3.e
emmm everything?!
is the master-client relationship not the whole point of puppet? the
master stores the scripts and the client obtains the instructions in
the scripts from the master. If you have no master, where do you get
your instructions?
On Feb 7, 10:59 pm, jblaine wrote:
> I've not foun
On Feb 9, 2011, at 10:51 AM, CraftyTech wrote:
> These are the files that I copy:
>
> puppetmaster1>cd /etc/puppet/ssl
> puppetmaster1>scp private_keys/puppet-test01.pem
> root@puppet-test01:/etc/puppet/ssl/private_keys/puppet-test01.pem
> puppetmaster1>scp ca/signed/puppet-test01.pem
> root@p
These are the files that I copy:
puppetmaster1>cd /etc/puppet/ssl
puppetmaster1>scp private_keys/puppet-test01.pem
root@puppet-test01:/etc/puppet/ssl/private_keys/puppet-test01.pem
puppetmaster1>scp ca/signed/puppet-test01.pem
root@puppet-test01:/etc/puppet/ssl/certs/puppet-test01.pem
puppetmast
The SSLDIR is where it should be:
puppetmasterd --genconfig | grep 'ssldir ='
ssldir = /etc/puppet/ssl
The crazy thing is that running puppetd with the same cert works fine. Only
puppetmaster is the issue. I run it to sync up with the main puppetmaster.
--
You received this message be
Héctor Rivas Gándara wrote:
> Hello,
>
> I have developed a pair of small providers for AIX: user, group and
> mount. They should be polished and tested before merge them in main
> puppet branch.
>
Hector
I'm currently trying to source both AIX and HP-UX platforms as test beds
for other Puppet
I have figured it out, the cron name had a dot n it. I needed to
encase that in quotes before it would work. so it wasn't a syntax
error like the log message was leading me to believe.
On Feb 9, 12:10 pm, trey85stang wrote:
> I have a simple class like so for cronjobs:
>
> class cron_jobs {
>
Okay... that's very cool (and thanks for the github example repo for nodeless
puppet!). This plus the 'scaling puppet with git' [0] concepts I'll use here
at Lookout, Inc.
Cheers,
Ryan
[0] -
http://bitfieldconsulting.com/scaling-puppet-with-distributed-version-control
On Feb 9, 2011, at 1:
I have a simple class like so for cronjobs:
class cron_jobs {
cron { cron1:
command => "/path/to/cron1",
user=> root,
hour=> 0,
minute => 5,
ensure => present,
}
cron { cron2:
command => "/path/to/cron2",
user=> root,
hour=> 0,
minute =>
On Feb 9, 2011, at 7:27 AM, CraftyTech wrote:
> Thanks for your reply. At this juncture, I'm doing it by the book and it's
> still failing for me. Can someone spot what I'm doing wrong here?:
>
> puppetmasterd --no-daemonize --verbose --certname puppet-test01.dev.domain.com
> "Could not prepa
Hello,
I finally just find an answer...
That's right I had something wrong in one template, I was not able to find
which one...
So I used SVN to return back to a state which worked before, and resolved my
issue.
The only thing is that the error message was not so obvious.
Thanks
Hugo
On 9
I'm running 2.6.2 both client and server and am having a problem with
defunct processes for sh and gem on the clients.
Right now I see 715 of them.
Restarting the puppet daemon nightly helps, but I would prefer to fix
this.
root 21667 1 0 11:11 ?00:01:20 /usr/bin/ruby1.8 /usr/
s
On Feb 9, 2011, at 7:13 AM, Hugo Deprez wrote:
> Hello,
>
> I was trying to change two modules on my puppet.
> And I was block on one error, until I figured that the error which show up
> was not related to a specific module.
>
> This error is causing issue to all my puppet clients :
>
> #p
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hmm.. I had similar problem without solving it the elegant way until
now.
But how about the following algorithm:
- - Check which interface has the default routing
- - If no default routing take the first one
Regards
Klaus
- --
Klaus Ethgen
On Tue, Feb 8, 2011 at 1:22 PM, Tim Dunphy wrote:
> Couldn't fork %post: Cannot allocate memory
Can you perform the actions manually, without puppet involved? this
looks like memory shortage issue...
Mohamed.
--
You received this message because you are subscribed to the Google Groups
"Puppet
On Wed, Feb 9, 2011 at 3:07 AM, prayther wrote:
>
> I am specifically trying to eliminate the need for puppet master for 2
> reasons (i am just scratching the surface on what puppet can do and
> how it works. nooby). 1 simplicity to others to use an open systems
> management process that has red
On Tue, Feb 8, 2011 at 7:36 PM, Trevor Vaughan wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Don't put $packagelist in quotes.
>
> $packagelist = Array[...]
> "$packagelist" = String(packagelist)
>
Thanks; makes sense not to use the quotes, seeing now what goes on in the
background
Hello,
I was trying to change two modules on my puppet.
And I was block on one error, until I figured that the error which show up
was not related to a specific module.
This error is causing issue to all my puppet clients :
#puppetd -vt
info: Retrieving plugin
err: Could not retrieve catalog fro
Thanks for your reply. At this juncture, I'm doing it by the book and it's
still failing for me. Can someone spot what I'm doing wrong here?:
puppetmasterd --no-daemonize --verbose --certname
puppet-test01.dev.domain.com
"Could not prepare for execution: Retrieved certificate does not match
p
Hi,
I defined a simple custom fact which just returns "Hello, world".
Following the instructions in
http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts
http://docs.puppetlabs.com/guides/plugins_in_modules.html
I added the source file as modules/admin/lib/facter/hello.rb
and enabled 'plu
On 11-02-09 01:01 AM, Naresh V wrote:
> Facter.add(:ipaddress, :timeout => 2) do
> setcode do
> if hostname = Facter.value(:hostname)
> # we need Hostname to exist for this to work
> host = nil
> if host = Facter::Util::Resolution.exec("host #{hostnam
Hi,
thank you verymuch.
Matteo
2011/2/9 Felix Frank
> On 02/09/2011 01:22 PM, M C wrote:
> > Hi,
> >
> > the problem we are facing is not the transfer of backslash
> > escape+non-specific character; we need puppet not to log the warns into
> > the syslog when catalogs are prepared and commands
Upgrade your activerecord gem
Ohad
On 2/9/11, Klaus Ethgen wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> Hello,
>
> is there any news about this issue? At the moment I still have to
> restart puppetmaster hourly. But if the clients getting more I have to
> shorten this inter
On 02/09/2011 01:22 PM, M C wrote:
> Hi,
>
> the problem we are facing is not the transfer of backslash
> escape+non-specific character; we need puppet not to log the warns into
> the syslog when catalogs are prepared and commands such as
>
> command => "/bin/echo \"\$(echo bin)\"",
>
> are pr
Hi,
the problem we are facing is not the transfer of backslash
escape+non-specific character; we need puppet not to log the warns into the
syslog when catalogs are prepared and commands such as
command => "/bin/echo \"\$(echo bin)\"",
are processed for compiling
Our syslogs are full of " [...
On 02/09/2011 12:13 PM, M C wrote:
> Hi,
>
> it aint our issue: we dont actually need to include escape chars into
> strings, our need is - for example - to escape delimitators ( ", ' )
> inside command lines; in fact ,we're used to compose very complex tiny
> scripts with subshells for the 'comma
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hello,
is there any news about this issue? At the moment I still have to
restart puppetmaster hourly. But if the clients getting more I have to
shorten this interval more and more.
Regards
Klaus
- --
Klaus Ethgenhttp
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi,
first sorry about the long delay of my answer. I was very bussy. However
the problem still appears.
Am Do den 11. Nov 2010 um 16:06 schrieb Nigel Kersten:
> > Yes. And the funny think is that I also have a custom provider for
> > packagemanagem
Hi,
it aint our issue: we dont actually need to include escape chars into
strings, our need is - for example - to escape delimitators ( ", ' ) inside
command lines; in fact ,we're used to compose very complex tiny scripts with
subshells for the 'command' field into 'exec' resources, etc..
Please
Having your puppetmaster configuration in a git repository and simply ask
the puppet (crontab) to periodically fetches configuration changes and run
it could also be an approach to a masterless deployment but keeping a
centralized configuration...
Are am I missing "some active" thing (puppetrun fo
On Feb 9, 4:15 am, Jordan Sissel wrote:
> On Mon, Feb 7, 2011 at 9:59 AM, jblaine wrote:
> > I've not found an explanation of what is lost by using Puppet without a
> > puppetmaster.
>
> > Does anyone have a link to something like that, or is anyone willing to
> > expound on the topic?
>
> I pr
OK - I found the issue. Because 2.6.x gives us nice human readable(ish)
catalogs, I compiled mine and the 'random' hits were all for directories.
Re-reading the manifest, I see those directories in the error messages all
had "type => directory", like
file { "/var/empty":
ensure => 'dir
Hello,
I found the solution thanks to your help :
if versioncmp($operatingsystemrelease, '5.0.8') > 0 {
$syslog_template = "syslog/syslog-ng.conf-squeeze.erb"
}
else
{
$syslog_template = "syslog/syslog-ng.conf.erb"
}
and I add in my class :
notify { "OS release detected as '$operatingsystemre
> Is there a way to print somewhere the value of the variables in order
> to be sure of what is return ?
notify { "OS release detected as '$operatingsystemrelease'": }
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, sen
Hello,
thank you for the anwser.
I try to run facter on both servers here it what I get :
~ # facter operatingsystemrelease
5.0.8
~ $ facter operatingsystemrelease
6.0
So far no issues.
Maybe in my if statement I should use " " ?
Is there a way to print somewhere the value of the variables
On Feb 8, 4:30 pm, Michael Knox wrote:
> Try ralsh yumrepo
>
> Just discovered that ralsh can even use custom types out of my modules
> ... cool
Yup. You can do some really cool things with custom types and
providers:
tmp donavanm$ sudo puppet resource route53
route53 { 'foo.strewth.org.':
On Mon, Feb 7, 2011 at 9:59 AM, jblaine wrote:
> I've not found an explanation of what is lost by using Puppet without a
> puppetmaster.
>
> Does anyone have a link to something like that, or is anyone willing to
> expound on the topic?
>
I presented a few weeks ago about how I use puppet, and t
On Mon, Feb 7, 2011 at 11:46 PM, Joe Gross wrote:
> Hi all,
>
> I'm new to puppet put did a lot with cfengine2 at my last gig. I'm using
> v0.25.4 (default) on Ubuntu Lucid but can upgrade to 2.6 if necessary.
>
> I have a few hundred (with more on the way) machines in a new datacenter. I
> have a
jblaine wrote on 02/07/2011 06:59 PM:
> I've not found an explanation of what is lost by using Puppet without
> a puppetmaster.
>
> Does anyone have a link to something like that, or is anyone willing
> to expound on the topic?
Puppet is about centralizing administration. If you have dozens/hundre
Hello,
I tried using config_version with my simple shell script which returns
my SVN revision number. but puppet doesn't seem to be applying the
config version in the logs.
More Details
Puppet Master/Client Version: 2.6.4
config_version = /usr/loca/bin/get_revision ( this line is placed
under [m
64 matches
Mail list logo