Displaying 5 results from an estimated 5 matches for "has_variable".
Did you mean:
ast_variable
2012 Aug 04
1
string matching in erb template
Hi!
I am trying to match a string in an ERB template but for what ever reason
it does not work.
<% if has_variable?("apache2_phpmyadmin_url") && apache2_phpmyadmin_url !=
"" then %>
ProxyPass /<%= apache2_phpmyadmin_url %>/ !
<% end %>
The conditional works on has_variable? but the != "" is not getting
evaluated. When the variable is set to "...
2011 Sep 27
2
Dashboard parameters to control VIPs?
Some of the Red Hat Enterprise Linux servers in our environment
sometimes get assigned virtual IP addresses (eth0:1, eth0:2, etc).
Puppet Dashboard''s parameters seem like an ideal way to define and
provision virtual IPs on these servers. One could create a "vip1"
parameter on a node, and define a value of the IP address to use for
that vip. A manifest could then be written to
2009 Dec 24
7
nested variables
Hi all!
I have quation: how i may use nested variables/facts? For example, I
have variable $iface. It''s variable declared in node brakets, and, use
with defenition. iface may be eth0, eth1(Linux), em0, ...
<freebsd>, ...
is fact:
facter | grep eth0 | grep mac
macaddress_eth0 => 54:52:00:3D:CB:40
We don''nt know name of $iface in our module (to generate network
2010 Oct 05
0
Puppet truth, nil and templates
Does Puppet have any genuine concept of truth and nil that survives the
interface with Ruby? has_variable? only returns false if a variable has
never been assigned a value at all in the enclosing scope; there is no
way to assign undef to a regular variable (as opposed to a resource
parameter) within a scope and so make it undefined for the template.
It would be a very useful thing to be able to do; ma...
2009 Feb 23
3
Require package not working as expected
I have the following as part of a module:
--------------------------------------------------------------------------------
# Ensure "lsb-release" installed
package {"lsb-release":
ensure => installed,
}
# Use our sources.list
file { "/etc/apt/sources.list":
owner => root,
group => root,
mode =>