Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-14 Thread Wei Chen
Many thanks for your patience and help! -- 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 view this discussion on the

[Puppet Users] Puppet command through MCollective are extremely slow

2015-10-14 Thread Malintha Adikari
Hi, I have configured puppet master and set of agent. When I issue "puppet agent -vt" catalog run command from agents directly, it takes millisecond scale time to complete that operation(very less time). Then I configured MCollective to orchestrate this process. I installed MCollective server o

Re: [Puppet Users] Re: Puppet 3.8 to 4.2 migration issue...

2015-10-14 Thread Thomas Müller
I would recommend you to run puppet-lint against all your manifests. It will detect other possible problems. - Thomas -- 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 em

Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1

2015-10-14 Thread Rob Reynolds
On Thu, Oct 1, 2015 at 8:09 AM, jmp242 wrote: > Puppet 3.8.1 on Windows currently. puppet module list doesn't return > anything for me. I'm downloading the zip file and unzipping the module into > a folder. I then copy the folder into my local dev modules directory using > Geppeto, and doing the

Re: [Puppet Users] file absent in config manifest fails

2015-10-14 Thread Tim Dunphy
> > If you specify 'ensure => absent' then you should not have a 'content' > line. They are contradictory parameters. (Also, but unrelated, the path > parameter is duplicative since specifying the path as the file resource > name serves the same purpose.) Ok! Gothca. Actually not to deflect blame

Re: [Puppet Users] file absent in config manifest fails

2015-10-14 Thread Peter Bukowinski
Tim, > On Oct 14, 2015, at 10:14 PM, Tim Dunphy wrote: > > Hey guys, > > On puppet server 3.8.2 here. And I have a file definition that I want to set > as 'absent'. For example, this is what I have: > > file { '/etc/newrelic/newrelic.cfg': > ensure => absent, > path=> '/etc/ne

[Puppet Users] file absent in config manifest fails

2015-10-14 Thread Tim Dunphy
Hey guys, On puppet server 3.8.2 here. And I have a file definition that I want to set as 'absent'. For example, this is what I have: file { '/etc/newrelic/newrelic.cfg': ensure => absent, path=> '/etc/newrelic/newrelic.cfg', content => template('newrelic/newrelic.cfg.erb'),

[Puppet Users] how to generate puppet modules or manifests files according to different groups of servers dynamically?

2015-10-14 Thread Robert Chen
hi all, my company has a huge number of servers which are doing different functionalities and these are changing everyday. I want to make the customers to customized their requirements in a YAML file and then generate puppet manifests for modules dynamically. For example, a new groups of ser

[Puppet Users] Re: Install puppet 4.0 on centos 7?

2015-10-14 Thread Charlie Sharpsteen
On Wednesday, October 14, 2015 at 6:18:33 PM UTC-5, anton kropp wrote: > > I feel like I'm missing something super obvious here but I'm trying to > install puppet 4.0 on centos 7 and the only packages i can see are 3.8.3. > When I check the repo https://yum.puppetlabs.com/el/7/products/x86_64/

Re: [Puppet Users] Install puppet 4.0 on centos 7?

2015-10-14 Thread Christopher Wood
Look here: https://yum.puppetlabs.com/el/7/PC1/x86_64/ Also this thing: https://puppetlabs.com/blog/welcome-puppet-collections On Wed, Oct 14, 2015 at 03:17:57PM -0700, anton kropp wrote: >I feel like I'm missing something super obvious here but I'm trying to >install puppet 4.0 on cen

[Puppet Users] Install puppet 4.0 on centos 7?

2015-10-14 Thread anton kropp
I feel like I'm missing something super obvious here but I'm trying to install puppet 4.0 on centos 7 and the only packages i can see are 3.8.3. When I check the repo https://yum.puppetlabs.com/el/7/products/x86_64/ there is no 4.0 puppet-server package? Can someone help steer me in the right

[Puppet Users] Announce: PuppetDB 2.3.8 has been released!

2015-10-14 Thread Wyatt Alt
PuppetDB 2.3.8 October 14, 2015 PuppetDB 2.3.8 Downloads Available in native package format in the release repositories at: http://yum.puppetlabs.com and http://apt.puppetlabs.com For information on how to enable the Puppet Labs repos, see: http://docs.puppetlabs.com

[Puppet Users] Making a Provider API Call Idempotent

2015-10-14 Thread Danny Roberts
In a custom type/provider I am writing it seems that the provider is not entirely idempotent. The provider (https://github.com/kemra102/puppet-githubapi/blob/master/lib/puppet/provider/github_repo/default.rb) is calling the Github API (https://developer.github.com/v3/repos/#edit) and amending

Re: [Puppet Users] Re: The right way to create Hiera resources?

2015-10-14 Thread Marc Teale
That's very helpful. Thank you. On Wednesday, October 14, 2015 at 1:06:54 PM UTC-7, Ramin K wrote: > > On 10/14/15 12:33 PM, Marc Teale wrote: > > > So I'm asking if there's a best practices method of creating foobar > > instances from Hiera definitions, be it in another module that does > > n

Re: [Puppet Users] Re: The right way to create Hiera resources?

2015-10-14 Thread Ramin K
On 10/14/15 12:33 PM, Marc Teale wrote: So I'm asking if there's a best practices method of creating foobar instances from Hiera definitions, be it in another module that does nothing but run create_resources(foobar::instance), modifying the module and then submitting a pull request, or...? Tha

[Puppet Users] Re: The right way to create Hiera resources?

2015-10-14 Thread Marc Teale
On Thursday, October 8, 2015 at 8:31:05 AM UTC-7, jcbollinger wrote: > > > > On Wednesday, October 7, 2015 at 4:07:29 PM UTC-5, Marc Teale wrote: >> >> Is there a right/approved/standard way to create hiera resources for >> forge modules that don't do it on their own? (This is a question about

[Puppet Users] Re: Puppet saying "changed 'stopped' to 'running'" while the service is running

2015-10-14 Thread Eddie Mashayev
Hi, Thanks for the response. I removed the `hasstatus' and 'hasrestart' from my module and still the same result. By the way, my agents are only CentOS 5/6/7. Thanks, EddieM On Wednesday, October 14, 2015 at 4:07:31 PM UTC+3, jcbollinger wrote: > > > > On Wednesday, October 14, 2015 at 2:51:

Re: [Puppet Users] Re: Creating multiple directories based on variables or array

2015-10-14 Thread Ugo Bellavance
Thanks for your awesome, complete answer John. Ugo On Wed, Oct 14, 2015 at 10:12 AM, jcbollinger wrote: > > On Tuesday, October 13, 2015 at 12:20:05 PM UTC-5, Ugo Bellavance wrote: >> >> Hi, >> >> I'd need to create a number of directories in a fasion similar to that: >> >> /var/extlogs/$stage/

[Puppet Users] Re: Creating multiple directories based on variables or array

2015-10-14 Thread jcbollinger
On Tuesday, October 13, 2015 at 12:20:05 PM UTC-5, Ugo Bellavance wrote: > > Hi, > > I'd need to create a number of directories in a fasion similar to that: > > /var/extlogs/$stage/$client-$application > > For example, if stages are integration, staging, production and clients > are client1 and c

[Puppet Users] Re: Puppet saying "changed 'stopped' to 'running'" while the service is running

2015-10-14 Thread jcbollinger
On Wednesday, October 14, 2015 at 2:51:42 AM UTC-5, Eddie Mashayev wrote: > > Hi All, > > I have some wired problem with my module to manage MacAfee services. > My lab have around 150 servers and 145 of them works fine with the module > I’ve created. > There are 5 which shows these changes all

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-14 Thread jcbollinger
On Wednesday, October 14, 2015 at 2:39:02 AM UTC-5, Wei Chen wrote: > > Hi, > > If I not using any option, but simply as follow, it works, i.g. the agent > will kept running: > > puppet agent > > > But I could remember, I ran 'puppet agent -t' before and it works. I am > not sure if I remember

Re: [Puppet Users] Re: Puppet 3.8 to 4.2 migration issue...

2015-10-14 Thread Jakov Sosic
On 10/14/2015 02:06 PM, Jakov Sosic wrote: # load configs from hiera $logstash_configs = hiera_hash('logstash::configfiles', undef) if ($logstash_configs) { create_resources(::Logstash::Configfile, $logstash_configs) } $logstash_patterns = hiera_hash('logstash::patternfiles', undef)

Re: [Puppet Users] Re: Puppet 3.8 to 4.2 migration issue...

2015-10-14 Thread Jakov Sosic
On 10/13/2015 05:07 PM, R.I.Pienaar wrote: You can test all your yamls like: for i in $(find /etc/puppetlabs/code/hieradb -name \*.yaml) do /opt/puppetlabs/puppet/bin/ruby -r yaml -e "YAML.load(File.read('$i')) && puts('$i: OK') rescue puts('$i: NOT OK')" done change /etc/puppetlabs/code/h

Re: [Puppet Users] PuppetDB Service Won't Install/Start

2015-10-14 Thread Ken Barber
On Tue, Oct 13, 2015 at 11:13 PM, Dan wrote: > Excellent thanks guys that got me going on the right path looking at the > certs. I'm using puppet apply to build the initial puppet master so the > agent won't have executed when it gets to installing puppetdb so I'll need > to work around this some

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-14 Thread Wei Chen
And here is the puppet.conf on agent side. I haven't changed it except moving the server definition to the [agent]: ]# cat puppet.conf [main] # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The de

[Puppet Users] Puppet saying "changed 'stopped' to 'running'" while the service is running

2015-10-14 Thread Eddie Mashayev
Hi All, I have some wired problem with my module to manage MacAfee services. My lab have around 150 servers and 145 of them works fine with the module I’ve created. There are 5 which shows these changes all the time although the service is in running state already. [root@pingapp ~]# service c

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-14 Thread Wei Chen
Hi, If I not using any option, but simply as follow, it works, i.g. the agent will kept running: puppet agent But I could remember, I ran 'puppet agent -t' before and it works. I am not sure if I remember wrong? What is the difference between these? Maybe the option '-t' is just for oneti