Hi
I want to create parametrized class with hash parameter from
hiera .yaml file
so i got
hiera.yaml
backends: - yaml
- json
- puppet
:hierarchy: - %{host}
- common
:json:
:datadir: /etc/puppet/hiera
:yaml:
:datadir: /etc/puppet/hiera
:puppet:
- Original Message -
Hi
I want to create parametrized class with hash parameter from
hiera .yaml file
so i got
hiera.yaml
backends: - yaml
- json
- puppet
:hierarchy: - %{host}
- common
:json:
:datadir: /etc/puppet/hiera
:yaml:
just do hiera(mailserver)
hiera_hash is a special lookup that builds a hash based on data found
at many levels of the hierarchy, if you have a single key with a array
or hash in it, then just look it up with hiera()
thank u now it works!
--
You received this message because you are
Let's say I have a web application which I want to deploy separately:
* the static content and appropriate configuration on a machine with
Apache on it,
* the dynamic content and appropriate configuration on a machine with
Tomcat on it.
Is there a possibility to write a module which takes as an
On Sep 2, 1:21 pm, Brad Krane brad.kr...@gmail.com wrote:
Here is a very simple manifest that recreates this error:
class foo {
define bar ( $val ) {
notice(bar($val))
}
}
$some_hash = { 'name' = some_name }
foo::bar { $some_hash['name']: }
Puppet::Parser::AST::Resource
Hi all,
Since upgrading a few test machines from 2.6.7 to 2.7.3, I've noticed
something slightly odd. Every single run reports 6 skipped resources, yet
the reports are empty - they only state the execution time as per usual). On
digging further it seems that the auto-generated Schedule
I know I brought this up in a different post a while ago in as a
different question.
Whats the best way to locate a configuration file from a ruby
manifest? I'm tring to load a yaml for database properties but so far
the only way to make it work is if I explicitly define a path either
manually or
I do this with a define. In my case, I define a web application and pass in
several arrays of hosts. This expands, in turn, to a series of if
statements that check to see which array (if any) $hostname is in and then
sets appropriate variables. I use this to generate Nagios hostgroups,
assign
I have a node def that refers to 2 classes like this;
node default {
class {
[ eucalyptus, eucalyptus::nc ]:
}
}
The 2nd requires the first class.
Now, I've added parameters to the 2nd class and would like to set
values here. What is the appropriate way to do that? I'm looking at
the
Hi,
On 11-09-06 11:11 AM, David Kavanagh wrote:
I have a node def that refers to 2 classes like this;
node default {
class {
[ eucalyptus, eucalyptus::nc ]:
}
}
The 2nd requires the first class.
Now, I've added parameters to the 2nd class and would like to set
values
I've recently been looking to move my KVM management (currently via
Puppet and virt-manager) to something web-based and robust (ie
Cloud), and came across OpenQRM. Looking at the features list it
mentions puppet Class/Machine management. Has anyone that uses
Puppet extensively given this a try?
On Tue, Sep 6, 2011 at 7:24 AM, Matt mjbl...@gmail.com wrote:
I know I brought this up in a different post a while ago in as a
different question.
Whats the best way to locate a configuration file from a ruby
manifest? I'm tring to load a yaml for database properties but so far
the only way
I'm trying to write a ruby dsl manifest that pulls data from a
database. The issue I'm trying to overcome is I dont want to have to
hardcode the location of the db configuration. If I set it at the
init.pp level the configuration it will be picked up as top scope and
dumped to the facts, and also
On Tue, Sep 6, 2011 at 9:08 AM, Matt mjbl...@gmail.com wrote:
I'm trying to write a ruby dsl manifest that pulls data from a
database. The issue I'm trying to overcome is I dont want to have to
hardcode the location of the db configuration. If I set it at the
init.pp level the configuration it
turns out that the dashboard workers need to run as root instead of www-data
because the fact that the reports are create by the root user
On 6 September 2011 01:08, Denmat tu2bg...@gmail.com wrote:
Hi,
Not sure of the exact answer but can your www-data user read that
directory? What user is
treydock wrote:
I've recently been looking to move my KVM management (currently via
Puppet and virt-manager) to something web-based and robust (ie
Cloud), and came across OpenQRM. Looking at the features list it
mentions puppet Class/Machine management. Has anyone that uses
Puppet
I am using 2.6.6, when I try your example I get a empty string back, I
tried with 'module_name' and the actual name of the module and both
return an empty string.
On Sep 6, 12:27 pm, Nan Liu n...@puppetlabs.com wrote:
On Tue, Sep 6, 2011 at 9:08 AM, Matt mjbl...@gmail.com wrote:
I'm trying
On 11-09-06 12:15 PM, David Kavanagh wrote:
Thanks,
It wasn't clicking that it was an array notation.
hep, no problem ;)
I thought it was a little bit weird too, to be changing from include
classname to class { 'classname': ...}. (e.g. because of the 'class'
reserved word, it now looks like
The puppet documentation at
http://docs.puppetlabs.com/references/stable/function.html says for
the require function, that:
Evaluate one or more classes, adding the required class as a dependency.
This implies that any resources in the required class are
automatically added as a dependancy. I'm
On Tue, Sep 6, 2011 at 11:52 AM, Douglas Garstang
doug.garst...@gmail.com wrote:
The puppet documentation at
http://docs.puppetlabs.com/references/stable/function.html says for
the require function, that:
Evaluate one or more classes, adding the required class as a dependency.
This implies
Switching to puppet (2.7.3) for managing my OS X Lion systems, I'm
finding group membership not being updated.
Starting out, user dt is not a member of group dt-grp:
# dscl . read /groups/dt-grp | grep GroupMembership
GroupMembership:
...Run puppet, says it adds to the group:
# puppet agent
Once again I'm experimenting with the Gentoo Linux distro and trying to get
puppet to work with it. I'm starting to think it is a lost cause.
In my puppet setup I have a list of packages that are built on any system
that I support regardless of the systems final use. These include tmpwatch,
David Thompson wrote:
Switching to puppet (2.7.3) for managing my OS X Lion systems, I'm
finding group membership not being updated.
Any help much appreciated...
David
I think there are a bunch of OSX Lion bugs in the ticket DB that might
be worth checking if this one is picked up.
Peter Berghold wrote:
Now I get:
err: Could not prefetch package provider 'portage': Command update_eix
is missing
I'm running puppet 2.7.3 on both the puppet master and the client. Any
thoughts?
Caveat: I am not a Gentoo person.
Is the binary update_eix present on the host?
James
--
Doing a google after I sent the email I found the following page:
http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Gentoo
after doing a emerge eix and re-running the puppet transaction things
*look* to be going normally can't tell for sure since it is still
running and it is not
On Sep 6, 2011, at 11:58 AM, Douglas Garstang wrote:
On Tue, Sep 6, 2011 at 11:52 AM, Douglas Garstang
doug.garst...@gmail.com wrote:
The puppet documentation at
http://docs.puppetlabs.com/references/stable/function.html says for
the require function, that:
Evaluate one or more classes,
- Original Message -
class platform::common {
file {
'/etc/somedir':
ensure = directory;
}
class webapp::common {
require platform::common
file {
/etc/somedir/configfile:
# stuff here.
}
}
When puppet runs,
- Original Message -
That's a feature in newish versions, right?
no, it's been there for ages and ages.
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To
Peter,
Puppet works great on gentoo with the following caveats:
- Puppet conceptually uses a binary package paradigm, and one needs to
work around that. It would be nice if we could extend puppet for
gentoo to make it more source based distribution aware and
especially allow it to manage portage
On Tue, Sep 6, 2011 at 13:26, Matthew Marlowe
m...@professionalsysadmin.com wrote:
Puppet works great on gentoo with the following caveats:
- Puppet conceptually uses a binary package paradigm, and one needs to
work around that. It would be nice if we could extend puppet for
gentoo to make
On Tue, Sep 6, 2011 at 1:19 PM, R.I.Pienaar r...@devco.net wrote:
- Original Message -
That's a feature in newish versions, right?
no, it's been there for ages and ages.
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post
This comes down to the package provider depending on eix, which is
presumably some sort of interface to portage that isn't standard;
fixing the provider should fix the problem there. That pretty much
depends on someone who cares sending an appropriate patch. (hint ;)
That's probably most
32 matches
Mail list logo