Displaying 20 results from an estimated 40000 matches similar to: "How do I check whether an imported resource has already been defined?"
2013 Nov 14
5
Nested parametrized defines
Dear puppet wizards,
http://docs.puppetlabs.com/puppet/3/reference/lang_defined_types.html does not suggest to me that nested parametrized defines would be forbidden, hence I expected the following code to work:
add_to_ssh_authorized_keys.pp:
--------
define a::ssh_keys::add_to_ssh_authorized_keys($homebasedir="/home", $targetuser="root", $keyowner, $keyownername,
2011 Jun 14
2
notify defined in exported resource won't work?
Hi all,
I noticed a "service notify" defined inside of exported resource won''t work.
For example, I have the following exported resource defined:
define host($ip = $fqdn, $short_alias = $fqdn) {
@@file {
"$nagios_cfgdir/${name}_host.cfg":
ensure => present, content => template( "nagios/host.erb" ),
mode => 644, owner => root,
2011 Sep 22
8
Export variables into other classes
Hi all
I have been pondering this for a while, but not yet seen a clean way
to do it
I have a few puppet classes (apache/ntp/mysql/bacula/nagios/etc)
I would like to generate part of my bacula and nagios configs for each
host based on which other classes that host belongs to (or to put it
another way, I would like to export variables from classes which would
be used by my bacula and nagios
2013 Jan 21
15
Terrible exported resources performance
Hi,
Since the below is a little long, I put my question at the top: how do I
troubleshoot awful exported resources performance in puppet and is there
anything I can tweak to get it to run under 10 minutes in larger
environments?
I have a fairly modest environment (118 nodes, but prod will be at least
twice as large). I''m trying to move my distributed nagios setup to one
based on
2012 May 30
12
resource override
hi All,
I''m a bit new to puppet. Is there a mailing list for puppet beginners?:)
I have a service module called postfix, which defines file in a class:
file {
''/etc/postfix/main.cf'':
owner => "root",
group => "root",
mode => 644,
content =>
2012 Aug 29
4
troubleshooting resource collection
Hi,
I''m new to Puppet. And I''m trying out an ssh module:
https://github.com/saz/puppet-ssh.
It collects ssh keys like this:
class ssh::knownhosts {
Sshkey <<| |>> {
ensure => present,
}
notify{"knownhosts class: $fqdn $hostname $ipaddress ":}
}
I can see it echoes the host key of the host the puppet agent runs on. But
the
2007 Dec 18
5
resource collection error
I''m seeing these in my logs on my puppetmaster:
puppetmasterd[4111]: Could not store configs: SQLite3::SQLException: SQL
logic error or missing database: DELETE FROM fact_values
WHERE "id" = 8
currently this is 0.24.0
relect from some previously collected resource that wasn''t cleaned up?
upgrade issue?
nothing to worry about?
that''s the only
2013 Apr 10
5
Managing multiple nagios servers with puppet and virtual resources
Hi,
For several years, we have @work had a puppet environment where when we add
a new host/node, some basic monitoring is fed through to a nagios server
using virtual resources and an old nagios class which either someone here
wrote themselves, or found on the internet at the time.
We are trying to move away from the existing puppet environment for a
number of reasons, and using this as an
2012 Sep 24
4
Overriding variables.
I am trying to override variables in a class that is defined in the default
node profile. I want parent class to be included in every single node, but
override its variables in others. I have tried it several different ways
now, and every single time the variables either become unset (undefined) or
are set to the value of the first if statement.
Here is my current iteration of failure.
2012 Mar 06
2
Long config retrieval on nodes
Hi all, hoping someone may have encountered a problem similar to this
before:
On my customer''s EC2 based infrastructure, we have implemented the
nodeless, truth driven module outlined by Jordan Sissel here
http://www.semicomplete.com/blog/geekery/puppet-nodeless-configuration.
It''s quite an effective model, especially in the realm of EC2... we still
have a puppetmaster
2012 Apr 25
3
Exec and snmpd restart question
Hello Pros and users of Puppet.
I have two problems with the following modul setup:
My first problem that i tried every combination of
require,notify,subscribe for the mail sending exec but it runs every
single time when i run the module no matter if the files changed or
not.
Second problem that puppet reports that snmpd was refreshed by two
resource and restarted but actually it doesnt happen.
2011 Jun 06
4
How do you handle deleted nodes with exported resources in this situation?
I have an issue where for a file type of an exported resource I must define
as such:
force => false,
replace => false,
Meaning the file is created, but do not replace after it''s added. I do this
because of the app modifies the config file after (I know bad idea on their
part).
How can I ensure this file is removed when I remove the node from
2013 Aug 07
3
Nagios XI + Puppet?
Hi All,
I currently make use of Icinga (nagios fork) + Puppet for fully automated
monitoring. It''s worked great up to this point. I''ve recently been asked to
integrate fine grained notifications support into icinga. I''m not entirely
sure puppet manifests are the right place to manage contacts, contact
groups, and their use within host and service definitions for
2007 Sep 11
25
Re: #786: exported resources not refreshed
Hello all,
what exactly is the "design decision" that is needed here?
We currently have the problem that 0.23.2-3 (debian package) does not
work when it comes to collecting exported resources. The resources are
saved in the database, so picking them up is the problem (db is Mysql5.x).
This is a major problem for us, since we are using this a lot for our
monitoring services. I
2013 Oct 21
3
Resource file copy files recurse in existing directory with existing files
Hi,
I have a file resource that brings files in the diretory
"/usr/local/nagios/libexec" from source1 and I have a second resource file
that should bring file in that same directory but from an other source.
But the result is that only the files from file {
"/usr/local/nagios/libexec": do exit in the directory. I tried remote and
true. The resource file {
2011 Jan 11
3
A section with name main already exists (Bug 5231)
Hi all,
I''m facing the bug 5231 when running puppet: host has some repos with
many section main defined:
# grep main *
atrpms.repo:[main]
cern-extra.repo:[main]
cern-extra-srpms.repo:[main]
cern-only.repo:[main]
cern-only-srpms.repo:[main]
cern.repo:[main]
cern-srpms.repo:[main]
cern-test.repo:[main]
cern-test-srpms.repo:[main]
cern-update.repo:[main]
cern-update-srpms.repo:[main]
2007 Nov 21
9
purging exported resources
So I have the following:
define nagios::service (
$nagios_template = ''service-template'',
$host_name = $fqdn,
$service_groups = '''',
$contact_groups = $default_contact_group,
$max_check_attempts = 3,
$dependency = false,
$dependent_host = $fqdn,
$dependent_service = '''',
$check_command = ''''
) {
2012 Jan 17
4
Exported variable foo...(fu?)
Hi folks,
For the first time since I started playing with puppet I started down the
road of using exported resources This was inspired by my reading all of the
nagios related recipes that went something along the lines of
class nagios {
package {nagios: ensure=> latest }
service {nagios : ensure => running , enable => true}
Nagios_host <<! !>>
2011 Mar 11
9
Why is it so hard to make a sane nagios server config?
I''ve tried to achieve my overall goals with several different features
of Puppet, but I''ve hit a bit of a wall here. I think it''s time for me
to explain what I''m trying to accomplish:
I want the enabling of a service in my manifests to configure
the monitoring of that service by a nagios server, without
needless repetition.
Let me explain how my
2013 Jan 07
3
Error: Could not retrieve catalog from remote server: execution expired
Hi everyone,
I recently ran into an issue where my puppetmaster can''t run puppet on
itself. It errors out with the following:
Error: Could not retrieve catalog from remote server: execution expired
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
I''m running Puppet 3 with passanger and puppetdb (hsql). I''ve tried
restarting