Re: [Puppet Users] --configprint

2014-09-08 Thread Jonathan Gazeley
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

[Puppet Users] Split domain and tld from domainname

2014-09-08 Thread yamakasi . 014
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

Re: [Puppet Users] Split domain and tld from domainname

2014-09-08 Thread Sebastiaan van Steenis
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

[Puppet Users] Duplicate Declarations - Puppet

2014-09-08 Thread Pedro César
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

[Puppet Users] Re: puppet (3.7.0) module install fails with a specific module that worked on puppet 3.6.2

2014-09-08 Thread Brandon High
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

Re: [Puppet Users] Split domain and tld from domainname

2014-09-08 Thread yamakasi . 014
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

Re: [Puppet Users] Duplicate Declarations - Puppet

2014-09-08 Thread Peter Bukowinski
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

Re: [Puppet Users] Duplicate Declarations - Puppet

2014-09-08 Thread Pedro César
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

Re: [Puppet Users] Duplicate Declarations - Puppet

2014-09-08 Thread Pedro César
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

Re: [Puppet Users] Duplicate Declarations - Puppet

2014-09-08 Thread Trevor Vaughan
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

Re: [Puppet Users] Custom fact ( complete fail )

2014-09-08 Thread Felix Frank
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

Re: [Puppet Users] Duplicate Declarations - Puppet

2014-09-08 Thread Felix Frank
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

Re: [Puppet Users] Custom fact ( complete fail )

2014-09-08 Thread omfg9899
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

[Puppet Users] Windows ACL - multiple account permission -Example

2014-09-08 Thread Helen Paterson
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']

[Puppet Users] Re: Permission problems on Windows

2014-09-08 Thread Helen Paterson
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

Re: [Puppet Users] Custom fact ( complete fail )

2014-09-08 Thread Felix Frank
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

Re: [Puppet Users] Duplicate Declarations - Puppet

2014-09-08 Thread Warren Clarke
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

Re: [Puppet Users] Custom fact ( complete fail )

2014-09-08 Thread Garrett Honeycutt
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. >

Re: [Puppet Users] Custom fact ( complete fail )

2014-09-08 Thread omfg9899
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

Re: [Puppet Users] Windows ACL - multiple account permission -Example

2014-09-08 Thread Rob Reynolds
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

[Puppet Users] .fixtures.yml functionality in spec helper

2014-09-08 Thread Brett Swift
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

Re: [Puppet Users] .fixtures.yml functionality in spec helper

2014-09-08 Thread Garrett Honeycutt
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.

[Puppet Users] Issue with puppet 3.3 evaluation - puppet agent install curl command is failing

2014-09-08 Thread Norm Long
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

Re: [Puppet Users] Custom fact ( complete fail )

2014-09-08 Thread omfg9899
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