similar to: Testing if a resource is already defined

Displaying 20 results from an estimated 2000 matches similar to: "Testing if a resource is already defined"

2008 Jan 18
7
puppet 0.23.2 can''t collect exported resources
hi,guys I''m test the resources export and collect , OS is Debian etch and sarge, puppet server and client version all of the 0.23.2 ; the db is MySQL-4.1 My test code is like this. node ''b'' { @@file {"/tmp/a": ensure => present ,content => "test"; } } node ''a'' { File <<||>> } I run puppetd on
2007 Apr 26
5
$processor fact not working on OS X
Hello dear list. First of all thanks to all the developers for the great work on puppet. After using it for a while, there is not better tool to manage a network! I have a problem with the $processor fact, which seems to be either not there or ignored at all. I try to implement package deployment for the Macs (Intel vs. PowerPC) as described here:
2007 Jul 11
3
Strange problem with exported ressources
Hi there, I have a strange problem with the exported ressources in the munin module I wrote. See: http://mail.madstop.com/pipermail/puppet-users/2007-June/003179.html For some reason it stopped working. On the munin::host I get the error that: err: Could not retrieve configuration: Exported resource File[munin_def_XY_4949] cannot override local resource The munin::host is also a
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
2008 May 08
23
The wiki - directions and ideas
Hi all Luke and I have been discussing the wiki and how its future development might pan out. As a result I thought I''d canvas people for feedback. Currently the wiki''s layout and structure is fairly ad hoc and it''s a mix of wiki mark-up and REStructured Text (RST). We''d like to make it more "manual" like or at least move a significant portion of
2007 Apr 30
10
mount type and ensure => present on OS X
Hello all. There is some strange thing going on with our OS X clients. We have created a package which is run via SystemStarter. What it does? It parses /etc/fstab and mounts the NFS directories mentioned there. This is needed since we want to have static mounts and the NetInfo-automounter combination does not do static mounts (even with ttl=0 set for the mount, which is supposed to do a
2009 Feb 02
2
public facts repository
Hello all, I have set up a public svn repository with some facts that we have written over time: https://svn.ikw.uni-osnabrueck.de/dav/ikwadmin/public/puppet/facts/ (yes, it is svn). Now, I was wondering where to document this on the puppet-wiki (or should it rather be the facter-wiki) http://reductivelabs.com/trac/puppet/tags/facter%2Crecipe does not give any clear hint on this. Maybe I
2007 May 28
12
Anyone using storeconfigs with a DB other than sqlite?
Just wondering if anyone is using a backend database other than sqlite, and if so, how easy/hard it was to configure. I''m constantly receiving "SQLite3::BusyException: database is locked..." which I presume is due to sqlite''s relatively coarse locking method. Cheers, James -- Senior Linux Platform Engineer Midrange Services AXA Technology Services - Asia Pacific
2007 May 26
13
munin module: manage clients and server''s config
Hello all. Probably this question has already been posed in the context of another software, but I am unable to find it. I would like to implement a module which should manage munin-clients as well as the munin-server. Here is what I am thinking about implementing: - There are two classes: munin::client and munin::server - munin::clients'' configuration will be managed automatically.
2008 Jan 19
1
mixing templates and other methods for a file''s content
Hello there, I have come to a situation where I would like to mix 2 approaches to create the contents of a file. Here is what I have: a module ''sudo'' which manages a hosts /etc/sudoers file: init.pp: class sudo { case $operatingsystem { Debian: { package { "sudo": } } } file { "/etc/sudoers": mode => 440, content =>
2008 Jan 09
1
removing exported resources
Hello everybody. I have a question about removing exported resources. How is this done? Does it happen automagically? If I do: @@file{"/tmp/bla": content => "blahs content", ensure => present, } and thus export "/tmp/bla" to another host does it vanish by itself as soon as I remove the definition, or would I need to state something like:
2007 Aug 28
3
virtual resources in 0.23.2, do they work?
Hello all. I am using the munin module for a while now, I think that after the upgrade to puppet and puppetmaster 0.23.2 (or 0.23.1) it simply stopped working. Were there any changes to the realizing and exporting of resources? What could prevent this module from stopping to work. What happenes is that new hosts (munin::client nodes) do get stored in the database, but the munin::host does not
2007 May 17
3
Community common.pp
Should a page in the wiki be created to describe a good common.pp? For example, Luke states in the documentation for ''Exec'' that "...there is a strong tendency to use exec to do whatever work Puppet can''t already do; while this is obviously acceptable (and unavoidable) in the short term, it is highly recommended to migrate work from exec to native Puppet types as
2007 Aug 28
3
NFS Server and Client module?
Hey all, I want to write a NFS module. Before I start, I thought I''d ask: Does someone already have such a module? May that person share it? What I want to do (have) is: - configure (different) exports on many NFS-Servers - configure NFS-Clients to mount some or all of those. Thanks, udo.
2007 Aug 28
2
sslcertificates module for debian and darwin
Hey all, i have attached a module which installs SSL-Root-certificates in Debian and Darwin. One thing is left to do for darwin: check whether the certificate is installed already. Until I have figured out how to do this, The test is rather simple. There is a class called dfncertificates defined in this module which gives you a hint how the module is used. Have fun, comments are welcome. udo.
2007 Sep 08
2
Puppet''s TRAC somehow broken?
Hey all, it seems that the Ticket section of Puppet''s homepage does not work. Searching and Listing of Tickets works fine, showing an individual Ticket shows stack-traces. What is wrong there? Thanks, udo.
2007 Aug 13
1
update from 0.22.4 to 0.23.x, not migrating database schema
Hello everybody, I have updated the puppetmaster from 0.22.4 to 0.23.0 (and today to 0.23.2). Although ''dbmigrate=true'' is turned on AND the puppetmaster is saying it migrates the databse at startup, this does not happen. When it should store configs, I get the error: Could not store configs: Mysql::Error: #42S02Table ''database.resource_tags''
2007 Jun 20
1
setting rails environment for puppetmasterd
Hi all, I just stumbled over a huge rails.log in /var/log/puppet on the puppetmaster. It is full of DB statments which seems to point to the fact that puppetmaster''s rails environment is set to development. No problem, I thought, set the system''s RAILS_ENV to production make it available to the master daemon and restart it. Unfortunately, this does not work. I searched
2008 Aug 14
1
multiple functions in one file?
Hi there, just to be sure: http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions says that "The file name is derived from the name of the function that Puppet is trying to run." Is this still true? I ask because I currently write a set of math functions (min,max, plus, minus and so). My first try was to create a math.rb, where I had: module Puppet::Parser::Functions
2007 May 16
1
writing and deploying custom types
Hello all. I have a problem with custom types that I create: I have changed the apt package provider such that it it uses fink on darwin operating systems to install packages. I copied the apt.rb to fink.rb and customized it accordingly. Now when I follow the documentation: http://reductivelabs.com/trac/puppet/wiki/CreatingCustomTypes I should deploy it in lib/puppet/type. This does not