Deliver the file you want to read via puppet (make sure you require the file
resource in the one that uses the template). Probably still more optimal to
use extlookup tho...
I believe its documented on the puppetlabs site but if not google it and I'm
sure you'll find something :)
On Apr 8, 2011 4:
Managed to get te cdw from the template, it is set to: /var/www/puppet/rack
I guess it would not be a good idea to store mt data files in such a
directory, would it?
any pointers to extlookup is documented? or where in the code to look?
thanks a lot.
On Fri, Apr 8, 2011 at 6:56 PM, Mohamed Lrha
My File.new('./legacy.hosts.list') fails to find the file, which I
put in the same place as the template itself.
Is extlookup documented in puppetlabs docs? I cant locate it... Thanks a lot.
On Fri, Apr 8, 2011 at 6:42 PM, Scott Smith wrote:
> It's ruby, you can do whatever ruby allows.
>
> A
It's ruby, you can do whatever ruby allows.
A better solution might be to use extlookup, though.
On Apr 8, 2011 3:34 PM, "Mohamed Lrhazi" wrote:
> I have some logic I need in a template, and it needs to use a somewhat
> long list og hostnames I'd rather keep in a text file, instead of
> inside th
I have some logic I need in a template, and it needs to use a somewhat
long list og hostnames I'd rather keep in a text file, instead of
inside the template.
Can I open files from a template and if so, what would the path be?
would "./list.txt" mean same path as where the template itself is
locate
I started looking into detail level inside the database, and run
puppetmasterd in debug as well...
Noticed the resources were exported from the individual hosts, but didn't
update the host (who suppsed to collect those resources) with the exported
resources' information in db.
Meanwhile puppetmaste
hello list
I'm having a strange problem with a puppet server I was hoping I
could get some input on..
whenever I try to remove a cert on the server by issuing puppetca
--clean foo I get this error
[root@puppet ~]# puppetca --clean ec2-42-17-124-193.compute-foo.amazonaws.com
notice: Revoked cer
On 04/08/2011 04:23 AM, Max Kamensky wrote:
As far as I understand smth is wrong with syntax in cron "user =>
$username,"
What is $username? A facter, a variable you've set up? Did you try
adding something like 'notify{"username: ${username":}' and manually
running the puppet agent to verify
On Fri, Apr 8, 2011 at 10:34 AM, rektide wrote:
> the debian puppet package has a puppet agent running. this creates a /
> var/run/puppet/agent.pid file. when i run `sudo puppet agent`, i get:
>
> Could not prepare for execution: Could not create PID file: /var/run/
> puppet/agent.pid
>
> this p
On Apr 7, 1:49 am, Jens Bräuer wrote:
> Hi all,
>
> i try to run a puppet-setup that is not based on hostnames, but facts i
> supply to facter. The idea is described
> herehttps://github.com/jordansissel/puppet-examples/blob/master/nodeless-...,
> but a basic example would be
>
>
> if ha
the debian puppet package has a puppet agent running. this creates a /
var/run/puppet/agent.pid file. when i run `sudo puppet agent`, i get:
Could not prepare for execution: Could not create PID file: /var/run/
puppet/agent.pid
this prevents me from applying a change i want to make right now.
Ben,
What do you mean change encryption to type? Do you mean change type
=> "ssh-rsa" to encryption=> "ssh-rsa"?
On Apr 7, 5:18 pm, Ben Hughes wrote:
> On Thu, Apr 07, 2011 at 10:51:04AM -0700, Corey Osman wrote:
> > puppet resource ssh_authorized_key (this returns nothing)
>
> > puppet resou
On Thu, Apr 7, 2011 at 11:27 PM, Patrick wrote:
>
> On Apr 4, 2011, at 1:39 PM, Patrick wrote:
>
>>
>> On Apr 4, 2011, at 11:48 AM, Jacob Helwig wrote:
>>
>>> 1. Reports will need to be converted to a new schematized format when
>>> upgrading (#5459). Rather than just storing reports as serializ
Jacob Helwig wrote:
> Facter 1.5.9rc5 is a maintenance release containing fixes and updates.
For those using Fedora or RHEL/CentOS, I've updated the yum repos at:
http://tmz.fedorapeople.org/repo/puppet/
Packages for EL 4 - 6 and Fedora 13 - 15 are available for testing.
Add the puppet.repo
This is actually quite easy. You just need to call the template()
function from the erb template.
For example:
#!/bin/sample_script_erb
some
commands
here
<%= scope.function_template("module_name/template_file.erb") %>
some more
commands
here
On 4/6/11 11:48 PM, Ben Hughes wrote:
On Wed,
Hello
All puppet clients PCs are Ubuntu 10.04lts and have membership in
Samba/LDAP domain.
Puppet server is the member of Samba/LDAP domain also.
It's possible to log on as any domain user to Puppet server.
So :) The problem:
We'd like to start tasks with rights and environment of logged user. We
Hi Felix,
thanks for that hint. I missed the obvious ;-) (and learned a lot about the
difference between classes and defines)
Regards,
Jens
On 08.04.2011, at 09:04, Felix Frank wrote:
>> How am i able to bring this together with parameterized classes? For
>> instance this will complain about red
> *Parts* of your modules. You can't have custom resource types or custom
> functions per environment. And that sucks.
You can't? Is there a bug for this that I can vote on?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this grou
On 2011-04-07 10:13, Felix Frank wrote:
> looking at
> http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments,
> I cannot see any indication that those settings are per-environment.
Indeed, the only way to get per-environment external node classifiers
is to have a global wrapp
> How am i able to bring this together with parameterized classes? For
> instance this will complain about redefinition of class 'haproxy'.
>
> ---
> class haproxy ($conf = "puppet:///modules/haproxy/proxy.conf") {
> }
>
> if has_role("loadbalancer") {
> class { 'haproxy': conf => "puppet:/
20 matches
Mail list logo