Displaying 20 results from an estimated 7000 matches similar to: "Variables and scope with inherits"
2012 Sep 03
2
erb syntaxes
Hi guys,
I''m trying to do the following in my template:
location <%= location %> {
proxy_pass <%= proxy %>;
<% if scope.lookupvar(''nginx::resource::location::proxy_header'') then
scope.lookupvar(''nginx::resource::location::proxy_header'').each do
|header| %>
proxy_set_header <%= header %>
<% end
2012 May 29
1
Simply Auto Increment A Number
Hi,
I have a template which looks like this
<% scope.lookupvar(''openldap::params::ldapservers'').each do |var| -%>
olcSyncrepl: {0}rid=001 provider="ldap://<%= var %>:389"
type=refreshAndPer
sist retry="5 5 300 +" searchbase="<%=
scope.lookupvar(''openldap::params::searchbase'') %>" attrs="*,+"
bindmeth
2001 May 10
2
SV: Ext3 destroying ownerships and permissions
> Changed ownerships seem to happen in larger groups or
> batches. The most frequent occurence is that "user A" finds
> that his homedir and *all* files and dirs under it are
> suddenly owned by "user B". Also files under "user A"'s
> homedir which where previously owned by root (some
> auto-generated statistics are owned by root) get their
>
2013 Jul 12
1
ERB template pain
Hi,
I have stupid situation that I may workaround but I think there is an
elegant way to deal with.
Still I need the community help.
In some class X I have:
$control = {
dev => {
id => 7,
name => ''GG''
},
prod => {
id => 1,
name => ''Info''
}
}
In some other class, which I apply to a node I have defined file from a
2011 Nov 16
11
What is the offical variable scope best practice?
I read the guide at
http://docs.puppetlabs.com/guides/scope_and_puppet.htmland others''
mail, i am a little confused now, below is my understanding:
1. top scope only refers to site.pp, not include node definitions and facts.
2. in puppet class, using variables not local, must specify the namespace,
like $class::variable,
if it''s a top scope variable or a fact variable or a
2009 Nov 25
1
Puppet custom functions and user permissions
Puppet custom functions and user permissions
I am busy writing a custom function to automatically add OSSEC agents
to a OSSEC server after installation. Unfortunately, it seems that
puppetmasterd is not respecting the entries in /etc/group in linux. No
matter how many other groups the puppet user has been added to in /etc/
group, when puppetmasterd runs the custom function the effective/real
user
2012 Jan 23
13
Template Help Please
Hello,
I am trying to setup a template with data being passed in as a long
string of data which is being returned via extlookup()
i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12"
The template should split those up and put a nameserver entry per line
in /etc/resolv.conf
I have this in the template now:-
<%=
2013 Jul 30
2
Failed to parse template, wrong number of arguments (create_resources)
I''m having some issues trying to track down a problem I''m having parsing a
simple template, using create_resources and Hiera. Here''s my setup
(abridged):
../hieradata/settings.yaml:
*global:*
* variables:*
* env: foo*
*
*
*appSpecific:*
* serverName: someServer*
../modules/test/manifests/init.pp:
*class test {*
* create_resources(test::variables,
2013 Feb 20
1
Access puppet hash name in templates
Hi,
I''ve defined a hash like so in my nodes.pp:
net::addr { "eth5":
rt => {
rt1 => {
address => ''192.168.10.0'',
netmask => ''255.255.255.0'',
gateway => ''192.5.28.19'',
src =>
2009 Dec 21
3
Shutdown vmware ESX
Hi,
is there some easy way how to shut down vmware ESXi host?
We have same apc smart 1500 and I passed usb port into one virtual linux, so
it can monitor ups state via NUT.
So how can i make esx server avare of low battery? Maybe using vsphere-cli
utils?
With regards
Libor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type:
2009 Jul 28
4
Patch for drivers.list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just a little patch for the drivers.list
The "Cyber Power Systems Intelligent Series CP1500EAVRLCD" ups
http://eu.cyberpowersystems.com/products/ups_systems/intelligent/cp1500eavrlcd.htm
Got one here running (see:
https://nut.stillbilde.net/cgi-bin/nut/upsstats.cgi?host=CyberPower at upsmonitor)
Works flawlessly.
Patch as follows:
2006 Feb 25
9
trace("") prints hex dump table
I''m running
SunOS unknown 5.11 snv_33 i86pc i386 i86pc
and to print a blank line in the output of my script I tried adding:
trace("");
which printed
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2010 Mar 24
21
ZFS on a 11TB HW RAID-5 controller
Hello all,
I am a complete newbie to OpenSolaris, and must to setup a ZFS NAS. I do have linux experience, but have never used ZFS. I have tried to install OpenSolaris Developer 134 on a 11TB HW RAID-5 virtual disk, but after the installation I can only use one 2TB disk, and I cannot partition the rest. I realize that maximum partition size is 2TB, but I guess the rest must be usable. For
2020 Jun 02
2
Code coverage for member functions that are defined inside the class
Hello,
We have a user that wants to get the code coverage report for his library without turning on instrumentation for the library clients or change how they are built (only the library is instrumented). It seems like the inline member functions defined in headers are not instrumented in this case because the clients are not instrumented. The library itself does not have a copy of the inline
2012 Nov 20
1
FOOBAR\usuario1 windows explorer hungs forever while accessing shared dirs in LAPAZ\comp1 (interdomain trust relationships)
Hi all
I have two samba PDC installed according to these specifications:
domain FOOBAR with pdc server name: BAR (ip 192.168.1.1)
opensuse 11.1
samba-3.5.6-15.1
openldap2-2.4.12-5.6.1
smbldap-tools-0.9.5-25.1
A winxp called USUARIO1 joined to the FOOBAR domain (ip 192.168.1.100)
domain LAPAZ with pdc server name: SERVERLPZ (ip 192.168.10.4)
openSUSE 12.2
samba-3.6.7-48.12.1.i586
2016 Apr 18
7
LTO and intrinsics mangling
In the current mangling scheme for overloaded intrinsics we include overloaded type names in the intrinsic name. For example:
%struct.foobar = type { i32 }
declare <4 x %struct.foobar*> @llvm.masked.load.v4p0struct.foobar(<4 x %struct.foobar*>*, i32, <4 x i1>, <4 x %struct.foobar*>)
Verifier checks that an overloaded intrinsic name matches with its signature.
When
2010 Nov 15
3
how normal is this temporary power loss for a single UPS?
Hi
Occasionally I get emails from my NUT system saying that one of my UPSes lost power for about a minute.
Losing power:
Date: 15. nov 2010 17.40.25 CET
regaining power:
Date: 15. nov 2010 17.41.34 CET
69 seconds later. But why? None of the 3 other UPSes reports any power loss. What is the problem?
So I made some scripts that logs the input, output and frequency at the time of power loss,
1998 Apr 08
1
SAMBA digest 1648
>>"foobar." Win95 keeps sending over it's username as the person who logged
>>in to that computer, or as the computer's machine name... and samba uses
>>that. I'd rather if they just typed in "foobar" they'd be in foobar's
>>account. Can this be done?
>Establish a group foobar in /etc/group with all the users that shall be
2019 Feb 01
2
group membership inconsistency on AD domain member
Hi,
I've been running a samba server with winbind (CentOS 7) as a member of
an AD Domain (Windows 2012 R2) for several months without a problem.
"Suddenly" I'm seeing the problem that the membership in newly created
AD groups isn't correctly visible for some users on the samba server or
only after some indefinite amount of time. I'm looking simply at the
output of
2010 Jan 24
3
Energy efficient UPS - anybody?
Hello,
i`m looking for a nut-compatible low-power UPS (need to hook a home-server+dsl equipment with a load of ~50W to that) which should be as energy efficient as possible and be also affordable.
i currently have an older powerwalker which constantly burns ~15W for nothing. The transformer inside getting that hot that you don`t like to touch it and i think 15W out of 50 is a little bit high