similar to: Schedule for own resources?

Displaying 20 results from an estimated 3000 matches similar to: "Schedule for own resources?"

2011 Jun 30
7
Puppet agent creates certificates for localhost.localdomain and does not pick up the changed hostname
Hi Everyone, I am using Puppet 2.6.5 to configure fresh VMs. These VMs have their hostname set to localhost.localdomain initially at boot-time. There is this script file that runs in rc.local and this is what I do inside it 1. I change the hostname from localhost to xxx.xxxxxx using the hostname command. 2. start the puppet agent as /usr/sbin/puppetd --certname=xxx.xxxxxx
2011 May 20
3
PC EU feedback: ability to remove all unmanaged resources
http://projects.puppetlabs.com/issues/7600 I call this the "agent orange" option :) This works, purging all unmanaged hosts entries: resources { ''host'': purge => true, noop => true, } We should have a similar property for all (most?) types. Please comment on the ticket or reply here, whichever you prefer. Thanks! r P.S. This is in
2012 Feb 14
4
How to escape exec command parameters?
If I have a "simple" variable value, this works fine: capmon@peter:~> puppet -e ''$v="xyz" exec { f: command => "/bin/echo v is $v", logoutput => true }'' notice: /Stage[main]//Exec[f]/returns: v is xyz notice: /Stage[main]//Exec[f]/returns: executed successfully But how do I escape "bad" values of $v? Painful examples like the
2012 Jul 04
12
How to get an input file to a facter ?
Dears all, I was testing my localusers facter by puppetmaster fileserver but i''d got in error Could not retrieve localusers: No such file or directory - /etc/ puppet/whitelist I was pretending the file was served by fileserver of puppetmaster doing in init.pp : file { "/etc/puppet/whitelist": ensure => present, Just before to call a facter. I
2011 May 13
18
Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Hi, I have been trying to improve the coding of some of my puppet recipes and had some trouble so wrote this: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/ Comments on the web seem to indicate that extlookup() solves "all problems" but I don''t really see that and hence have proposed a possible way to keep the data closer together and make the extlookup()
2012 Feb 23
9
32bit and 64bit version of a package
Hi, I''m trying to write a recipe to install the latest libstdc++ in both 32bit and 64bit flavors and running into issues. Yum only wants to install the 64bit version if I do: yum install libstdc++ If I do something like: package { "libstdc++.i386" : ensure => latest } It tells me "nothing to do" Any suggestions on the right way to do this? Thanks! Alan --
2011 Nov 09
7
NFS clients - puppet hang when mount point
We''ve only recently discovered that puppet can manage mount points using the mount directive; however, a short while back we built an nfs client and server classes without using this resource, and we''ve encountered a problem where puppet seems to hang when the nfs server is unavailable. Using --debug doesn''t seem to specify exactly at which point the run is failing,
2012 Mar 13
3
Creating multiple resources from an array
Hi, I''m currently trying to write a module to manage Squid, including the SSL certificates it uses. Sometimes you want Squid to listen on multiple IPs with multiple certificates, so I''m trying to get Puppet to push the certificates to the nodes and configure Squid accordingly. I''ve run into a problem with the idea of pushing multiple certificates though. The module has
2012 Feb 13
5
Removing the ability to serve symlinks as symlinks from the master...
G''day. We recently found some issues with the `links => follow` setting in recursive file copying; the designed behaviour is that it should allow you to determine if the master serves a symlink in a module as a symlink, or as the content of the file that the symlink points to. The full details are here: https://projects.puppetlabs.com/issues/12418 The short version is that toggling
2012 Feb 08
11
define hostclass with special characters
Hi, I need to define the hostclass with special character for ex: "swift::proxy-ring" I have tried following ways but not worked: 1) hostclass :swift::proxy-ring do 2) hostclass ''swift::proxy-ring'' do 3) hostclass "swift::proxy-ring" do When I am using the 2 and 3 options it is giving following erroe: undefined method `[]'' for Class:Class at
2013 Apr 24
4
How do I check whether an imported resource has already been defined?
Hello Puppeteers, please consider the following scenario: Puppet is supposed to set up similar (but not necessarily identical) groups of hosts for a range of customers. For each customer a dedicated filesystem tree needs to be established on host A. This should not be difficult using exported File resources, however: How do I make sure that only the exported File resource of the first created
2010 Jan 21
5
Inheritance versus inclusion
Does anyone have a good resource for describing the differences between including and inheriting classes? VR -pjh -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more
2012 Apr 11
4
Creating classes for individual nodes
This is more of a style question than implementation. I have a bunch of nodes running the same software but in many cases they need config files that are customized for that specific node. I was thinking I could push all the main files from the app through a central class and have separate classes for each individual node that has the config files. Is this the best way to do this or does it
2009 Oct 22
2
useradd: invalid numeric argument 'someuser'
CentOS 5.3 w/ updates Puppet 0.25.1.rc2 (installed from source) Mongrel + Nginx Am I making a mistake or is this a bug? I''ve experienced this issue using 0.24.8 from EPEL also. Thu Oct 22 13:59:43 -0700 2009 //user::virtual-users_groups/User [someuser]/ensure (err): change from absent to present failed: Could not create user someuser: Execution of ''/usr/sbin/useradd -G
2012 Feb 14
7
inherits from parametrized class
Hello In is possible inherits from parametrized class?? For example i have base php52 class like this: class linux::php52($pools, $extensions='''') inherits linux { ...... } and whants to inherit it like this: class linux::php52::cluster inherits linux::php52 for cluster configuration (cluster stuff -f for example prevent php from automatic startup), and class
2009 Aug 27
13
User's and managing expired passwords
We have a policy that requires all user passwords to expire after 90 days. We also use puppet for managing all users on our machines. Our hope was, when our passwords expire, we could update the puppet manifest which would propogate to all our servers, thus updating all our passwords. The problem is, the User type (w/ manage_passwords enabled and ruby- shadow installed) will only set the
2010 Nov 16
5
Controlling Package Version
Hi Folks, I am fairly new to using Puppet, but am trying to use it to control production servers running: - CentOS 5.5 - Puppet 2.6.3 - Yum 3.2.22 We would like to specify that certain versions of packages be loaded on a system. Our requirement is to have fixed versions of all critical packages upon which our applications depend. We do not want any surprises due to unplanned updates to the
2010 Oct 25
2
Multiple errors on puppet client runs: "A section with name updates already exists"
Hello, I''m currently running Puppet 0.25.5-1 on CentOS 5.5. Everything has been going swimmingly until a couple of weeks ago, when I began receiving errors on one of my nodes. The node in question is also my puppetmaster, but the errors seem client-related. The errors are: err: //yumrepos::centosbase/Yumrepo[addons]: Failed to retrieve current state of resource: A section with name
2012 Jan 07
3
How can I have a defined resource depend on a resource that is not in the global scope?
I am working on this module: https://github.com/belminf/puppet-iptables I have this defined resource: define iptables::hole ($proto=''tcp'', $port, $source=undef) { firewall { "100 input: $name": chain => ''INPUT'', proto => $proto, dport => $port, source => $source, action => ''accept'',
2012 Apr 27
15
puppet way of handling rdist and triggers
We have an existing "management system" of sorts, based on rdist. I''d like to know the best way to migrate it to using puppet. Currently, we have a local binaries tree, rdisted out nightly. We also make use of rdist''s extra capability to trigger scripts when and if named files are updated. I''m not sure what the best method would be, of converting this to