Hi Trey,
You could always use the concat module.
https://forge.puppetlabs.com/puppetlabs/concat
Create the global fragment in the class and then use a defined type to
create a concat fragment for each entry that you want. You can pass a
template to each fragment.
--
You received this message
Hi there,
this is - for sure - pretty easy to solve but I'm a bit stuck right now...
I want to add a prefix to my apache-vhost access and error logs depending
on what kind of application is installed on this vhost
Right now my config looks something like this:
apache::vhost { 'vhost.example.co
I know this question has been asked before in many different variant. I
read all the post related to the problem but I cannot get agent and master
talking to each other. I boot up 2 vm via vmwork station both running on
linuxmint 17.
I'll start this thread by telling what's my /etc/hosts and /e
Apologies for the delay in response.
This module will install eclipse and install Geppetto, Ruby DLTK, etc. as
features into Eclipse. Required in situations where you are building dev
environments frequently and want to give dev the capability to start all
over again if something goes wrong wit
Denny,
Which apache module are you using?
— cwebber
> On Oct 24, 2014, at 12:32 AM, Denny wrote:
>
> Hi there,
>
> this is - for sure - pretty easy to solve but I'm a bit stuck right now...
>
> I want to add a prefix to my apache-vhost access and error logs depending on
> what kind of appli
puppetlabs-apache (v1.1.1)
Am Freitag, 24. Oktober 2014 13:35:23 UTC+2 schrieb cwebber:
>
> Denny,
>
> Which apache module are you using?
>
> — cwebber
>
> On Oct 24, 2014, at 12:32 AM, Denny >
> wrote:
>
> Hi there,
>
> this is - for sure - pretty easy to solve but I'm a bit stuck right now...
>
Ok,
So when you call `access_log_file => “wordpress_${access_log_file}”` puppet is
pulling $access_log_file from the scope in which you called apache::vhost what
you probably want to do is something like:
$vhost_name = ‘vhost.example.com'
$vhost_type = ‘wordpress’
apache::vhost {$vhost_name:
thanks, but this would be far to much work for like 100 vhosts, which I
want to sort into 2-3 groups of vhosts
in fact, it's probably easier to put them into different directories
Am Freitag, 24. Oktober 2014 14:27:47 UTC+2 schrieb cwebber:
>
> Ok,
>
> So when you call `access_log_file => “wordp
After downgrade facter to 1.7.1 the error is gone.
Then I did the update again and the error was back again.
I have many server that already have the version 2.1, without an update.
I don't understand why the update does not work.
--
You received this message because you are subscribed to the G
Maybe do something with create_resources and hiera? It has been a while since I
have done it so I don’t have code handy but it is worth looking at.
— cwebber
> On Oct 24, 2014, at 5:41 AM, Denny wrote:
>
> thanks, but this would be far to much work for like 100 vhosts, which I want
> to sort
On Fri, Oct 24, 2014 at 5:43 AM, Andreas Dvorak
wrote:
> After downgrade facter to 1.7.1 the error is gone.
> Then I did the update again and the error was back again.
>
Can you double-check that this server doesn't have multiple versions of
facter installed? E.g. this can happen with one instal
Concat might work, let me toy with this, ill post back if i get a working
example.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@go
On 10/21/2014 06:06 PM, New wrote:
> Hello
> I need create fact that check the messages log and find any error with
> every execution of puppet.
> The objective is check if any error appear in any execution of puppet
> and return the name of the class fail.
> Thanks!!!
Hi,
have you tried storing
Hi All,
Does anyone use example42-network with Hiera? I'm trying to find an
example in Hiera that configures that module.
https://forge.puppetlabs.com/example42/network/readme
So far I've tried, in .yaml (Hiera works OK with hostname,
environment, etc etc)
---
network::interfaces_hash:
eth
James thanks for suggesting concat, it worked perfectly; the examples on
the page were more then enough to get me going.
Thanks,
On Friday, October 24, 2014 9:08:18 AM UTC-5, Trey Ormsbee wrote:
>
> Concat might work, let me toy with this, ill post back if i get a
> working example.
>
>
I am trying to copy a current Puppet Master server on one domain and move
it to another. Im finding that its very hard to try to change all the
config remanence. Is there an easy way to do this, or a step by step best
practice? I have grepped most of the old fqdn name and changed it to the
ne
in general, /etc/puppet/manifests/site.pp is the entry point of puppet
manifests, the content always be [import 'nodes/*.pp'].
create pp file in /etc/puppet/manifests/nodes directory to save your all
node definitions.
node definition contains variables, expressions, classes. it defines which
fun
Hi,
thank you for the answer.
No I don't have multiple facter installed.
find / -name facter
/usr/bin/facter
/usr/lib/ruby/site_ruby/1.8/facter
/var/lib/puppet/lib/facter
Andreas
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe f
On Thu, Oct 23, 2014 at 9:52 AM, Andreas Dvorak
wrote:
> Dear all,
>
> since today the puppet agent does not work anymore if it is executed by
> service.
> I prints out:
> Could not retrieve local facts: Could not find fact 'define_fact'
>
> If I run puppet agent -t I do not get the message.
> I
On Fri, Oct 24, 2014 at 7:49 AM, Anthony Clark
wrote:
> Hi All,
>
> Does anyone use example42-network with Hiera? I'm trying to find an
> example in Hiera that configures that module.
>
> https://forge.puppetlabs.com/example42/network/readme
>
> So far I've tried, in .yaml (Hiera works OK with h
On Thu, Oct 23, 2014 at 8:50 AM, Trey Ormsbee wrote:
> I working with a dynamic config file template, I have a section for
> global options, then a dynamic section that i want to populate with
> multiple defined entries.
>
> example config file
>
> #global options
> config_option1=setting1
> co
On Fri, Oct 24, 2014 at 10:07 AM, Wil Cooley wrote:
> as Trey suggested, the `concat::fragment` type in the puppetlabs/concat
> module,
>
Er, as James suggested; sorry.
Wil
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from
I recently changed over to a postgres back end. Now puppetdb.log seems to
be awash in these errors.
I'm pretty sure everything is up to date:
# rpm -qa | grep puppet
puppetlabs-release-6-11.noarch
puppet-server-3.7.2-1.el6.noarch
puppetdb-2.2.2-1.el6.noarch
puppet-3.7.2-1.el6.noarch
puppetdb-te
> I recently changed over to a postgres back end. Now puppetdb.log seems to be
> awash in these errors.
>
> I'm pretty sure everything is up to date:
>
>
> # rpm -qa | grep puppet
> puppetlabs-release-6-11.noarch
> puppet-server-3.7.2-1.el6.noarch
> puppetdb-2.2.2-1.el6.noarch
> puppet-3.7.2-1.el6.
Hello,
I'm looking to start to implement scheduling for certain resources within
puppet. My one question is this.
If I have a schedule set on resource 'foo' does that prohibit that resource
from being updated if I run puppet agent by hand? What I'm wondering is if
I end up needing to do puppe
I've started investigating hiera-eyaml as a tool for managing
secrets within our puppet repository. It looks pretty promising,
especially in connection with 'show_diff => false'. For those that
haven't seen it:
http://puppetlabs.com/blog/encrypt-your-data-using-hiera-eyaml
T
On Fri, Oct 24, 2014 at 02:01:27PM -0500, Tim Skirvin wrote:
> I've started investigating hiera-eyaml as a tool for managing
> secrets within our puppet repository. It looks pretty promising,
> especially in connection with 'show_diff => false'. For those that
> haven't seen it:
>
>
On 10/24/14 12:01 PM, Tim Skirvin wrote:
I've started investigating hiera-eyaml as a tool for managing
secrets within our puppet repository. It looks pretty promising,
especially in connection with 'show_diff => false'. For those that
haven't seen it:
http://puppetlabs.com/blog/e
Thanks. Here's a simplified version of what I ended up doing (for anyone
searching for a similar thing):
In custom_functions/lib/puppet/parser/functions/determine_role.rb:
module Puppet::Parser::Functions
newfunction(:determine_role, :type => :rvalue) do |args|
# args[0] should be a fact n
29 matches
Mail list logo