Displaying 20 results from an estimated 3000 matches similar to: "warning: Deprecation notice: Resource references should now be capitalized?"
2007 Feb 15
5
Problem with iptables && ensure => running
I''ve been seeing this for a long time now...
Got a class like:
<snip>
class iptables
{
package {
iptables:
ensure => latest
}
service {
iptables:
enable => true,
ensure => running
}
remotefile {
"/etc/sysconfig/iptables":
mode => 400,
source
2007 Feb 15
4
Component/type defaults for 0.22.x
Has the component/type defaults syntax changed for 0.22.x?
I have a component:
<snip>
define remotefile($owner=root, $group=root, $mode, $source,
$backup=false, $recurse=false, $groupname="default") {
file {
$name:
mode => $mode,
owner => $owner,
group => $group,
backup => $backup,
2006 Sep 21
30
Using multiple values for source, for platform/arch/host configs
Hi, in an attempt to simplify my configuration, and from a suggestion
on IRC, I was thinking of using multiple values for file { source =>
[] }. Was just currious if anyone had any comments on this.
Basically, I setup my file-server to use:
<snip>
[private]
path /var/lib/puppet/files/private/%H
allow *
[shared]
path /var/lib/puppet/files/shared
allow *
2006 Nov 06
2
problem with remotefile definition
Hi,
I''m exploring Puppet and have hit a rather weird problem.
The puppetmaster server is running CentOS4, fully updated, with puppet
installed from the dlutter RPM repo, version 0.20.0-1.el4.
I tried adding the remotefile function definition from
http://reductivelabs.com/projects/puppet/documentation/installation.html
in /etc/puppet/manifests/utils/remotefile.pp but when I start
2007 Mar 07
8
Writing definitions to support changing defaults
What is the right way to write definition so that defaults can be overriden?
$puppetdir = "puppet://$server/files"
define remotefile($source, $owner = "root", $group = "root", $mode =
0644, $backup = false, $recurse = false) {
file { $name:
mode => $mode,
owner => $owner,
group => $group,
backup => $backup,
2006 Dec 03
12
Problem with user type on 0.20.1... uses group "absent"
Hi, I''m running into a problem with the user type with puppet
0.20.1... this worked before with 0.19.x at least, not sure about 0.20.
But I''ve got adduser.pp:
<snip>
define adduser($uid, $gid, $groups="users", $membership="minimum") {
group {
$name:
gid => $gid,
allowdupe => false,
ensure
2012 Apr 25
3
Exec and snmpd restart question
Hello Pros and users of Puppet.
I have two problems with the following modul setup:
My first problem that i tried every combination of
require,notify,subscribe for the mail sending exec but it runs every
single time when i run the module no matter if the files changed or
not.
Second problem that puppet reports that snmpd was refreshed by two
resource and restarted but actually it doesnt happen.
2006 Dec 18
1
$name causes weird behavior
I tried using $name in this manner:
remotefile { "/etc/auto_direct.local":
mode => 644,
source => "solall/$name"
}
(The remotefile function is handy, BTW)
When I use $name here, instead of specifying the actual path to the
file (solall/etc/auto_direct.local), puppetd ends up making
/etc/auto_direct.local an empty directory.
Shouldn''t $name
2006 Dec 21
7
Overriding types?
"Service and class definitions are scoped just as variable assignments are."
But what about types?
Here''s an example:
class solserver inherits server {
remotefile { "/etc/shadow":
mode => 400, group => staff,
source => "solall/etc/shadow.server"
}
Is it possible to just override the "/etc/shadow" definition for
2008 Jan 22
2
Could not set file on ensure: undefined method `[]'' for nil:NilClass
Hi,
I had a working puppet setup using version 0.22 until the ruby security
patch bit me. I tried upgrading server and clients to 0.24.1 however my
old manifests don''t seem to work anymore. When I run puppetd on the
client I see lots of messages like:
err: //Node[waterbuck]/yumupdater/Remotefile[/etc/cron.hourly/yumupdater]/File[/etc/cron.hourly/yumupdater]/ensure: change from absent
2007 Feb 15
2
use of $name
Hello
The following chunk is within a class definition. ${name} is being
exchanged with an empty string:
remotefile { "/${server_xml}":
owner => tomcat, group => tomcat, mode => 600,
source => "${ftoe_src_prefix_dev}${name}.jvm1"
}
However in the following chunk, lower down in the same class
definition, ${name} is being exchanged
2007 Feb 10
1
Multipe file sources...
Hi,
I''m trying to use several sources to pick from in a remotefile
statement:
remotefile { "/etc/sudoers":
mode => 0440,
source => [
"config/apps/sudo/sudoers.${host}",
"config/apps/sudo/sudoers"
],
sourceselect => first
}
But it doesn''t seem to work. I get an error like this:
"File source
2007 May 20
2
snmpd log messages
I updated to CentOS 4.5 yesterday and now I am finding the snmpd daemon
is logging reams and reams of these messages:
May 20 10:40:03 mx01 snmpd[2572]: Connection from - 127.0.0.1
May 20 10:40:03 mx01 snmpd[2572]: transport socket = 12
Is there a way to turn off this useless logging? I am getting these
every 5 minutes (every time MRTG updates my MailScanner statistics).
So far what I tried
2006 Dec 13
3
FreeBSD Ports, remotefile() problem
Howdy,
Found out about this project while looking for via ONLamp''s FreeBSD
build system article. After finding cfengine a tad arcane, this project
seems like a good fit for my setup. I''m still at the tinkering phase,
but I envision this thing bootstrapping and maintaining several FreeBSD
installs which have different CPU''s and packages.
The Good News:
2007 Jan 17
11
scope issue after upgrade
I just upgraded to 0.22.0 from 0.18.4 and I''m running into what I think
are problems due to changes in scope rules.
In my site.pp manifest, I have the following:
import "classes/*"
node nfsserver {
include nfsserver
}
node webserver {
include webserver
}
class cluster1_sites {
website {
"example.com": ...;
"example2.com": ...;
}
}
node
2011 Jul 22
2
CentOS 6.0 chkconfig strange behavior
Hi,
I'm noticing some strangeness with chkconfig on CentOS 6.0 and was looking for a bit of advice.
It appears that chkconfig is re sequencing or re ordering the start priority of various services when turning on a service using chkconfig.
Example is the network service. Under normal circumstances network is set to start at S10. However when I add something like snmpd and invoke chkconfig
2008 Jan 27
3
Request to add to the wiki
I just used Nick Mae's well written HOWTO on setting up Cacti on
CentOS 4.xto setup Cacti on my CentOS
5.1 system :
http://wiki.centos.org/HowTos/Cacti_on_CentOS_4.x
I was hoping to add a page or section for CentOS 5.x with the modifications
I'm including below.
My wiki.centos.org username is "GeneWood"
Changes :
# Make sure snmpd accepts 'public' as public
2006 Oct 19
8
puppet 0.20.0: updated language syntax doesn''t work?
Hi,
I just upgraded to puppet 0.20.0 today after a short time playing with
0.19.3. The docs say to use the uppercase form for types but that
seems to break for me. When I updated the remotefile function to use
the new way, the puppet clients complain about objects not being
found. For example:
----- OLD WAY (works, just with deprecations) -----
define remotefile (...) {
file { $name :
2006 Sep 28
10
What does "State group failed" mean?
One one of my new vmware guests... puppetd -v spits out a bunch of
err & warnings about "State group failed"... what does this mean?
<snip>
info: Caching configuration at /var/lib/puppet/localconfig.yaml
err: Could not create root: Could not find a default provider for group
warning: file=/etc/yum.repos.d/: State group failed: Could not find a
default provider for group
2008 Apr 10
2
snmpd wont start on CentOS 4.4?
Hello All,
Ive searched the arqchives, but didnt find anything like this.. Maybe im
missing some trick here...
The problem:
I've instaled snmpd and snmp-utils packages with yum.
Im using and old simple .conf file, i've been using on my fedora 1 box,
but when I try to start snmpd, it just says OK, (Starting
snmpd..........[OK]), but the service dont work at all. I dont see any
process