Displaying 20 results from an estimated 13000 matches similar to: "Ruby script to download files without 'puppet agent'"
2010 Oct 19
14
client won't use remote file bucket
Hi all,
I''m having a stupid moment getting a remote file bucket working. My
client only file buckets locally, not remotely.
I have this site.pp:
*********
filebucket { "main": server => "puppet" }
File { backup => "main" }
node ''default'' {
include test
}
*********
and this test module:
*********
class test {
file {
2010 May 20
10
Question about templates from variables
I''m running into an issue trying to do something like the following:
class test {
file {"test":
content => template(''mytemplate1'',''mytemplate2''),
}
}
class test::test2 inherits test {
File["test"] { content +> template(''mytemplate3''), }
}
So, basically I want the inherited class to tack on another
2011 Aug 05
5
Variable scope when having node inheritance
Hi
I''m having some trouble with the following setup:
node ''serverA'' inherits server-defaults {
include myApp::install
}
node ''server-defaults'' inherits default {
$sudoenv = ''custom_server''
}
node default {
$sudoenv = ''default''
include sudoers::config
}
class sudoers::config {
file {
2010 Jun 28
4
Error 400 : could not find template
Hello,
I did make a stupid fault: not commiting changes to version control :-(
After the installation of puppet-dashboard, I added a recipe to add
report = true to puppet config files on clients.
Now all Puppet clients don''t update because of an error...
What can be the various reasons for an ''400'' error??
I guess it has something to do with rights.
Jun 28 09:52:36 pm
2011 Jul 01
4
require => Class
Hi
I have been trying to use class dependency and had no luck so far.
following are the two classes i am trying to use
[root@puppet]#cat libreoffice.pp
class libreoffice {
case $hostname {
"foo": { package { "libreoffice": ensure => present, require =>
Class["foo1"] } }
}
}
[root@puppet]#cat foo.pp
class foo1 {
package {
2011 Jun 30
5
How to define a hash table and loop over them in a definition?
This may have been asked before, if so, please excuse me and point me
to the right direction.
What I want to do is to define a hash table with multiple key->value
pairs. I would like to pass this variable to a file template and
generate a result file with all the mappings listed. Based on what I
read, I need to do it in a definition. But does Puppet supports loop
over a hash?
Any help would
2011 Jul 23
2
Node or site.pp for global variables without dynamic lookup
Hi all,
I am working on rewriting my entire puppet environment and try to
''fix'' ''Dynamic lookup'' as it will be deprecated in some time, but even
after reading quite some docs and on the forum, it''s not really clear
to me.
What I have read so far, is that each variable must be fully-qualified
or parameterized in a class.
As a quick
2007 Aug 22
6
Re: [puppet] #779: access to inherited variables from within a template
puppet schrieb:
> #779: access to inherited variables from within a template
> -----------------------------------------+----------------------------------
> Reporter: simu | Owner: luke
> Type: enhancement | Status: new
> Priority: normal | Milestone:
>
2009 Oct 20
11
Stuck with puppet
Hello a newbie here.
The situation is that:
2 machine one master one client
Puppet 0.24.5
This my configuration:
Client:
/etc/puppet/puppetd.conf
[puppetd]
server = Asus-Vista-Box
logdir = /var/log/puppet
vardir = /var/lib/puppet
rundir = /var/run
master
/etc/puppet/manifests/classes/sudo.pp
class sudo {
file { "/etc/sudoers":
owner => "root",
2011 Apr 14
6
copying file with "source" parameter
Hi there,
Just started using Puppet since yesterday, so a totally newbie
question. I tried to search the answer by myself but none of the
suggestions actually worked. This is how my "modules" is laid:
|-- modules
| |-- mySudo
| | |-- files
| | | `-- sudoers
| | `-- manifests
| | `-- init.pp
The file(s), that I want to send to the client machines, is in the
2013 Jul 19
2
puppet master and fileserver separate problem
my environment:
192.168.0.13 puppet.uc.local
192.168.0.14 puppetca.uc.local
192.168.0.15 report.uc.local
192.168.0.16 fileserver.uc.local
192.168.0.17 agent01.uc.local
i want run a master as fileserver (fileserver.uc.local)
the puppet.uc.local and fileserver.uc.local use one ca.pem
on puppet.uc.local, i wrote a class for test
class test {
notify { "hello
2011 Jul 02
8
err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"
I''m running Puppet 2.7.1 on the master as well as the agent and just
received a new error which doesn''t actually reference a module or a file, so
I''m somewhat stuck as to how to debug this. Any pointers?
The error is err: Could not retrieve catalog from remote server: Could not
intern from pson: Could not convert from pson: Could not find relationship
target
2012 Nov 28
3
Could not retrieve information from environment production source
I''m using puppet 3.0
i install puppet by these two command:
sudo rpm -i
http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-6.noarch.rpm
sudo yum install puppet-server
as
http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#for-red-hat-enterprise-linux-and-derivatives
and
2007 Mar 26
3
Basic help with imports and includes
Do any of you good people have a moment to help me out with my basic
Puppet language skills, I''m a little new around here and getting an error
I don''t yet understand.
I have an RHEL4 Puppetmaster happily controlling the permissions of
/etc/sudoers on an RHEL5 and SolarisX86 client.
My actual environment consists of several systems in several locations.
All systems need the
2012 Oct 02
41
Puppet 3.0: Not authorized to call find on /file_metadata, more issues?
I''ve seen mention of this error in several places, with different causes.
So before I posted here, I attempted to resolve this on my own.
I corrected the change from puppet:///files to puppet:/// in my manifests
*.pp files.
No changes were made to the auth.conf file, and I did note in the ChangeLog
that:
Auth.conf differentiates between names and IPs – There’s a new allow_ip
2011 Oct 31
6
useradd question
I am using Ubuntu LTS 10.04 with the backported puppet
2.6.1-0ubuntu2~lucid1
I am trying to create user with the following manifests but at the end
always getting the Could not find user git error message:
What am i missing, seems the manifest not creating the missing git
user.
/etc/modules/git/manifests/user.pp
class git::user {
user{''install'':
name
2011 Apr 30
10
How to check if a package exists
Dear all,
I''m trying to do this. Say for example, I want this link: "liblcgdm.so
-> liblcgdm.so.1.8.0" to be present on the client only if "lcgdm-
libs-1.8.0-1sec.sl5" is already listed. I already have this to create
the link:
file {
''liblcgdm.so'':
ensure => symlink,
name => ''/opt/lcg/lib/liblcgdm.so'',
2012 Feb 06
3
Passing class parameters to hiera
I am using puppet 2.6.11 and want to pass parameter for implementing
sudo for mulitple users. So here is my simple code, which I would like
to pass to hiera to specify user name lookup. Appreciate any help,
thanks in advance.
class sudo( $name) {
#Class:: sudo
#
#
package { "sudo": ensure => present, }
file { "/etc/sudoers":
owner => root,
group => root,
2013 Jan 20
3
(New To Puppet)Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class sudo for pupclient on node pupclient
Hello Folks!
I am trying to learn puppet. Installed the puppet 3.0.2 and configured one
node as the master and the other as the client. Generated the certs and all
that. But, I seem to be doing something wrong wrt to the init.pp file.
Attached is exact error and my current server configuration. Any help in
helping me fix this issue is appreciated:
*[root@pupclient ~]# puppet agent --test*
2013 Jun 20
2
Re-inventing the Wheel (again?)
I''m new to puppet and working my way through the documentation. I''m
struggling with the puppet labs module repo.
I''ve toyed with numerous automation and configuration methodologies over
the decades. Perhaps I''m seeing puppet wrong, Compared with CFEngine
there is a a lot I like, but I''m not sure why I''m still having to re-invent
the