similar to: Can I do this in a template..?

Displaying 20 results from an estimated 9000 matches similar to: "Can I do this in a template..?"

2007 Aug 24
7
Problem restarting client service ssh in client
Hello, I want a simple operation in a puppet node like restarting the ssh service if it was stopped. My site.pp is simple as this: import "services/*" node default { include ssh } The services directory as a ssh.pp : class ssh { service { ssh: ensure => running, subscribe => File["/etc/ssh/sshd_config"] } } I''ve stopped the ssh service in the
2009 Oct 05
1
--copy-unsafe-links does not work for "double" symlinks
Hi, as documented, if you use rsync with --copy-unsafe-links, and copy a directory with a symlink pointing outside of the copied tree, the referent of the symlink is copied. Now, assume that the directory contains a symlink, which points to a (2nd) directory outside of the copied tree. If this (2nd) directory contains another symlink, which also points outside of the copied tree, rsync
2007 Feb 23
5
Accessing definitions in a subclass...
Hi all Shouldn''t it be possible to access definitions from a super class in a subclass? Eg.: class foo { define bar (bla) { ... } class oof inherits foo { bar { "rab": bla => "something", } } spews out an error: "Could not find definition bar at... -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202
2006 Oct 17
5
Puppet tgz installs...
Hi I''m anxious to get puppet into production, and although I''d prefer installing puppet as a .deb package (as most of the servers in our shop runs Debian), I think I''ll try to get some of my not-so- important servers into my test setup by installing puppet with the .tgz files. Upon the first installation I realize that puppetd and puppetmasterd is copied to
2006 Oct 12
3
Defaults for package type...
Hi I''m wondering if it''s possible to define some defaults for the package type. What I want is that package install/updates only happens at certain times of the day. I could do: class shorewall { package { "shorewall": ensure => latest, schedule => maintenance } } for every package I want to manage. But that means I have to type
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
2007 Jan 31
7
Report usage...
Hi, I''ve setup my systems to do reporting as explained in https:// reductivelabs.com/cgi-bin/puppet.cgi/wiki/ReportsAndReporting, with tagmail defined as one of the report types - but I do not recieve any mail at all. I''ve configured a tagmail.conf file like this: all: root@localhost But the documentation mentions three options, namely sendmail, reportfrom,
2006 Oct 26
3
Resources...
Hi, I''d like to be able to create certain admin users on certain machines, and when I saw the new Resources feature, I thought I could use that. But I can''t get it to work. This is what it looks like: <snip> class admin { define adminuser { @user { $name: ensure => present, group => adm } file { "/home/$name": ensure =>
2007 Jan 21
5
facts about xen domU''s...
Hi, I''ve just finished my first attempt at making anything in ruby. It ended up beeing a module to facter, which collects facts about the number of domU''s and the memory, id and vcpu facts on all of the domU''s. It''s meant to be run on the dom0, and uses the xm utility to get the information. The only thing I haven''t figured out, is how to
2007 May 02
4
Ordering problem...
Hi all, I''d got the impression that puppet didn''t care about ordering - ie. the ordering of imports and includes related to calling them in the manifest. Lately I''ve had big trouble getting puppet to accept that I require some resource that I _have_ defined elsewhere in the manifest. To explain it, here is a simplified example: site.pp: -------- import
2006 Oct 14
4
How do I manage manifests most efficiently...?
Hi As I''m more familiar with cfengine and it''s way to split updates (in update.conf) from the actual grunt work (in cfagent.conf), I''m wondering how to best manage puppet and my manifests with puppet...? Should I define a puppet class that copy the puppet package (in .tgz format) and all the manifests to the client, and then have all my other classes depend on
2007 Jan 23
5
Setting a variable to true or false, if a certain file exists...
Hi, I need to set a variable to true or false if a certain file exists. I need to use it in a case statement like: case $is_installed { false: { exec... file... service... } true: { package... } } Is it possible...? I searched for the syntax, but I can''t find an appropriate example... -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620
2006 Oct 19
3
Schedules for certain weekdays...
Hi From the documentation I can''t see if I can define the following schedule: I want a certain command to be run once a day, monday-friday on a certain time of the day. Can I define that somehow...? -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
2007 May 04
9
RFC: Configuration file consolidation (#206)
Hi all, This has theoretically been a high priority for a long time, and I''m finally going to get it done, I think. Here''s my plan, and I''d appreciate any comments you might have on it. Currently, sections only have meaning internally, in that one can call ''config.use(section)'' to create any directories needed for that section. Additionally,
2007 Jul 31
2
End of file reached...
Hi Puppeteers! I''ve been using puppet for a little over a half year, and I''m very pleased with it. Until recently, I couldn''t get reporting to work, but after finding the culprit, it works just fine. Every day Puppet reports lines like the following: Tue Jul 31 04:37:49 +0200 2007 //debian_base_sarge/
2007 Aug 15
5
PuppetDatabase - collection "yes", anything in db "no"
Hi there! I´m trying to get my PuppetmasterDB running. Problem is, though I´m not getting any errors from the puppetmaster there is nothing stored in the database, not even tables are created. I tried "puppetmasterd --dbmigrate", didn´t help either. rails.log is kinda empty too.. Thing is: it kinda works anyway, there is just nothing stored in the DB - exported a user on host A,
2006 Oct 09
5
General questions and problems with exec...
Hi, I''m in the process of evaluating puppet and cfengine for a rollout on a mix of in-house servers and managed customer servers. I''ve always been a pro-cfengine man, and it''s already running on a small setup of 5 machines. But even though I have pretty clear idea of how I should proceed building the system, I''m intimidated by the vast amount of
2006 Oct 10
10
Debian packages...
Hi, I just want to know what the state of the Debian packages is? I''ve downloaded (and is currently testing with) the packages from http:// reductivelabs.com/downloads/packages/Debian/ They seem to miss some important stuff such as init scripts and puppetrun, and they hasn''t all the dependencies defined (eg. ruby). From the info part of the packages I can''t see
2007 Aug 21
4
communication between classes / hosts
Hi there, me again! I´m looking for a solution for the following: I have two (a bunch really..) of services that work together and have to exchange some configinformation between each other. I can get this to work in only one of three cases: 1. Works # class serviceB { file {"serviceBconfig": content => $serviceA::serviceAvar } } # # class serviceA { $serviceAvar
2006 Nov 13
3
(A bit offtopic): A good starting book for ruby programming?
Hi all Guess it''s time for me to dig a bit deeper into the ruby language. Can you recommend some good starting books on ruby programming? Thanks. -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk