On 05/09/14 16:47, R.I.Pienaar wrote:
- Original Message -
From: "Jonathan Gazeley"
To: "puppet-users"
Sent: Friday, September 5, 2014 4:39:49 PM
Subject: Re: [Puppet Users] --configprint
On 05/09/14 16:20, R.I.Pienaar wrote:
- Original Message -
From: "Jonathan Gazeley"
To
HI,
I'm facing an issue where I need to grab the tld and domain from a
domainname no matter how many subdomains there are.
SO far I have tried regsubstr() and split() where split is getting where I
want, but not fully yet:
$split = split("sub.sub.sub.domain.tld", '[.]')
The following gives
Hi Matt,
As stated here
(https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#indexing),
arrays support negative indexing. Is this what you are looking for?
$dom = $split[-2]
On 08 Sep 2014, at 11:31, yamakasi@gmail.com wrote:
> HI,
>
>
> I'm facing an issue where I
I'm not sure if I'm doing right or something I've done is stupid, but I
have a question.
I have multiple hosts and multiple modules to manage these hosts, but
eventually, I have same resources for different modules and the Puppet
complaint about it.
I mean, I have two different modules that gu
On Friday, September 5, 2014 1:44:17 PM UTC-7, Anderson Mills wrote:
>
> Sebastian,
>
> So, this is caused by symlinks in this module which don't have a
> corresponding directory or file. Puppet 3.7.0 now checks for symlinks, and
> unfortunately has a File Not Found error if the symlinks don't
Hi Sebastiaan,
Thank you, I sorted it already out this way indeed!
Cheers,
Matt
Op maandag 8 september 2014 11:53:50 UTC+2 schreef Sebastiaan van Steenis:
>
> Hi Matt,
>
> As stated here (
> https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#indexing),
>
> arrays support
On Sep 8, 2014, at 8:31 AM, Pedro César wrote:
> I'm not sure if I'm doing right or something I've done is stupid, but I have
> a question.
>
> I have multiple hosts and multiple modules to manage these hosts, but
> eventually, I have same resources for different modules and the Puppet
> comp
Thanks for your answer Peter. I appreciate that.
Yes, it's a really good idea, I did that before but it's kind of weird.
Because while I'm developing more and more modules I have to change the
module that contains a virtual resource, you know seems a little silly.
And I was wondering for
Thanks for your answer Peter. I appreciate that.
Yes, it's a really good idea, I did that before but it's kind of weird.
Because while I'm building more and more modules I have to change the
module that contains a virtual resource, you know seems a little silly.
And I was wondering for a
I also believe it to be silly.
There have been several discussions over time regarding allowing multiple
*identical* resources to exist in the catalog.
I, personally, am in favor of this approach but it tends to get shot down
as 'allowing sloppy module design'. And, yes, it does. But I also thin
As I mentioned, you *modulepath* is key here.
What is the output of
puppet apply --configprint modulepath
puppet apply --configprint environmentpath
Also, what version of Puppet is this?
On 09/08/2014 06:19 AM, omfg9899 wrote:
> So I didn't have a "/etc/puppet/modules/env/lib/facter/" directo
On 09/08/2014 03:45 PM, Trevor Vaughan wrote:
> I also believe it to be silly.
>
> There have been several discussions over time regarding allowing
> multiple *identical* resources to exist in the catalog.
>
> I, personally, am in favor of this approach but it tends to get shot
> down as 'allowin
puppet apply --configprint modulepath
/etc/puppet/modules:/usr/share/puppet/modules
puppet apply --configprint environmentpath
invalid parameter: environmentpath
I inherited this, and am thinking more and more that it wasn't implemented
anywhere close to best practices.
So the environmentp
Hi,
I am trying to give multiple users modify access to a file. I can give one
user access fine:
acl { 'D:/Repositories':
permissions => [
{ identity => 'Administrators', rights => ['full'] },
{ identity => 'Users', rights =>
['read','execute']
You could try
if $osfamily == 'windows' {
File {
source_permissions => ignore }
# Puppet defaults to applying the ownership and permissions from the
source files.(linux permission)
}
On Monday, September 1, 2014 6:35:47 PM UTC+1, Armindo Silva wrote:
>
> Hi,
>
> I have a zip file that h
On 09/08/2014 05:29 PM, omfg9899 wrote:
> puppet apply --configprint modulepath
> /etc/puppet/modules:/usr/share/puppet/modules
>
> puppet apply --configprint environmentpath
> invalid parameter: environmentpath
>
>
>
> I inherited this, and am thinking more and more that it wasn't
> implement
Hi Pedro,
A work around would be to declare the resource as follows in your module(s):
if !defined (File['path_to_your_directory']) {
file { 'path_to_your_directory' :
ensure = directory,
}
}
That should resolve the "Duplicate declaration" error you are getting.
Hope this helps.
On 8 Se
On 9/7/14 11:41 AM, omfg9899 wrote:
> I know I must be missing something stupid, but I have tried for 2 days
> now without success.
>
> I am using puppet stand alone, no master.
>
> I need a simple custom fact to be created to assist in deploying the
> correct configuration at build time.
>
I may not have been clear..
We don't "currently" use a puppet master, although we are currently
evaluating this, among other options moving forward. The mess I was left
with appears to have absolutely minimal configuration as to just get to
point B as quickly as possible.
So when these i
On Mon, Sep 8, 2014 at 11:12 AM, Helen Paterson
wrote:
> Hi,
>
> I am trying to give multiple users modify access to a file. I can give one
> user access fine:
>
> acl { 'D:/Repositories':
> permissions => [
> { identity => 'Administrators', rights => ['full'] },
> { ident
https://github.com/puppetlabs/puppetlabs_spec_helper#using-fixtures
I think I'm doing it wrong.
I'm testing a module, and specified zack/r10k in my .fixtures.yml file.
It complains that it can't find gcc. I see that in the r10k/metadata.json
file.. weird, why isn't puppetlabs_spec_help
On 9/8/14 5:20 PM, Brett Swift wrote:
> https://github.com/puppetlabs/puppetlabs_spec_helper#using-fixtures
>
>
> I think I'm doing it wrong.
>
> I'm testing a module, and specified zack/r10k in my .fixtures.yml file.
>It complains that it can't find gcc. I see that in the
> r10k/metadata.
Good afternoon;
I'm attempting to install the puppet agent on a virtual machine with the
same OS as the puppet master, Centos 6.5. Here is the command and error
message:
curl -k https://fwdevpup.wvus.org:8140/packages/current/install.bash | bash
% Total% Received % Xferd Avera
I didn't want to leave this unanswered..
In the end, I had to create a "script" using the "files" function inside
cloud formation.
In the "script" I set the value
"FACTERLIB=/var/els/puppet/modules/facts/files"
and in that same script executed my puppet apply command and it worked.
Amaz
24 matches
Mail list logo