Hello,
We are looking into using hiera with hiera-gpg, installed puppet 3.1.1 &
hiera 1.2.0 with rpm's.
Installing the hiera-gpg gem, it also depends on the hiera gem (used
version 1.2.0).
The hiera rpm installs under /usr/lib/ruby/site_ruby/1.8/
The hiera gem installs under /usr/lib/ruby/gem
You could use sourceselect in source;
http://docs.puppetlabs.com/references/stable/type.html#file
or use parameter in the source statement;
source => "puppet:///modules/syslog/syslog.conf_${::$lsbmajdistrelease}",
and create 2 syslog.conf files in the files directory;
syslog.conf_5
syslog.conf_
bad cp;
source => "puppet:///modules/syslog/syslog.conf_${::lsbmajdistrelease}",
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@goog
The following code example is purely academical but it illustrates my
question pretty well.
define touch($file=$title, $unless='/bin/false') {
exec { "/bin/touch ${file}": unless => $unless }
}
If I define my own resource type that wraps another *exec* resource and I
want to *add
I think it's:
ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
That gives you problems.
don't set ENV['PATH'].. if you really need to set path (the path set there
is unnecessary AFAIK), you can set it with the with_env function.
So the ENV.. setting. (it is inherited to all other facts and pup
Hey Joe !
I am kind of new on developing configs on puppet. I have already taken a
look at rspec-puppet. It looks fine but doesn't seems to be what I really
need. These two passages above tells me that rspec-puppet is related to
module testing. What it automates is a test like this: whether you
On Tuesday, April 9, 2013 5:20:36 AM UTC-5, Israel Calvete wrote:
>
> Hi,
>
> I try some like this...
>
> I need virtual parametriced class.
>
Why do you think you need such a thing?
>
> *@class {backup::client:*
> * backup => xx*
> *}*
>
> Is posible to do something like this? If
>
On Wednesday, April 10, 2013 8:11:49 AM UTC-5, jcbollinger wrote:
>
> I advise you to thinking of them as resources at all.
>
>
That is, I advise you to *avoid* thinking of them as resources at all.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Use
On Tuesday, April 9, 2013 5:50:28 PM UTC-5, Francesco wrote:
>
> Now eureka I have uninstall screen with rpm and I have created the
> following
> I begun from screen installation again :)))
> /etc/puppet/modules/screen/manifests/init.pp
>
> class screen {
>
> package { 'screen':
> ensure
Hi!
just a thought, I don't have any place to test it and it's been a while
since I had to deal with SELinux...but check SELinux booleans you might
find something there that is not allowing puppet agent to use mount.
IIRC you could list all of them with "semanage boolean -l".
sjr
On Wednesday
On Tuesday, April 9, 2013 2:35:07 PM UTC-5, Mike Power wrote:
>
> Have anyone of you every seen puppet invert a dependency?
>
>
> Say I have a class like so:
> class jenkins {
> user {"jenkins":
> ensure => present,
> }
> }
>
> That should form a dependency like s
On Tuesday, April 9, 2013 4:47:40 AM UTC-5, Gavin Williams wrote:
>
> Hi there,
>
> I think you're quickest win for making the code cleaner and easier would
> be to create a ::params class, which sets the correct values for package,
> file and service based on your distro.
>
>
A ::params clas
On Wednesday, April 10, 2013 4:26:19 AM UTC-5, christian...@gmail.com wrote:
>
> The following code example is purely academical but it illustrates my
> question pretty well.
>
>define touch($file=$title, $unless='/bin/false') {
>exec { "/bin/touch ${file}": unless => $unless }
>
Never heard of *undef *before - sounds great! Thanks
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To post to this g
When I define the mcollective_version variable using hiera I get the
following error. There is no indication where the problem has occurred.
Error: Failed to apply catalog: You cannot specify more than one of
content, source, target
If I set this variable in code it pretents to work but I think
On Wednesday, April 10, 2013 3:45:39 AM UTC-5, Stefan Heijmans wrote:
>
> Hello,
>
> We are looking into using hiera with hiera-gpg, installed puppet 3.1.1 &
> hiera 1.2.0 with rpm's.
> Installing the hiera-gpg gem, it also depends on the hiera gem (used
> version 1.2.0).
>
> The hiera rpm inst
The error you're getting indicates an incorrectly specified resource.
Please post your manifest to make it easier to debug.
On Wednesday, April 10, 2013 8:27:20 AM UTC-7, Larry Fast wrote:
>
> When I define the mcollective_version variable using hiera I get the
> following error. There is no ind
I'm guessing that the problem is in
example42/mcollective/manifests/init.pp...
class mcollective (
$install_dependencies = params_lookup( 'install_dependencies' ),
$stomp_host = params_lookup( 'stomp_host' ),
$stomp_port = params_lookup( 'stomp_port' ),
$stomp_user
On Tuesday, April 9, 2013 8:00:40 AM UTC-5, jcbollinger wrote:
>
>
>
> On Monday, April 8, 2013 4:10:03 PM UTC-5, Shantanu wrote:
>>
>>
>> The parameterized classes guide mentions that a parameterized class is
>> declared using following syntax [1]:
>>
>> class {'classname': }
>>
>>
>> But th
I have having the same problem with install puppet on redhat 6.2.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To p
Try this:
http://www.warden.pl/2012/09/05/puppet-send-an-email-to-the-client-when-a-new-key-is-generated/
On Wednesday, August 1, 2012 10:39:06 AM UTC-4, Radosław Antoniuk wrote:
>
> I am using the key rotation mechanism of ssh::auth, along these guidelines.
>
>
> ssh::auth::key {[ "alice", "bob"
Hi,
For several years, we have @work had a puppet environment where when we add
a new host/node, some basic monitoring is fed through to a nagios server
using virtual resources and an old nagios class which either someone here
wrote themselves, or found on the internet at the time.
We are tr
I'm trying to follow the steps
on http://docs.puppetlabs.com/guides/custom_facts.html in regards to
declaring External Facts using powershell.
I've created a simple .ps1 file outputing a single key pair eg: Write-Host
"mykey=123456", however if I run Facter from the Command Prompt(with
puppet)
Pretty sure you could use use 'version' in both your node declaration or in
hiera.
Matt
On Apr 10, 2013, at 1:48 PM, Larry Fast wrote:
> I'm guessing that the problem is in example42/mcollective/manifests/init.pp...
>
> class mcollective (
> $install_dependencies = params_lookup( 'install_d
At work we add a tag for when setting up the nagios checks in puppet
tag "nagios_env:$environment"
then when we realize or export the check
We link the generation to the tag
Nagios_serviceescalation <<| tag == "nagios_env:$environment" |>> {
require => Service["nagios"],
Hi Phil,
The monitoring module I wrote does this very well.
It is on puppet forge if you want to have a look for some inspiration or
install it and go from there :)
http://forge.puppetlabs.com/rendhalver/monitoring
The docs are pretty comprehensive now and explain how it all works.
I basically se
This only works in Facter 1.7, what do you get when you run `facter
--version`?
Have you double checked
http://docs.puppetlabs.com/guides/custom_facts.html#enabling-powershell-scriptsto
ensure that the powershell scripts are enabled?
- Justin
On Tue, Apr 9, 2013 at 8:44 AM, Grant Trevor wrot
Hi All
We're investigating the Hortonworks Hadoop Data Platform. It uses the
Apache Ambari installer, and we are running into problems as the
installation notes (http://hortonworks.com/hdp110-hmc-quick-start-guide/)
for the application say (and I kid you not):
*Remove or disable any existing Pupp
That sounds a bit restrictive.
I would be investigating whether you can add your modules and manifests to
the puppet master they use for the management server.
On 11 April 2013 10:22, John Warburton wrote:
> Hi All
>
> We're investigating the Hortonworks Hadoop Data Platform. It uses the
> Apa
What's the trick to displaying hiera debug messages when the puppet master
is running under passenger? I have uncommented 'ARGV << "--debug"' in the
config.ru file but that doesn't help. Not sure where to go to next.
Currently running puppet 3.0.
--
You received this message because you are
30 matches
Mail list logo