similar to: The new generate() function

Displaying 20 results from an estimated 40000 matches similar to: "The new generate() function"

2007 Mar 28
3
New Introduction
Hi all, I''ve just rewritten the Puppet introduction from scratch: https://reductivelabs.com/trac/puppet/wiki/PuppetIntroduction I think it''s better, but I''m not convinced it''s a whole heckuva lot better. Comments are very much appreciated, especially if you can recommend a better approach to the document. I tried to organize it how I have been giving
2007 Nov 28
13
What to call a class: Manifest? Configuration? ResourceContainer?
Hi all, I''ve got a new class in the current code, which I''ve been calling Configuration but Matt reasonably thinks is horrible. He is recommending the name Manifest, and I figured I''d see what others thought. The point of the class is to function as a resource container -- it keeps a reference to all of the resources we''re managing, and knows how to
2007 Feb 08
5
Documenting puppet manifests
Hi there, I''m trying to document my puppet manifests, and I have created kind of a template for class documentation. After documenting a few I thought it would be great for complex manifests if we could have a tool that read some kind of standard documentation in puppet manifests and create HTML (or other format) documentation, as javadoc in Java or RDoc (?) in Ruby. So two questions:
2007 Mar 28
4
How is defined() used?
Hello What am I doing wrong here? $test = defined(User[''foo'']) _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
2007 Dec 18
4
Pulling Strings with Puppet: Automated System Administration Done Right (Paperback)
http://www.amazon.com/gp/product/1590599780/ This looks awesome! Any ETA? Best, Adam
2007 Mar 30
4
Intended behavior of sourceselect => all [Proper]
Hi all, again. It looks like my last attempt of sending this message got cut off, at least it looks like that in the archive[1], so I''m trying again: <rerun> Luke Kanies suggested that I take this up here since his memory on the subject was a bit poor. I am trying to cat various files together into one file. According to the documentation "sourceselect => all" might
2007 May 11
5
dry-run?
Greetings. Long story short ... configuration changes were made to my puppet clients while my puppet server was unavailable. I would like to run puppetd in such a way that it will list what files it would replace, but not actually replace them, so that I can synchronize my server with my various clients. rsync has a -n (--dry-run) option that does this. But I can''t find one in
2007 May 29
12
Group management
Hi, I am sure this subject has come up before. I did not find anything on Google that comes close to what I am trying to do. I would like to manage different groups on multiple nodes using puppet and do not know of a good way to do it. Does anyone have an idea of how I can accomplish this? Any help will be appreciated. Thanks, Mouncef _______________________________________________
2008 Jun 06
8
useradd provider not working?
I have this config: # BL00070 - Disable NFS service {["nfs","nfslock","netfs","portmap"]: ensure => stopped, enable => false, } user {"rpc": ensure => absent, provider => "useradd" } user {"rpcuser": ensure => absent, provider => "useradd" } file
2007 Jul 01
5
Mount and fstab problems with large devices?
I''m trying to get a new file server managed by puppet from day 1, at least as much as possible. At the moment, though, there''s two issues I''m running into: 1. fstab should have entries for my comically-large RAID, but doesn''t. 2. each puppet run appears to remount the RAID, even when no rules in the manifest change. I suspect the issue may be in parsing
2006 Dec 11
3
request an object
Hello, I use a type i just written that install apache basicaly it is httpd and you provide the version (it is just a wrapper to the packets system) . I wanted to tell another type, the vhosts one that i required that this node defines the httpd type and that the vhosts type is allways called AFTER the httpd type. node ''mynode'' { httpd{ version =>
2007 Jul 24
3
How to require a defined type...
Hi all, I''m struggling with the following: I have a defined type wrapped in a class: class myclass { define mytype(bla) { file { "blabla": .... } exec { "blablabla": ... } } } And I access the defined type in my other class by doing this: class otherclass { include myclass myclass::mytype { "alb": ... } # and here I want to
2006 Sep 29
7
Facts load by puppet -factsync question
fact loads: I use facter to search the rsync path and then i write this sudoers line: Cmnd_Alias BACKUPCOMMANDS = /usr/bin/rsync I call puppet like this: puppetd --factsync --server=xxx.yyy.61.131 --waitforcert 60 --test the recipe is: sudoensure_line { sudobackupcommands: ligne => "Cmnd_Alias BACKUPCOMMANDS = $rsyncpath",
2007 Apr 10
12
Wtih version 0.22.1 using SQLite storage, only resource -> host foreign keys are present
Hi, I am developing an end user WWW-based front end for Rails for my system integrator and developer colleagues to use to easily view and search our Puppet configs via a Rails app. I set up the SQLite storage option on the server and the puppet tables are being populated in /var/puppet/state/, but foreign keys for everything except host_id in resources are not being set. Is this expected
2007 Jan 15
5
file type not autorequiring parent directories.
If I use the ''file'' type to sync a file where the parent directory doesn''t exist the sync fails. According to the puppet docs "Puppet will autorequire any parent directories that are being managed". Am i missing something? Example: file { "/tmp/dhcp/dhcpd.include": source => "/tmp/dhcpd.include", } In
2007 Feb 06
14
Unless in exec doesn''t seem to be honored on notify.
This was a fun one to track down... I was trying to use the append_if_no_such_line script from the wiki and it was working fine EXCEPT when I threw a notify at it. The notify appears to completely ignore both unless and onlyif within the exec for some reason. If I put the same test in the actual command line, it works fine. Example: unless => "/bin/grep -Fqe ''$line''
2007 May 31
9
Switching to mongrel
I made an attempt to switch to mongrel today and I''m running into a strange error message I can''t seem to track down: debug: puppetmaster: Setting servertype to ''mongrel'' Server is not a class Tracing through with the debugger shows: [snip] /foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:248: case Puppet[:servertype] (rdb:1) n
2007 Oct 12
10
external nodes
I use a simple yaml file and and an external nodes script to express each of my nodes. What I''m trying to do is make sure that all individual data is expressed at the node level and not have anything in classes or modules that isn''t generic and shared. the example below works really well but I can''t express it via my external nodes, I have to bury it in a class (or
2007 Jan 01
9
suggestion - Password replication
Hi, I would find it very useful if puppet were able to replicate passwords for specified users from a master PC (the puppetmaster would do me fine, though I suspect this may not suit everyone). That would make changing passwords on my small Linux network a little easier. cheers John Dubery
2007 Dec 13
10
multiple files with same attributes
I''m almost afraid to ask because this probably sticks out like a sore thumb on the wiki somewhere, and I''m just not seeing it. But I have a bunch of files with the same owner/mode. Is there a way to somehow collapse these, so that all I repeat is the file name? Example: file { "/opt/test/1": owner => "jtan", group =>