Displaying 20 results from an estimated 30000 matches similar to: "agent prepend every line with var"
2013 Aug 27
2
Changing the PE3 console's RAILS_RELATIVE_URL_ROOT? How to prepend a URL string?
Hi All,
I''m looking to prepend a string to all (RHEL based) PE3 console URLs. I''m
trying to proxy the console thru an Oracle web server (Apache under the
hood), and for security we need to make all URLs easily identifiable as
having originated from Puppet in the web log files. A PCI requirement I
believe.
So, the question is how to change https://console.puppet.net into
2013 Feb 18
8
Error with service: "invalid byte sequence in US-ASCII"
I just built a new puppet master, and whenever I run puppet on it, it
throws an error while processing a service resource:
# puppet agent -t
> Info: Retrieving plugin
> Info: Caching catalog for i-45dc2b1d
> Info: Applying configuration version ''g
> 9ea47ad19bc706a754c00f00a024309948d3ea03''
> Error: /Stage[main]/Ipa::Client::Basic/Service[sssd]: Could not
2013 Jul 09
9
One resource immediately after another
I need to apply three resources one immediatelly after another. It''s a
ifdown/ifup commands, and command to generate /etc/network/interfaces file.
I need to do ifdown, then rebuild interfaces, then ifup. I try to add
simple relationship, but in this case some File resources are trying to be
applied between ifdown and ifup. So they can''t connect to Puppet master to
verify
2013 Jul 23
3
Debugging Puppetmaster with Apache/Rack/Passenger
Hi,
I''m currently trying to debug a performance issue I''m having. Therefore I
would need "DEBUG" output. When using one puppetmaster process, this is
fairly easy by starting it like this:
> puppet master --no-daemonize --debug
Now I need to see this debug output when running puppetmaster the way I
ususally do - using Apache/Rack/Passenger. After looking
2011 Apr 18
3
Logging configuration
How do I tell puppet to log somewhere other than /var/log/messages. None of
the logging configuration options seem to do anything any more. Specifically
puppetdlog.
# The log file for puppet agent. This is generally not used.
# The default value is ''$logdir/puppetd.log''.
puppetdlog = /var/lib/puppet/log/puppetd.log
--
You received this message because you are
2013 Jun 06
5
Puppet 3.1.1 Windows crashes
I noticed that a number of my Windows hosts had stopped dialing in, and
upon closer inspection I found that Puppet was crashing in Ruby and
wevtapi.dll. I can''t find any reference to this in the issue tracker,
although I''ve got over a dozen occurrences in my environment, all with the
same descriptions as below. I checked to see if the times were similar, in
case the server
2012 Sep 03
3
Puppet runs extremly slow on 1 of 18 Windows Server
Hi,
We have 18 Windows Server in the same environment. All Windows Server are
build with an individual Windows Image, we created before, which means,
that all Windows Machines have the same configuration except ip/mac address
and hostname.
17 of those Windows Server run Puppet within 120 seconds per run. But one
of those Server took 49 hours for the run...the second one wasn''t
2013 Apr 25
3
problems ensuring that a service is absent
Hi,
I''m trying to be really, really sure that a specific service is not
running. The central part of this looks like that:
service { ''foo'': ensure => stopped, enable => false }
->
package { ''foo'': ensure => purged }
The astute reader will notice that on the second run puppet will
complain that the init script for foo is
2013 May 02
10
What do YOU do to catch undefined variables
I''m still a puppet newbie and these days I''m struggling with undefined
variables. At least once a week I hit an error message like this:
Error: Failed to apply catalog: '''' is not qualified and no path was
specified. Please qualify the command or specify a path.
IMO, the core issue is that Puppet has no mechanism for reporting read
attempts on
2009 May 31
9
No more than one "instances" of a type in define()?
Hi folks,
when I try to do something like:
define railsproject($name, $uid, $gid, $userpass, $sqlpass) {
mysql_database { "$name_staging": ensure => present }
mysql_database { "$name_production": ensure => present}
....more stuff...
}
I get:
Puppet::Parser::AST::Resource failed with error ArgumentError:
Duplicate definition: Mysql_database[] is already
2010 Jul 07
7
inventory of managed resources
Hi,
are there any good ways of scripting an inventory of managed resources on
all nodes? I''ve found the inventory script by R.I.Pienaar (
http://www.devco.net/archives/2010/02/26/what_does_puppet_manage_on_a_node-2.php)
which does what I want but only locally on each client. Is there any native
way of syncing the client_yaml data centrally or any other way of doing
this?
I need a
2011 Jun 30
7
Puppet agent creates certificates for localhost.localdomain and does not pick up the changed hostname
Hi Everyone,
I am using Puppet 2.6.5 to configure fresh VMs. These VMs have their
hostname set to localhost.localdomain initially at boot-time.
There is this script file that runs in rc.local and this is what I do
inside it
1. I change the hostname from localhost to xxx.xxxxxx using the
hostname command.
2. start the puppet agent as /usr/sbin/puppetd --certname=xxx.xxxxxx
2013 Jun 08
1
ActiveSupport::Concern support Module#prepend?
I''ve monkey patched this behavior into a gem and I was wondering if core
would be interested in a PR to add Module#prepend support to
ActiveSupport#Concern. I''ll add tests of course.
The code is here:
https://github.com/dockyard/easy_auth/blob/master/lib/easy_auth/active_support/concern.rb
My monkey patch work for what I''m trying to do but I suspect a better
2013 May 07
2
hiera not using non-root user custom fact
Hi,
Before I begin, my environment consists of a standard master/client config with the exception that all my clients run under a non-root user. I have to use non-root so I can''t simply restart under root to fix the problem.
Master -> 3.1.1
Client -> 2.7.17
using mostly the hiera() function in my classes.
problem:
I have run into an issue today where my custom fact is not
2013 Oct 11
6
puppet class if
Hello,
I created puppet class and I want the file operation to be executed on all
servers but not on server with hostname "''server1.domain.com". I tried this
class, but it does not work. Is there any other way? Thanks
class test {
if $hostname != ''server1.domain.com'' {
file { "/etc/ntp.conf":
owner
2010 Jun 04
3
Simple config question
Most of my machines are pretty cookie-cutter, so I have one class and
config file setup for different services. For example, pretty much
have one hosts.allow that goes out everywhere. However, there are
always exceptions. So I have 3 hosts that have similar configs but
have more things open, so what''s the ''best practice'' way to centralize
those? Do I really need to
2009 Nov 26
26
Module Execution Order
So.. I''ve been fighting with trying to get puppet to include/execute
module in a certain order for several weeks now. I kind of have
something hacked together, but it scares me a bit since I don''t know
exactly what is happening.
I don''t suppose there''s still an easy way to do this....?
Doug
--
You received this message because you are subscribed to the
2009 Dec 08
5
Cleaning Out Stored Configs
Hi,
We''re using thin stored configs heavily to manage things like Munin
and Nagios and we''re currently wondering what to do when nodes go
away, or change considerably.
If we get rid of a server then all it''s stored config is still present
in the database, as well as it''s nagios and munin configurations.
We created a script that iterates through the database
2009 Jun 16
4
Schedule puppet runs
Hi All,
I would like to pick your brains as to the best way to configure the
below senario within puppet.
I am currently configuring puppet for our environment and have
seperated development/back office from production through configuring
roles for each server to identify them as such.
What i need to be able todo is have the production servers only update
outside of office hours, but have the
2012 May 02
8
Puppet logging
Hello all,
I am trying to write a script that will check logs for puppet errors to use
in a nagios check. I am checking /var/log/messages (RHEL6) but when puppet
runs on its 30 minute interval, nothing gets written to messages. I have
also looked at /var/log/puppet/puppet.log but that does not seem to be
consistent either:
[root@gm10v nagios]# tail /var/log/puppet/puppet.log
Wed May 02 14:27:47