[Puppet Users] Re: fixtures from Puppetfile in puppetlabs_spec_helper

2016-05-13 Thread Nan Liu
On Thursday, May 12, 2016 at 4:39:36 AM UTC-7, Rudy Gevaert wrote: > > Does anyone know a way to integrate rspec-puppet and more > specific puppetlabs_spec_helper to get its fixtures from a Puppetfile? > > It's a PITA to each time update the fixtures file if you update your > Puppetfile in your

[Puppet Users] Re: Problem with order and ensure_resource.

2015-03-30 Thread Nan Liu
On Monday, March 30, 2015 at 6:14:36 AM UTC-7, jcbollinger wrote: On Saturday, March 28, 2015 at 9:37:35 AM UTC-5, Nan Liu wrote: On Friday, March 27, 2015 at 5:49:54 PM UTC-7, Shawn Sterling wrote: I will avoid any module that uses ensure_resources from this point on. Isn't

[Puppet Users] Re: Problem with order and ensure_resource.

2015-03-28 Thread Nan Liu
On Friday, March 27, 2015 at 5:49:54 PM UTC-7, Shawn Sterling wrote: On Friday, March 27, 2015 at 6:45:05 AM UTC-7, jcbollinger wrote: ensure_resource() is not a resource declaration; it is a function call that under some circumstances causes a resource to be declared. It does not

Re: [Puppet Users] user ensure absent :No command localdelete defined for provider

2014-11-03 Thread Nan Liu
On Mon, Nov 3, 2014 at 3:16 AM, Andreas Dvorak andreas.dvo...@gmail.com wrote: I have a modul accounts to create user. That is working fine. Today I would like to remove a user but it does not work. Unfortunately I don't understand the error. Can you please have a look? Error: No command

Re: [Puppet Users] vmware-vcsa module !!!

2014-10-08 Thread Nan Liu
On Wed, Oct 8, 2014 at 1:49 AM, Rakesh Kathpal rkath...@gmail.com wrote: I have a esx host installed and a standalone centos server. what I am trying to do is via foreman - Setting up the module for centos server - So that it can install vcsa on my esx server. I end up getting error as

Re: [Puppet Users] Re: Custom Providers and Third Party Gems

2014-10-03 Thread Nan Liu
On Fri, Oct 3, 2014 at 7:23 AM, jcbollinger john.bollin...@stjude.org wrote: On Thursday, October 2, 2014 12:54:06 PM UTC-5, Chris Pitman wrote: Hey everyone, I'm hoping someone can enlighten me here: Why is it so hard/complicated to use third party gems when developing a custom provider?

Re: [Puppet Users] Custom Providers and Third Party Gems

2014-10-02 Thread Nan Liu
Maybe post to puppet-dev to get the developer's feedback? On Thu, Oct 2, 2014 at 10:54 AM, Chris Pitman cpitm...@gmail.com wrote: Hey everyone, I'm hoping someone can enlighten me here: Why is it so hard/complicated to use third party gems when developing a custom provider? It seems to me

Re: [Puppet Users] Exit Puppet when a custom Hiera backend is not found

2014-10-01 Thread Nan Liu
On Wed, Oct 1, 2014 at 5:42 AM, Vaidik Kapoor kapoor.vai...@gmail.com wrote: Hi Guys, I am using masterless Puppet. And My situation is that I am using a custom Hiera backend called hiera-regex. The process of using it is that you have to have hiera-regex installed on your target machine.

Re: [Puppet Users] Example of how to use require with hiera?

2014-09-19 Thread Nan Liu
On Thu, Sep 18, 2014 at 6:19 PM, Daniel Johnson tekno...@gmail.com wrote: Things like require: File['somefile'] or require: File: somefile both crash, and burn. Not having a require also causes failure as it tries to do things it can't without the prerequisite. After hours of

Re: [Puppet Users] class/subclass relationship ordering and containment

2014-09-19 Thread Nan Liu
TLDR summary: 1. include/require class does not provide containment. 2. anchor is just a empty resource for containment. 3. contain class provides containment without the need for anchor 4. contain may cause unnecessary relationship, so use it only when appropriate 5. The original purpose for

Re: [Puppet Users] Reloading missing gems in a custom provider during the run

2014-09-17 Thread Nan Liu
On Wed, Sep 17, 2014 at 6:48 AM, Karolis Pabijanskas k.pabijans...@gmail.com wrote: I have a custom type and provider that are depending on a rest-client gem. After the pluginsync, when providers get loaded, I do this to avoid it failing: 30 begin 31 require 'rest-client' 32 rescue

Re: [Puppet Users] List of properties in provider

2014-09-17 Thread Nan Liu
On Wed, Sep 17, 2014 at 6:26 AM, Frederik Wagner fner...@gmail.com wrote: Hi everyone, currently I'm writing a custom provider to configure mailing lists. In the provider I'm writing I need to access the list of all properties (set or unset) defined in the type via 'newproperty'. I'm

Re: [Puppet Users] Permission Denied with concatfragments.sh

2014-09-11 Thread Nan Liu
On Thu, Sep 11, 2014 at 5:46 AM, Matthew Hyclak hyc...@gmail.com wrote: I'm facing a very strange problem and I'm honestly not sure where to look. Any pointers would be great. I have a system I'm using the hunner/wordpress module and for some reason when it tries to build the wp-config.php

Re: [Puppet Users] suppress notice for file resource recursive

2014-09-04 Thread Nan Liu
On Thu, Sep 4, 2014 at 1:19 PM, Constantin Wolber constantin.wol...@gmail.com wrote: i searched quite a bit in the documentations and through google but did not find a suitable solution. I am using the file resource to change the ownership of a directory recursively. What happens is that

Re: [Puppet Users] custom facter fact not available from client

2014-09-02 Thread Nan Liu
On Tue, Sep 2, 2014 at 12:20 PM, Mike Reed mjohn.r...@gmail.com wrote: Hello all, I'm attempting to create a custom fact to identify the network to which a node belongs to. Below is the fact definition (I realize this fact isn't complete but wanted to test what I have so far): require

Re: [Puppet Users] How best to accomplish geographic location of clients?

2014-09-02 Thread Nan Liu
On Tue, Sep 2, 2014 at 1:31 PM, randal cobb rco...@gmail.com wrote: Hello all, I have a small problem I'm trying to resolve, and I'm bowing to the masters for suggestions. Our development organization uses VMware and desktop VMs to perform development efforts; I've come up with mechanisms

Re: [Puppet Users] Safe Way to Deploy New Setup?

2014-08-29 Thread Nan Liu
On Fri, Aug 29, 2014 at 7:24 AM, thehailo theha...@gmail.com wrote: I'm taking over a Puppet setup which was built on 2.7 and broken during a huge migration a few months back (before my time, so I don't have much info to go off). I figure since I'm basicaly starting from scratch (literally

Re: [Puppet Users] puppet cloud provisioner used in module

2014-08-26 Thread Nan Liu
On Tue, Aug 26, 2014 at 3:55 AM, John Bencic j...@bencic.net wrote: from what i see the puppet cloud provisioner module seems to be a command line tool does anyone know if there is any way (apart from an exec call) to call the module from another module what i want to do is - define a

Re: [Puppet Users] Cisco: No error, but no Applying

2014-08-22 Thread Nan Liu
On Fri, Aug 22, 2014 at 12:10 PM, Nathan Brito nathan@gmail.com wrote: I'm trying to apply settings on a Cisco Catalyst 2960S through the puppet, but I can not. When I give the device #puppet verbose command, the puppet does not return me error but does not apply the manifest.

Re: [Puppet Users] integration with agent-side password management tool

2014-08-09 Thread Nan Liu
On Thu, Aug 7, 2014 at 10:47 PM, Thomas Müller tho...@chaschperli.ch wrote: We have some requirement to integrated with a password management tool. We only have access to the credentials on the agent-side and we may not put them into a fact. two possible solutions come to mind: - we could

Re: [Puppet Users] Change Hostname on Puppet Master

2014-08-06 Thread Nan Liu
On Wed, Aug 6, 2014 at 12:28 AM, Juan Sierra Pons j...@elsotanillo.net wrote: 2014-08-05 23:23 GMT+02:00 Gabriel Filion gabs...@lelutin.ca: On 05/08/14 01:28 PM, Nan Liu wrote: Please don't resign all client certificates. All you need to do is recreate a puppet master certificate with dns

Re: [Puppet Users] Change Hostname on Puppet Master

2014-08-05 Thread Nan Liu
On Tue, Aug 5, 2014 at 10:11 AM, Gabriel Filion gabs...@lelutin.ca wrote: Hey there, On 05/08/14 10:45 AM, Danny Roberts wrote: We have a requirement to change the Host name of our Puppet Master (not a great idea but sadly out of my control). I could not find any documentation on this

Re: [Puppet Users] Query puppetdb from puppet manifest

2014-07-03 Thread Nan Liu
On Thu, Jul 3, 2014 at 12:00 PM, Schofield dbschofi...@gmail.com wrote: What are most people using to query the puppetdb for data from within puppet manifest files these days? Is there any thing official from PuppetLabs to do this? Best tool at the moment:

Re: [Puppet Users] Server acceptance unit testing

2014-06-17 Thread Nan Liu
On Mon, Jun 16, 2014 at 10:52 PM, John Warburton jwarbur...@gmail.com wrote: Hi Everyone We want to unit test our servers with something like serverspec, but we do not have the coding skills in the team to write ruby/rspec, and we want a low barrier to entry for writing tests Our site

Re: [Puppet Users] puppet agent on esx host

2014-05-14 Thread Nan Liu
kaustubh chaudhari wrote: Can we install puppet agent on ESX host. Not aware of a way to install puppet agent. 1. I am provisioning the hosts with PXE and Kickstart in the post install, i wish to install puppet agent and mange the host with the same. Like hardning, network config etc.

Re: [Puppet Users] Re: rspec-puppet: how to pass undef as parameter value?

2014-04-22 Thread Nan Liu
On Tue, Apr 22, 2014 at 3:08 AM, Remi Ferrand remi.mathieu.ferr...@gmail.com wrote: Thank you for your answer, but with my tests it seems that passing Ruby *nil* value to puppet doesn't result in puppet *undef* value... This is strange considering that puppet *undef* value results in ruby

Re: [Puppet Users] Re: rspec-puppet: how to pass undef as parameter value?

2014-04-22 Thread Nan Liu
On Tue, Apr 22, 2014 at 4:34 AM, Remi Ferrand remi.mathieu.ferr...@gmail.com wrote: Hi Nan, thanks for your answer. With this modification: diff --git a/spec/classes/puppetrspec_spec.rb b/spec/classes/puppetrspec_spec.rb index 9d06d79..80fae58 100644 ---

Re: [Puppet Users] Re: Hiera Performance Testing

2014-04-16 Thread Nan Liu
On Mon, Apr 14, 2014 at 12:35 PM, David Danzilio david.danzi...@gmail.comwrote: Unfortunately, and I probably should've mentioned this in the OP, we're currently stuck on the 2.7 series. You should be able to run puppet master --compile certname and time it to get a coarse measurement of

Re: [Puppet Users] selecting a command in a provider based on class variable?

2014-04-16 Thread Nan Liu
On Fri, Apr 11, 2014 at 7:15 PM, Tim Mooney tim.moo...@ndsu.edu wrote: The tl;dr version: Can anyone point me at an example of an existing provider that selects a particular command based not on a facter fact or whether a particular path exists, but instead on a variable from a puppet class?

Re: [Puppet Users] Emergency Certificate Revocation Procedure

2014-04-08 Thread Nan Liu
On Tue, Apr 8, 2014 at 12:57 AM, Tom t...@t0mb.net wrote: In light of the recently publicised vulnerability in OpenSSL versions provided on RHEL6/CentOS6 http://heartbleed.com/, do you have any recommendations on a procedure to regenerate new master certificates and then revoke, clean and

Re: [Puppet Users] puppet resource for custom providers

2013-12-18 Thread Nan Liu
On Wed, Dec 18, 2013 at 8:33 AM, Giulio Eulisse giulio.euli...@gmail.comwrote: I've written a custom Package provider, however when I try to query for packages using via: puppet resource Package it only shows me those coming via the default provider. Any idea of what I might be doing

Re: [Puppet Users] New to puppet and recieving mcollective error

2013-12-15 Thread Nan Liu
On Fri, Dec 13, 2013 at 2:05 PM, Alan Renouf ajw.ren...@gmail.com wrote: Im new to puppet and installed it in my home lab to mess with, when i installed it i used the hostname rather than FQDN so went back and changed puppet and reran the certificate tool to regenerate the certificates etc,

Re: [Puppet-dev] Re: [Puppet Users] using puppet device

2013-12-12 Thread Nan Liu
On Thu, Dec 12, 2013 at 7:21 AM, Dan Bode bod...@gmail.com wrote: On Thu, Dec 12, 2013 at 1:46 AM, Nan Liu nan@gmail.com wrote: On Wed, Dec 11, 2013 at 8:51 AM, Dan Bode bod...@gmail.com wrote: I had a bit of time to research the existing device code to see if I can use

Re: [Puppet Users] using puppet device

2013-12-12 Thread Nan Liu
devices go to which nodes as you scale out to a large number of device endpoints. *Solution:* The transport model (as created by Nan Liu) seems to get around the issues mentioned above and would allow a pretty clean integration path. For folks not familiar with the transport model

Re: [Puppet Users] using puppet device

2013-12-11 Thread Nan Liu
number of device endpoints. *Solution:* The transport model (as created by Nan Liu) seems to get around the issues mentioned above and would allow a pretty clean integration path. For folks not familiar with the transport model. It uses regular types and providers that accept a parameter

Re: [Puppet Users] Re: validate hiera database against a schema

2013-12-02 Thread Nan Liu
On Mon, Dec 2, 2013 at 9:44 AM, jcbollinger john.bollin...@stjude.orgwrote: On Friday, November 29, 2013 2:58:19 AM UTC-6, David Portabella wrote: is there a way to validate a hiera database against a schema? Not that I know of, no. Did you have a particular schema language in mind?

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-11-20 Thread Nan Liu
On Tue, Jul 16, 2013 at 2:09 AM, Jakov Sosic jso...@srce.hr wrote: On 07/16/2013 02:56 AM, Nan Liu wrote: If that's not the issue, then I'm not sure. I'll try to put together the transport module when I get some spare time. Reference is not a problem, but fetching parameters from

Re: [Puppet Users] Puppet resource details using http api or puppetdb api

2013-11-06 Thread Nan Liu
On Tue, Nov 5, 2013 at 8:50 PM, Riju Francis rijufran...@gmail.com wrote: Is there a way to get the package version or service status using the puppet api calls? Following resource commands show version/status in the output: puppet resource package iptables puppet resource service iptables

Re: [Puppet Users] Puppet resource details using http api or puppetdb api

2013-11-06 Thread Nan Liu
On Wed, Nov 6, 2013 at 10:10 AM, Nan Liu nan@gmail.com wrote: On Tue, Nov 5, 2013 at 8:50 PM, Riju Francis rijufran...@gmail.comwrote: Is there a way to get the package version or service status using the puppet api calls? Following resource commands show version/status in the output

Re: [Puppet Users] Puppet create_resources function unable to enforce resource order

2013-10-24 Thread Nan Liu
On Thu, Oct 24, 2013 at 7:23 AM, MM wilddog.c.1...@gmail.com wrote: So I have a hiera data like this, org.vim.Vim64: name: org.vim.Vim64 ensure: installed provider: npackd vim-pathogen: name: vim-pathogen ensure: installed

Re: [Puppet Users] Re: template - need to fail if referencing undefined var

2013-10-16 Thread Nan Liu
This is essentially the behavior of stdlib pick function. $required_var = pick(hiera(var_a), hiera(var_b)) Which could be improved to allow a custom error message: https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/pick.rb#L24 Nan On Wed, Oct 16, 2013 at

[Puppet Users] Re: [Puppet-dev] Status of Data in modules

2013-10-11 Thread Nan Liu
On Fri, Oct 11, 2013 at 1:09 PM, Eric Sorenson eric.soren...@puppetlabs.com wrote: Thanks to everyone who kicked the tires on the experimental data in modules feature included in Puppet 3.3.0. We got a lot of feedback, some cool proof-of-concept modules, and a definitive conclusion to the

Re: [Puppet Users] Cloud Provisioning

2013-08-28 Thread Nan Liu
On Tue, Aug 27, 2013 at 4:45 PM, Chris McDermott ch...@mcvine.net wrote: I'm looking for ways to manage multiple public cloud resources. Ideally I would like to support the following providers: AWS GCE Rackspace Digital Ocean Linode And I would like to be able to manage everything -

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-15 Thread Nan Liu
On Mon, Jul 15, 2013 at 4:54 AM, Jakov Sosic jso...@srce.hr wrote: OK, I will basically do something like this, but I will implement my own transport-alike resource until you guys standardize this :) Disclaimer, I don't work at Puppet Labs anymore, and this will be a personal project as time

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-13 Thread Nan Liu
Crosspost to puppet-dev to get better feedback. On Sat, Jul 13, 2013 at 7:54 AM, Jakov Sosic jso...@srce.hr wrote: I'm trying to program custom type for managing Couchbase buckets. Problem is that every RW operation to Couchbase cluster (creating, deleting, resizing bucket) requires admin

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Nan Liu
On Fri, Jul 12, 2013 at 7:45 AM, Christian Flamm christian.le.fl...@gmail.com wrote: Hi, I'm having trouble understanding the added value Virtual Resources provide. Let's say I'm having two different modules (that usually are assigned to different agents) that both contain a common resource

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Nan Liu
On Fri, Jul 12, 2013 at 8:11 AM, Christian Flamm christian.le.fl...@gmail.com wrote: Am Freitag, 12. Juli 2013 17:03:11 UTC+2 schrieb Nan Liu: On Fri, Jul 12, 2013 at 7:45 AM, Christian Flamm christian...@gmail.comwrote: Hi, I'm having trouble understanding the added value Virtual

Re: [Puppet Users] Re: [Module team] Much ado about modules

2013-07-08 Thread Nan Liu
On Mon, Jul 8, 2013 at 10:55 AM, root clri.c0t...@gmail.com wrote: Hello. It would be nice if there was a way to browse all modules on Puppet Forge. I can browse all the modules released by Puppet Labs @ http://forge.puppetlabs.com/puppetlabs, (same for any author for whom I know the

Re: [Puppet Users] Fwd: [Module team] Much ado about modules

2013-07-08 Thread Nan Liu
On Mon, Jul 8, 2013 at 9:02 AM, Ashley Penney apen...@gmail.com wrote: On Mon, Jul 8, 2013 at 11:12 AM, Alessandro Franceschi a...@lab42.itwrote: On Saturday, July 6, 2013 1:30:15 AM UTC+2, Nan Liu wrote: On Fri, Jul 5, 2013 at 11:05 AM, Ashley Penney ashley...@puppetlabs.com wrote

Re: [Puppet Users] Fwd: [Module team] Much ado about modules

2013-07-05 Thread Nan Liu
On Fri, Jul 5, 2013 at 11:05 AM, Ashley Penney ashley.pen...@puppetlabs.com wrote: Now that Puppetlabs has a module team we thought we should start trying to keep the community informed as to what we're doing and why on earth we're doing it. I wanted to put together a short update (I'm

Re: [Puppet Users] variables inside variable names

2013-07-03 Thread Nan Liu
On Tue, Jul 2, 2013 at 5:53 PM, Schofield dbschofi...@gmail.com wrote: Given class java::jdk_1_7_u10{ home=/usr/java/jdk-1.7.0-10 } $java = jdk_1_7_u10 $java_home = ${java::$java::home} I would like $java_home to be equal to /usr/java/jdk-1.7.0-10. Is there an elegant way to make

Re: [Puppet Users] passing an environment variable to a command in a provider

2013-06-28 Thread Nan Liu
On Fri, Jun 28, 2013 at 2:03 PM, Tim Mooney tim.moo...@ndsu.edu wrote: We have some custom types providers related to mysql (mysql_user, mysql_grant, mysql_db) written by an admin that's no longer here. The provider just uses the mysql command to run various commands, e.g:

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-27 Thread Nan Liu
On Wed, Jun 26, 2013 at 9:28 PM, Justin Stoller jus...@puppetlabs.comwrote: In puppetlabs_spec_helper/puppet_spec_helper[1] which was based on a file in Puppet[2] the confdir and vardir are explicitly set to '/dev/null' which causes the modulepath you're seeing in Puppet proper. I believe,

Re: [Puppet Users] Conditional statement =,, etc.

2013-06-27 Thread Nan Liu
On Thu, Jun 27, 2013 at 2:22 AM, David Jarosch jarosch.da...@googlemail.com wrote: Hello guys :), I'm kind of new to Puppet and stuck in defining a conditional statement. Here my problem: I want to provide different apt/source.list for different versions of Debian, 6.0.x and 7.0.x, which

Re: [Puppet Users] Re: Node collecting its own exported resource

2013-06-27 Thread Nan Liu
On Thu, Jun 27, 2013 at 5:55 AM, mpouns...@afilias.info wrote: On Thursday, June 27, 2013 7:26:34 AM UTC-4, Ken Barber wrote: Perhaps if you can provide a code snippet like the simplified case above we can take a look at what is going wrong. Also - what version of Puppet are you running?

Re: [Puppet Users] Puppet Enterprise 3.0 now available!

2013-06-26 Thread Nan Liu
On Wed, Jun 26, 2013 at 1:33 AM, DEGREMONT Aurelien aurelien.degrem...@cea.fr wrote: It is difficult to find what's inside Puppet Enterprise (which puppet version, etc...). I'm particularly interested to understand what was changed to have such gain in performances. I believe it's Puppet

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Nan Liu
On Wed, Jun 26, 2013 at 7:23 PM, Amos Shapira amos.shap...@gmail.comwrote: I'm writing my first puppet function rspec test and am having a problem which I don't see how to solve. The function (and the test) involve access to files through the File Server. In order for the function (and the

Re: [Puppet Users] most current method of configuring cisco (and force10?) devices

2013-06-26 Thread Nan Liu
On Tue, Jun 25, 2013 at 3:30 PM, Wolf Noble w...@wolfspyre.com wrote: I've been asked to explore the landscape of network device management via puppet. There are two approaches, either run an agent on the device such as juniper, or manage through a proxy agent. in particular, I'm looking to

Re: [Puppet Users] Certificate problems

2013-06-06 Thread Nan Liu
On Thu, Jun 6, 2013 at 7:52 AM, Andthepharaohs puheli...@gmail.com wrote: Hi all - my head hurts! ;-) I am getting this error on my agent host: err: /Stage[main]/Testfiles/File[/tmp/test1]/content: change from {md5}d41d8cd98f00b204e9800998ecf8427e to

Re: [Puppet Users] Re: puppet master --compile

2013-06-04 Thread Nan Liu
On Tue, Jun 4, 2013 at 7:12 AM, jcbollinger john.bollin...@stjude.orgwrote: - what are the exit statuses that I need to catch? Others will have more specific information there, but I would expect to see status 0 if compilation is successful, else nonzero. Not sure this is all that

Re: [Puppet Users] Run a File resource only if another file is missing

2013-05-31 Thread Nan Liu
On Fri, May 31, 2013 at 1:00 AM, Matthias Saou matth...@saou.eu wrote: There are other ways. None are nice and clean, but a custom fact just for this seems overkill. Here's a quick example of how I've implemented creating a default ~/.gitconfig for users if it doesn't exist, but not modify

Re: [Puppet Users] Issue with Puppet Packages which are installed multiple times

2013-05-28 Thread Nan Liu
On Tue, May 28, 2013 at 3:57 AM, bjoern pohl pohlbjo...@googlemail.comwrote: Hi, hopefully this hasn't been discussed too often, haven't found anything in the group: I'm having some issues when a package gets installed twice ( x86 x64 version). #system is a RHEL5/x64 system. *#following

Re: [Puppet Users] puppet apply -- override node name, module path

2013-05-24 Thread Nan Liu
On Fri, May 24, 2013 at 3:39 PM, Martin Langhoff martin.langh...@gmail.comwrote: Hi folks, testing puppet configs, I have /home/martin/mytestingpuppetconfigs/{manifests,modules} and while working in there, I would like to be able to say something along the lines of: puppet apply

Re: [Puppet Users] Custom function help: works locally, wrong header line format error on master

2013-05-15 Thread Nan Liu
On Tue, May 14, 2013 at 5:14 PM, David Pires david.pi...@gmail.com wrote: I have a custom function ( http://docs.puppetlabs.com/guides/custom_functions.html) working locally using `puppet apply --modulepath=` and a test manifest. The issue I am having is when I run it on a node I get a wrong

Re: [Puppet Users] Running all apt source and update operations first, best practice.

2013-05-09 Thread Nan Liu
On Thu, May 9, 2013 at 11:52 AM, James Kyle li...@jameskyle.org wrote: I've run into several incidences where a module attempts to install a package before the apt::source is added or an update is run. Result is a bunch apt errors and explosions. Basically what should be done is all the

Re: [Puppet Users] Re: Puppermaster certificate expired

2013-05-09 Thread Nan Liu
On Thu, May 9, 2013 at 3:57 PM, Stefan Schulte stefan.schu...@taunusstein.net wrote: On Thu, 9 May 2013 17:10:51 +0200 Lorenzo Salvadorini lorenzo.salvador...@softecspa.it wrote: 2013/5/9 Nicolai Mollerup nicolai.molle...@gmail.com Anyway I think the easy way is to setup some

Re: [Puppet Users] compare md5

2013-05-02 Thread Nan Liu
On Thu, May 2, 2013 at 6:31 AM, Roque Moyano roque@gmail.com wrote: I wanna to download a file and compare the md5 result of it with the md5 file downloaded, is there any way to do it? Is to verify that the file was downloaded correctly. I did it but it doesn't work me exec

Re: [Puppet Users] Puppet 3.1.1, hiera and parameter autoload

2013-05-02 Thread Nan Liu
On Thu, May 2, 2013 at 10:32 AM, David Campos noymn.the.archan...@gmail.com wrote: Hello all, I don't know if I have hit a strange bug or it's just an incorrect interpretation about how parameter autoloading works... Today I have been searching, analysing and about to hit my head against a

Re: [Puppet Users] Re: Windows Firewall Question

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 7:55 AM, Paul Tötterman paul.totter...@gmail.comwrote: As someone who generally hates using execs unless I absolutely have to, I would recommend using the Puppet Labs registry module. I can dig out some examples tomorrow if you like. I'm a bit wary about prodding in

Re: [Puppet Users] Custom type and provider development

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 8:47 AM, damian.folw...@gmail.com wrote: Hi, I'm very new to Ruby, and pretty new to Puppet so apologies if this is a bit Puppet custom type development 101. We currently have a whole bunch of Windows services that are written in .Net. They are really simple and so

Re: [Puppet Users] Pattern for Associating Module versions with Nodes

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 12:42 PM, Mohamed Abbas m.magdi.ah...@gmail.comwrote: I'm wondering what is the canonical way of associating specific versions of a module to a node? Is there a way of doing this in puppet? Let me explain a Use Case of what I'm trying to accomplish: Say we have created

Re: [Puppet Users] Pattern for Associating Module versions with Nodes

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 2:43 PM, Mohamed Abbas m.magdi.ah...@gmail.comwrote: On 3/7/13 1:51 PM, Nan Liu wrote: On Thu, Mar 7, 2013 at 12:42 PM, Mohamed Abbas m.magdi.ah...@gmail.comwrote: I'm wondering what is the canonical way of associating specific versions of a module to a node

Re: [Puppet Users] Custom type and provider development

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 1:38 PM, Nan Liu nan@gmail.com wrote: On Thu, Mar 7, 2013 at 8:47 AM, damian.folw...@gmail.com wrote: Hi, I'm very new to Ruby, and pretty new to Puppet so apologies if this is a bit Puppet custom type development 101. We currently have a whole bunch of Windows

Re: [Puppet Users] Re: Windows Firewall Question

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 5:50 PM, ad adam.denn...@gmail.com wrote: Hey David Below are some examples. Note these are used on embedded Windows 7 (6.1.7601) and I've never tested them on servers (we run mostly Linux servers). I also have examples for XP (5.1.2600) if you want, it's a lot

Re: [Puppet Users] Require with Templates

2013-02-15 Thread Nan Liu
On Fri, Feb 15, 2013 at 11:30 AM, Tiago Cruz tiago.tuxkil...@gmail.comwrote: Hello Nan, So this is the problem: I think that puppet must fail on the fist attempt, but install the package to be sucess on the second try. But not, it always failing: Feb 15 16:37:49 alog228

Re: [Puppet Users] f5 module usage/debugging tips?

2013-02-11 Thread Nan Liu
On Mon, Feb 11, 2013 at 8:27 AM, Christopher Wood christopher_w...@pobox.com wrote: (Following up to my own post for posterity's sake, see xkcd.com/979.) Short form: for me this isn't yet as easy as a file resource but the puppetized management payoff will be worth the work. My issues are

Re: [Puppet Users] Puppet F5: Graceful Server Shutdown

2013-02-07 Thread Nan Liu
On Thu, Feb 7, 2013 at 6:46 AM, MrTeleBird mrteleb...@gmail.com wrote: How can I gracefully shut down my servers of a given pool member for maintenance without disrupting current user sessions using the F5 iControl module??...and of course, allowing for enabling and disabling of the server

Re: [Puppet Users] Any way to force set the type provider? Problem with firewall module and iptables

2013-01-31 Thread Nan Liu
On Wed, Jan 30, 2013 at 10:50 PM, Erno Aapa aapae...@gmail.com wrote: Hi, I have tricky problem and I hope that someone could help me. I'm using puppetlabs-firewall module. My box doesn't have iptables pre-installed. And because there is no /sbin/iptables puppet don't find provider for

Re: [Puppet Users] Puppet Modules from Forge

2013-01-30 Thread Nan Liu
On Wed, Jan 30, 2013 at 9:55 AM, jim stra...@gmail.com wrote: Hello all, I have some questions about the download puppet modules from puppetforge: I'll take puppetlabs-dism as an example, once its installed its located: /etc/puppetlabs/puppet/modules/dism Can this be renamed to something

Re: [Puppet Users] Searching for Nodes

2013-01-24 Thread Nan Liu
On Thu, Jan 24, 2013 at 12:13 PM, Brian Malinconico arjes...@gmail.comwrote: Thank you for the feedback. We are actually using haproxy, and will undoubtedly use the stock book, it was just the example. I guess I am confused as to the pattern. I have looked over the nagios examples many times

Re: [Puppet Users] node_openstack dependency

2013-01-22 Thread Nan Liu
On Tue, Jan 22, 2013 at 6:59 AM, haynes.da...@accenture.com wrote: That was a bug and fixed partially. Now installation happens but puppet commands are broken and I see no manifests files in the new module directories. # puppet module install puppetlabs/node_openstack Preparing to install

Re: [Puppet Users] Puppet Bonding Module: Detect missing values before creation of file or template

2013-01-22 Thread Nan Liu
On Tue, Jan 22, 2013 at 2:53 PM, GregC greg.caldwe...@gmail.com wrote: I have a module that reads and creates bonding configuration with persistent routes, by pulling those values and inserting into my static route file on RH 5.6 like so: % bond_route.each do |bond_route| -% %= bond_route

Re: [Puppet Users] Re: How to watch a logfile in Puppet?

2013-01-21 Thread Nan Liu
On Mon, Jan 21, 2013 at 4:28 PM, Andrey Brindeyev abrinde...@griddynamics.com wrote: I need to deploy Java artifact to Tomcat and run tests. Due Java environment variables change I can't just put WAR file inside Tomcat, entire Tomcat app needs to be restarted. If I start my tests

Re: [Puppet Users] Re: Puppet 2.6 - Custom functions - environments issue

2013-01-19 Thread Nan Liu
On Sat, Jan 19, 2013 at 11:37 AM, xkrantz xkra...@viadeoteam.com wrote: Le vendredi 18 janvier 2013 20:52:03 UTC+1, jcbollinger a écrit : On Friday, January 18, 2013 7:56:20 AM UTC-6, xkrantz wrote: Hello every one, I have looked at a lots of threads in the Puppet User group but I did

Re: [Puppet Users] Does a service resource autorequire its package resource?

2013-01-19 Thread Nan Liu
On Sat, Jan 19, 2013 at 12:03 PM, royhills royhi...@gmail.com wrote: I've seen a couple of instances where a service resource has failed with an error because it's been evaluated before its corresponding package is installed. I can fix this by adding an explicit require to the service

Re: [Puppet Users] f5 module usage/debugging tips?

2013-01-17 Thread Nan Liu
On Thu, Jan 17, 2013 at 2:59 PM, Christopher Wood christopher_w...@pobox.com wrote: The question: how can I get extra debugging/troubleshooting information to figure out why my F5 resources aren't applying? I see my puppet device command claiming to have applied an f5_node and f5_rule, but

Re: [Puppet Users] f5 module usage/debugging tips?

2013-01-17 Thread Nan Liu
On Thu, Jan 17, 2013 at 3:37 PM, Christopher Wood christopher_w...@pobox.com wrote: Usually when I make a change via the gui or tmsh I see the change reflected in the text config right away. Good to know. If you run puppet again does it attempt to make the same changes again? Yes,

Re: [Puppet Users] generate() function help

2012-12-27 Thread Nan Liu
On Thu, Dec 27, 2012 at 10:29 AM, Jakov Sosic jso...@srce.hr wrote: I want to run script which is distributed with my module, but the problem is I have to then hardcode the path to the script in the generate function call, for example: generate(/etc/puppet/**environments/${environment}/**

Re: [Puppet Users] Unit-Testing/test: recommended method?

2012-12-13 Thread Nan Liu
On Thu, Dec 13, 2012 at 11:01 AM, Andreas Haerter list+puppet-us...@mail-node.com wrote: Hi, is there any officially recommended default/standard method to realize Puppet module unit test beyond linting (puppet-lint)? Compatibility to version 3.x is nice but NOT needed. My main

Re: [Puppet Users] Are these the same?

2012-11-26 Thread Nan Liu
On Sun, Nov 25, 2012 at 8:56 AM, Mark static.void@gmail.com wrote: Trying to figure out if these would behave the same or not? Example 1: - class Foo { require Bar someresource { 'baz': …. # This depends on A,B and C being already completed } } class

Re: [Puppet Users] Relationship for a called function?

2012-11-20 Thread Nan Liu
On Tue, Nov 20, 2012 at 1:28 AM, KomodoDave dave.br...@ocado.com wrote: If you define a custom function in *lib/puppet/parser/functions *can it be executed with a *before *or* require *relationship applied? Without this I don't understand the logic behind when it will be called, considering

Re: [Puppet Users] Can I create virtual resources with create_resources function

2012-11-15 Thread Nan Liu
On Thu, Nov 15, 2012 at 2:04 PM, Rajul Vora rajulv...@gmail.com wrote: I am trying to add ability to add virtual users to the git:// github.com/erwbgy/puppet-system.git module as I really want the ability to use virtual users and then combine that with User | group == 'x' and group == 'y' |

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-14 Thread Nan Liu
On Wed, Nov 14, 2012 at 8:56 AM, Gavin Williams fatmc...@gmail.com wrote: Cheers for the response... Looks like I've got some more reading to do to get my head around some of the more complex stuff... I'm not sure why netapp_volume_options is a separate resource. You are already managing the

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-14 Thread Nan Liu
On Wed, Nov 14, 2012 at 9:44 AM, fatmcgav fatmc...@gmail.com wrote: However I'm not sure that having individual params/properties for each volume option is the right way - The list of possible volume options currently stands at 36.. I don't really fancy having to implement a param/property

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread Nan Liu
On Tue, Nov 13, 2012 at 11:19 AM, Gavin Williams fatmc...@gmail.com wrote: After a quick google, came up with: #!/usr/bin/env ruby grades = { Bob = 82, Jim = 94, Billy = 58 } grades.each do|name,grade| puts #{name}: #{grade} end So now all I need to

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread Nan Liu
On Tue, Nov 13, 2012 at 11:58 AM, fatmcgav fatmc...@gmail.com wrote: Looks like overriding the 'insync?' method is the way to go, as I'm only interested in checking/setting property values that are being passed through... Any insync? examples that I could refer to? There's a simple example

Re: [Puppet Users] Re: Puppet F5 Network device

2012-11-02 Thread Nan Liu
On Fri, Nov 2, 2012 at 8:19 AM, Gavin Williams fatmc...@gmail.com wrote: Hmm, not sure if this is by design, but it looks like I had to do a 'puppet agent -t' run on the puppet master in order for puppet device to work... :s I think this is related to:

Re: [Puppet Users] Puppet Network Devices...

2012-11-01 Thread Nan Liu
On Thu, Nov 1, 2012 at 12:12 PM, fatmcgav fatmc...@gmail.com wrote: in the hunt to find a mechanism to manage our new NetApp filer configuration using puppet, I've stumbled across the 'Puppet Network Devices' functionality introduced in 2. 7. The idea looks perfect in principle, however it

Re: [Puppet Users] configuration models..

2012-10-31 Thread Nan Liu
On Wed, Oct 31, 2012 at 9:19 AM, Derick Winkworth ccie15...@gmail.com wrote: Puppet seems geared towards managing hosts where changes can be pushed atomically. What I mean is, suppose some class required another class... an application requires a file to exist. You can actually make that file

Re: [Puppet Users] /sbin/runscript

2012-10-31 Thread Nan Liu
On Wed, Oct 31, 2012 at 11:39 AM, Worker Bee beeworke...@gmail.com wrote: Yes, there is. And, I would be happy to tell you :) When I attempt to install other things like librarian-puppet, it is choking because it is looking for the puppet gem... So, I am trying to figure out what the

  1   2   3   4   5   >