Displaying 20 results from an estimated 30000 matches similar to: "Type development for the rest of us"
2007 May 07
68
Puppet Best Practice
Hello everyone,
A long time ago, I posted the Stanford Best Practices and I''ve gone through
and updated it today. I''d like to have people go through it and see if we
can strip out some Stanford specific stuff and tag this as an official best
practice. I think an official best practice will be important as more and
more people consider making shareable modules, etc (mostly
2007 Nov 18
20
Testing modules
There''s definitely enough complexity in some of the modules out there to
warrant solid test coverage, especially if people start extending a module
to support more distributions and OSes, while trying to keep the existing
support working. That''s even before you start thinking about functions,
facts, and native types. They''re *really* in need of solid testing, being
all
2007 Sep 25
4
"Have I included class X" function?
Anyone know if it would be straightforward to extract this information
from Puppet, probably in a custom function:
The classes included as a result of the client''s parsed configuration
- or -
Am I in class X as a result of my parsed configuration?
I''m thinking it would result in a more elegant manifest if classes X and
Y behaved differently if they were both included compared
2007 Dec 22
8
puppet with postgresql adapter
Hi all,
i'' m trying to configure puppet to use rails with postgresql. I'' m having
troubles to make it work. Got no error when running puppetmasterd but
nothing is being populated in the DB. Is anybody using puppet with postgres
?
my config (in puppet.conf)
[rails]
dbadapter = postgresql
dbname = mydb
dbserver = localhost
dbuser = user
dbpassword = password
2007 Oct 10
17
Warning for Fedora Core users
Fedora Core 7 has just updated their Ruby package (was 1.8.6.36-3.fc7,
is now 1.8.6.110-3.fc7), and the upgrade broke my Puppet installation,
and there was a similar report from someone else.
Communications between the puppetmasterd and the puppetd running on
the same host broke down with the message:
Could not retrieve configuration: Certificates were not trusted: hostname
not match with
2008 Jan 08
25
RFC: Moving mailing lists soon
I''m about to leave town for three weeks and my home server keeps
rebooting. It''s my mail server, unfortunately, so there''s a good
chance you won''t get this. :/
Anyway, I''ve been meaning to do this for ages and ages, and it''s time
to finally do so. I need to move all of the Puppet lists to a public,
non-me provider, someone who has
2007 May 11
3
Exception handling in custom facts
Hi.
I''d like to use exception handling in my custom facts. For example, in
plain Ruby:
begin
buildno = ''''
bcrelease = open("/etc/BCrelease")
while (line = bcrelease.gets)
line = line.chomp
buildno = $1 if line =~ /^Build:\s+(\d+)/
end
bcrelease.close
print "#{buildno}\n"
rescue
print "No
2007 Dec 17
21
New error in Centos 5.1
Just started a "pilot" puppet server for real after messing around in
VMs for the past week or so... I used the 0.24.0 since it was available,
and on the test run, got this:
err: Could not prefetch package provider ''yum'': Execution of
''/usr/bin/python
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py''
returned 512: /usr/bin/python:
2007 Dec 20
9
Puppet Reports
Hello All,
We are investigating writing a custom puppet report that would be a web
app to show a change log for each host. The issue we are running into
stems from how we run puppet. We run a daily cronjob in noop and report
mode and fix inconsistency''s either by hand or by puppet depending on
the host. This should change some what in the future as our puppet
environment matures
2007 Oct 08
2
Noop functionality
I''m thinking about how to set up the processes for Production puppet
runs now. Being ultra-conservative here, we''d like to see what would
happen before pressing the red button.
I can run in noop mode, and everything is evaluated but nothing is done.
A YAML report magically appears on the Puppetmaster which my script
parses and spits out something the management can read
2007 Dec 05
5
Reporting / determining state of nodes
Hello,
I recently started deploying puppet on our server
farm. It works wonderfully with RHEL4, Gentoo and
Debian.
I''m looking for a way to determine the state of all
nodes.
Say for example that I change a file on the
puppetmaster which affects 200 nodes. Then I go to
lunch. When I get back, I''d like to know which nodes
have been updated and which have not.
I asked this in
2007 Oct 16
30
Template Nodes considered harmful
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Russ, Digant, *!
Several times on the IRC channel I noticed people having problems getting to
grips with the interaction of scopes when using template nodes[1]. Typically
this looks thus:
| node genericwebserver { stuff }
|
| node ''web01.example.com'' inherits genericwebserver {
| $influence_genericwebserver =
2007 May 01
8
Global Variables?
What is the view of having / not having global variables in Puppet?
Facter variables are global in the sense they are defined in every scope
(whereas ''normal'' variables are only available within the scope they are
defined in).
I could simply add a custom fact for my DoesTheServerNeedASerialConsole
flag to Facter, but I''m not 100% sure I should be having the client
2007 Jan 23
5
puppetd and puppetmasterd init script submission
Hey All,
Id like to submit two init scripts for debian for puppetd and puppetmasterd,
Which is the best to do this?
Cheers
B
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
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 Mar 09
10
Add the ability to ''eval'' ruby code in exec type?
Hi,
Anyone think this is a good idea? I have found that there are some
exec tasks that I am making that just shell out to ruby to do a one /
two line script in the exec line, was thinking it would be nice to
have an option for exec to tell it to just eval ruby code passed to
it, e.g.
exec {
''eval: code to evaluate'':,
...
}
I know Lane wants users to turn execs into new
2007 Jun 21
3
Noop and "dangerous" classes
Hello all,
I''m thinking about a configuration class that, amongst other things
execs out to a ''dangerous'' configuration script. I''d like to make this
a noop by default, so the operator has to try a bit harder to invoke it.
So I thought about doing something like:
class blah {
exec { danger:
noop => true,
tag => hitme,
command
2007 Nov 29
2
Overriding resources in a define in a module - can''t get syntax right
Maybe it works, maybe it doesn''t, but I sure as hell can''t make it work.
I get stuck with
"Could not find object(s)" whatever I do
This is my module init.pp
class ztest::setup {
notice "MAIN SETUP CLASS"
file { directfile:
path => "/etc/directfile",
owner => root, group => root, mode => 0644,
content
2006 Aug 28
10
Templates and arrays
I''m in the process of documenting templates right now, and I figured
I should see what happens when you use them with arrays:
$ cat ~/bin/test.pp
$values = [this, is, an, array, of, values]
$content = template("/tmp/templates/testing.erb")
file { "/tmp/temtest": content => $content }
$ cat /tmp/templates/testing.erb
<% values.each do |val| %>
I got
2007 Apr 25
12
Facter repository
Is there a repository of Facter plugins that people have made? I''m working
on a few that i wouldn''t mind sharing when complete.