Hi,
I am using the latest version of hiera and puppet and wondering if there is
any way to make variables in hiera interpolate when they are called, for
example:
---
foo:
bar: $::hostname
baz: $some_variable
When I try to access this in puppet it invariably comes back with
'$hostname'
Is it possible to define a parametrized class but allowing variable number
of arguments?
thanks,
adrian
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To view this discussion on the web visit
Hello readers,
I am configuring my environment to have a separate manifest file, using
$environment to in the module and manifest path.
For the modules it works now. The site.pp file ... is another issue. I was
under the impression it did, but it wasnt.
Basically I did the following:
if the package is in under the management of the system's package manager
it should not matter whether it is puppet-managed. puppet checks for the
presence of the package in the system,and then fails if it's not there and
can't install it.
and you can always go with an exec{} resource, which
On Saturday, September 22, 2012 3:58:41 AM UTC-5, Fabrice Bacchella wrote:
Le 21 sept. 2012 à 15:35, jcbollinger a écrit :
On Friday, September 21, 2012 6:21:04 AM UTC-5, Fabrice Bacchella wrote:
When puppet is launched as a daemon, a kill -USR trigger a catalog run :
Sep 21 12:56:01
On Saturday, September 22, 2012 3:36:35 AM UTC-5, Fabrice Bacchella wrote:
Le 21 sept. 2012 à 17:05, jcbollinger a écrit :
On Friday, September 21, 2012 4:35:41 AM UTC-5, Fabrice Bacchella wrote:
I'm starting it by hand. It's the same process (pid 1845) that is nulling
stderr that is
I've done it with hashes as Trevor suggests. I do it to pass values to
templates, what's your use case?
basically my class looks like this:
class myclass( $myhash = {}) {
...
}
and I use the class like this:
myclass { myclass :
myhash = { mykey = myvalue },
}
works like a charm.
HTH,
On Sunday, September 23, 2012 11:55:44 PM UTC-5, Heriyanto wrote:
Dear All,
I have enviroment testing, staging and production for puppet,
when i trying to test running staging on production, run command:
puppetd --test --env staging # its work
puppetd --test --env
I am trying to override variables in a class that is defined in the default
node profile. I want parent class to be included in every single node, but
override its variables in others. I have tried it several different ways
now, and every single time the variables either become unset
Hello,
I'm trying to add an entry to /etc/hosts.allow only if the entry for
'client' (daemon) does not already exit.
In this #puppet log:
http://www.puppetlogs.com/puppet/%23puppet-2012-05-03.log.html
rodjek links a gist which should do exactly that:
https://gist.github.com/18c50d8800840696bac0
Thanks John, that's exactly what I'm looking for, but am having trouble
getting it to work. I read the Custom
Factshttp://docs.puppetlabs.com/guides/custom_facts.htmland Plugins
in Modules http://docs.puppetlabs.com/guides/plugins_in_modules.html docs,
and:
added pluginsync = true to
also, as suggested in the *Pro Puppet* book, I:
- copied the ruby file to ~/lib/ruby/facter/
- export RUBYLIB=~/lib/ruby
- facter pgsql_pkg
- it printed itworks as expected.
I'm running puppet 2.7.18 on the master and 2.7.19 on the client, all are
CentOS 6.
On Monday,
First thing I would do is use 'augtool' on the command line and checking
for any errors trying to parse your current /etc/hosts.allow file:
augtool
ls /augeas/files/etc/hosts.allow/error
(maybe *errors* plural, can't remember off the top of my head ... play with
the path as I may have typo'd
Wow, I think I totally missed reading the last part of your message.
Unfortunately I don't have a system currently to test what you are trying
to do to further debug. Sorry for posting so hastily.
Regards,
Jake
--
You received this message because you are subscribed to the Google Groups
and interestingly, I see this when running puppet on the client:
info: Loading facts in /var/lib/puppet/facts/pgsql_pkg.rb
but it still doesn't appear in the output of `facter` or `facter -p`
On Monday, September 24, 2012 12:35:39 PM UTC-7, Justin Ryan wrote:
also, as suggested in the *Pro
Another iteration of failure is the following. This one is in the likeness
of ::parms for a class, but if it nrpe:load inherits override class, then I
can't declare the override class anywhere else. This was my
first attempt to do this, and have tried 4 other iterations of this, but as
far as
I think that you can specify vmware version with a variable or something
for the razors edge module..
Otherwise I can soon try to publish my vmware tools module.. Though it's
not written as nice as razorsedge
--
You received this message because you are subscribed to the Google Groups Puppet
I have many systems that require NFS mounts for production. Rather than
have one entry of file{} and mount{} per NFS import, in a *.pp file, I'd
rather set up and iterate over an array. Looking at the docs, I'm not
quite sure how to do this properly. We have three groups for which I would
I've just added a fact to github which on vmware hosts running linux runs
dmidecode and matches known bios address/ esx version to realize an ESX version
fact.
this information generated from
http://virtwo.blogspot.com/2010/10/which-esx-version-am-i-running-on.html
in limited testing on an
On Mon, Sep 24, 2012 at 3:03 PM, Stuart Cracraft smcracr...@me.com wrote:
Anyone know how to resolve this mysql
issue in the log below?
Something is wrong with your RVM built Ruby - it doesn't have the
'psych' library for YAML support. That isn't the root cause of the
problem, but it will
Le 24 sept. 2012 à 15:58, jcbollinger a écrit :
On Saturday, September 22, 2012 3:36:35 AM UTC-5, Fabrice Bacchella wrote:
Le 21 sept. 2012 à 17:05, jcbollinger a écrit :
On Friday, September 21, 2012 4:35:41 AM UTC-5, Fabrice Bacchella wrote:
I'm starting it by hand. It's the
Le 24 sept. 2012 à 15:48, jcbollinger a écrit :
I'm not well-versed in MCollective, but I would be surprised if it could not
issue requests asynchronously. Even if it can't natively do so, whatever
node is issuing the mco commands certainly can issue several of them
asynchronously.
Hello,
I'm trying to install a few MSI packages on Windows, and I'm having trouble
specifying options.
Here is what I want to execute
C:\packages\my_problematic_package.msi \quiet \passive
As you can see, I'm trying to specify two arguments to the package, but I
can't figure out how to use
I figured it out, pluginsync = true needs to be added to puppet.conf [main]
on both master and client. Also good to note, if the output of the custom
fact script is empty, the fact will not appear at all.
On Monday, September 24, 2012 12:35:39 PM UTC-7, Justin Ryan wrote:
also, as suggested
On Mon, Sep 24, 2012 at 5:22 PM, jbrown justin.br...@fandingo.org wrote:
Hello,
I'm trying to install a few MSI packages on Windows, and I'm having trouble
specifying options.
Here is what I want to execute
C:\packages\my_problematic_package.msi \quiet \passive
As you can see, I'm trying
On Mon, Sep 24, 2012 at 2:39 AM, Josh j...@chickenmonkey.co.uk wrote:
I am using the latest version of hiera and puppet and wondering if there is
any way to make variables in hiera interpolate when they are called, for
example:
---
foo:
bar: $::hostname
baz: $some_variable
When I try
On Mon, Sep 24, 2012 at 7:37 PM, Stuart Cracraft smcracr...@me.com wrote:
Notes with ++
Something is wrong with your RVM built Ruby - it doesn't have the
'psych' library for YAML support. That isn't the root cause of the
problem, but it will totally mess you up later, so you should fix
Friends --
As of 30da528e9c8ac345d1020d1cbeee02598174a3c5 we put this intentionally
back to the 2.7 behaviour. Because both
(a) the change crept in as a side-effect of other code changes, not as a
deliberate language design choice
-and-
(b) we are not providing a simple (sigil or keyword)
28 matches
Mail list logo