similar to: Setting variables in modules - order important?

Displaying 20 results from an estimated 500 matches similar to: "Setting variables in modules - order important?"

2007 Aug 30
4
Command line vs config file override for configuration params
Hi all I''m working on my modular recursive Makefile & svn-backed home for my Puppet manifests, custom functions, types, etc. So I''m trying to put together individual modules, test targets and so on. I have noticed that the $libdir (and probably the other configuration options too) sources from puppet.conf are not overridden by specifying --libdir=blah on the commmand line
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
2007 Nov 13
2
Creating a manifests ''release'' under SVN; trouble with SVN headers
Dear all I''ve gotten into the habit of including SVN headers in my templates, etc so it is easy to see where the file installed into /etc/puppet/ came from. Furthermore, we use svn cp to create release branches. Therefore, you''ll see something like this: # $Id: dumpadm.conf 1239 2007-10-23 16:04:06Z sa_dewha $ # $URL:
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
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
Hi list, My case : Local UNIX user : ZTEST domain : uuq.ork domain user : UUQ\ztest smb.conf for standalone samba : /home/hywu/smb.conf [/home/hywu] # cat /home/hywu/smb.conf [global] passdb backend = smbpasswd workgroup = WORKGROUP security=user Smbpasswd fail to change local UNIX user password (ZTEST) when samba role is DC. I want to change password of local UNIX user "ZTEST" but
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
On Thu, 25 Jan 2024 18:27:48 +0800 hhyy ww via samba <samba at lists.samba.org> wrote: > Hi list, > > My case : > Local UNIX user : ZTEST > domain : uuq.ork > domain user : UUQ\ztest > smb.conf for standalone samba : /home/hywu/smb.conf > > [/home/hywu] # cat /home/hywu/smb.conf > [global] > passdb backend = smbpasswd > workgroup = WORKGROUP >
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
Rowland Penny via samba <samba at lists.samba.org> ? 2024?1?25? ?? ??6:42??? > On Thu, 25 Jan 2024 18:27:48 +0800 > hhyy ww via samba <samba at lists.samba.org> wrote: > > > Hi list, > > > > My case : > > Local UNIX user : ZTEST > > domain : uuq.ork > > domain user : UUQ\ztest > > smb.conf for standalone samba : /home/hywu/smb.conf
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
My system is not only for CIFS/SMB/domain features , sometime I need to disable DC so I have to keep local user in /etc/passwd. I have download samba source code and build it. I modify the order of getpwnam call in source3/lib/username.c then solve the problem. I have checked the following list : https://lists.samba.org/archive/samba-technical/2008-March/058508.html I think this is same problem.
2024 Jan 25
1
Order of getpwnam call in Get_Pwnam_internals.
On Thu, 25 Jan 2024 20:54:07 +0800 hhyy ww via samba <samba at lists.samba.org> wrote: > Rowland Penny via samba <samba at lists.samba.org> ? 2024?1?25? ?? > ??6:42??? > > > On Thu, 25 Jan 2024 18:27:48 +0800 > > hhyy ww via samba <samba at lists.samba.org> wrote: > > > > > Hi list, > > > > > > My case : > > > Local
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 Aug 20
1
Common routines for custom functions
Hello I want to share some common subroutines between my custom functions. Given the way Puppet loads the .rb files in $plugindest/puppet/parser/functions, does anyone know how should I lay this out? I tried creating a module myutilities def self.blah() ... end end (NOT within the newfunction() call) in one of the (top-level) functions'' .rb file. However, calling
2007 Jun 11
1
Arbitrary backups
Anyone think it would be useful to have files backed up to the filebucket even if they are not controlled by Puppet? 1 vote here. Derek ------------------------------------------------------------------------ For important statutory and regulatory disclosures and more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure
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 10
1
One more HEAD foible against our config
One more error/warning from the latest Puppet from git: In the provider I have KEYS = Facter.value(:roothome) + "/.ssh/authorized_keys" Puppet::Type.type(:authorizedkey).provide(:parsed, ... I get an error on the Puppetmaster: Could not autoload "/usr/lib/ruby/site_ruby/1.8/puppet/provider/authorizedkey/parsed.rb": undefined method `+'' for nil:NilClass Could not
2007 Nov 19
1
Targets firing out of order
> Example class that brings on this behaviour: > > Class ldap::setup { > $loc = getLocation() #Custom function that returns a location > based on IP address fact > > case $loc { > london: { > $bind = "cn=base,dc=site,dc=com" > notice ("Target 1 - bind - ${bind}") > } > ... >
2007 Dec 18
2
Testing / Coding methodologies?
I''ve been having great "fun" testing the new (Puppetised) build end-to-end for several days now. The majority of the fun has been coming from vendor packages (no names mentioned), typically with conflicting permissions on files, or perhaps different home directories, UIDs for the app users so it matters in which order you do things in. My current methodology is to go through
2007 Jun 11
4
Managing bigger scripts
Hello, I''m scratching my head as to the best way to plug in a script to do some client configuration. The script is about 40 lines long (full of basic instructions to fiddle with VCS in fact). Lots of execs would seems cumbersome. My thoughts are to simply install this to the client (via the fileserver) and exec out to it. Does this seem sensible? And if so, be aware of things like
2004 Dec 09
1
Chainloading from pxelinux
Can pxelinux be used to chain other *network* bootloaders directly? I.e., keep the pxe stack but replace itself with an alternate network boot loader (eg, the intel nbp, or, more specificly, an arbitrary bootloader for another OS)? I'm sure this is an obvious FAQ but I can't find reference to it (sorry). Obviously memdisk could be used to load other OSes, but I have been given a strict
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 May 24
2
Reusing definitions - need to pass variable in the title
I recently tidied up a class/definition combo that sets /etc/issue and /etc/issue.net. This failed: define issuefile($path) { file { issue: owner => root, group => root, mode => 0644, content => template("issue_conf") } } class issue { issuefile { "issue": path => "/etc/issue" } } class