Re: [Puppet Users] Exec python script on puppet clinet running on windows

2012-10-23 Thread Josh Cooper
Hi Viktoriya, On Oct 23, 2012, at 8:09 PM, VT wrote: > I am trying to execute a python script from manifest file on puppet windows > based client: > > exec {'ez_setup.py -U setuptools': > > #command => 'C:\Python27\ez_setup.py -U setuptools', > > cwd => 'C:\Python27', >

[Puppet Users] Exec python script on puppet clinet running on windows

2012-10-23 Thread VT
I am trying to execute a python script from manifest file on puppet windows based client: exec {'ez_setup.py -U setuptools': #command => 'C:\Python27\ez_setup.py -U setuptools', cwd => 'C:\Python27', path => 'C:\Python27;%PATH%', #creates => 'C:\Program,

Re: [Puppet Users] Re: Puppet interacting with CloudStack API (Ruby API client)

2012-10-23 Thread Jeff McCune
Ray, Are you the author of Class[Csapiclient] ? If so, the only suggestion I have is to try and find API calls that return the data you need in a quicker manner. The way the catalog and the resource abstraction layer operate is built on top of an assumption of synchronous and relatively fast sys

[Puppet Users] Re: Puppet interacting with CloudStack API (Ruby API client)

2012-10-23 Thread Ray
root@puppet30client:~# puppet agent --evaltrace --trace --test --configtimeout 5m Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/centos_version.rb Info: Loading facts in /var/lib/puppet/lib/facter/network-bonds.rb Info: Loading facts in /var/lib/puppet/lib/facter/powerst

[Puppet Users] Git clone manifest for windows puppet clinet

2012-10-23 Thread VT
Can anybody help to come up with a manifest file, which should instruct a puppet client running on windows to clone a repository from github directly to puppet client? Great thanks for help! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To v

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-10-23 Thread Niels Abspoel
Hi Darin, To save you some time: can you take a look at this package: Somebody on opensuse build service made a very old ruby-shadow package and I updated the spec file for ruby-shadow 2.1.4. I also cleaned the old sources and patches. https://build.opensuse.org/package/show?package=ruby-shadow

[Puppet Users] Re: How to remove data from hiera programtically

2012-10-23 Thread llowder
On Tuesday, October 23, 2012 4:22:59 PM UTC-5, Nishant Jain wrote: > > Hello Everybody, > Is it possible to store and remove data from > hiera(the yaml files) programatically ??? > Sure, just use one of the YAML libraries and whatever language you want. -- You recei

[Puppet Users] How to remove data from hiera programtically

2012-10-23 Thread Nishant Jain
Hello Everybody, Is it possible to store and remove data from hiera(the yaml files) programatically ??? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.co

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-10-23 Thread Niels Abspoel
I see, just finished puppet 3.0.1 package in my home projects and made a request to systemsmanagement:puppet:devel to be included. To make it fully functional we need ruby-shadow package in some suse repo... maybe we can use the same sources as :rubygem-hiera and adjust it for ruby-shadow https

Re: [Puppet Users] FreeBSD 3.0 Port

2012-10-23 Thread Worker Bee
Can you direct me to a VERY beginner's guide for hiera? I have never used it and I need to be able to test the functionality before I deploy to my end users. Is there any way to quickly verify the functionality? Thanks a MILLION! Bee On Tue, Oct 23, 2012 at 2:58 PM, Michael Stahnke wrote: > On

Re: [Puppet Users] FreeBSD 3.0 Port

2012-10-23 Thread Michael Stahnke
On Tue, Oct 23, 2012 at 11:14 AM, Worker Bee wrote: > Hi Everyone; > > So, the FreeBSD Port is now available. However, I am a bit confused about > hiera. The Makefile does not list rubygem-puppet-hiera as a requirement for > the agent. This IS required in the redhat spec files for the agent. S

Re: [Puppet Users] Re: Failed to set group to '0': Operation not permitted

2012-10-23 Thread Stefan Schulte
On Mon, Oct 22, 2012 at 03:05:40PM -0700, jcbollinger wrote: > I'm not sure why that inherently means you don't have root, but whatever. > > So, supposing the issue is with > File["/home/user/rabbitmq-server-generic-unix-2.8.7.tar.gz"], it's not > immediately clear to me whether Puppet's behavio

Re: [Puppet Users] FreeBSD 3.0 Port

2012-10-23 Thread Worker Bee
Hi Everyone; So, the FreeBSD Port is now available. However, I am a bit confused about hiera. The Makefile does not list rubygem-puppet-hiera as a requirement for the agent. This IS required in the redhat spec files for the agent. So, can someone clear up for me, is this needed on boxes that wi

Re: [Puppet Users] Is the assignment of variables executed before the package resource?

2012-10-23 Thread Apple Wang
Hi, David Thanks for your reply. I have been more clear about the compiling of puppet. Do you have any good method to get the package version after installing if with Package resource? I need the version to configure the my.cnf file. I know a method to get the version of packages that already in

Re: [Puppet Users] About execution sequence in puppet.

2012-10-23 Thread Erik Dalén
If you are running with a master/slave setup functions are executed on the puppet master as part of the compilation. So it won't really work, and there is no way to change the ordering. To execute that on the client you will need to create a custom fact, but it will always be executed before th

Re: [Puppet Users] puppet ca generate --dns-alt-names

2012-10-23 Thread Jeff McCune
On Tue, Oct 23, 2012 at 2:24 AM, Jonathan Gazeley < jonathan.gaze...@bristol.ac.uk> wrote: > I'm trying to generate a CA certificate that will be used on multiple > puppet masters, accessed by round robin DNS. > > The individual nodes have their own hostnames and the round robin name is > puppet.r

[Puppet Users] About execution sequence in puppet.

2012-10-23 Thread Apple Wang
Hi, all I have some questions about the execution sequence in puppet. *The background:* I want to install mysql package and configure /etc/my.cnf according to the version of mysql. So I wrote an user defined function to get mysql rpm version. Codes are as follows. ---

Re: [Puppet Users] Puppet interacting with CloudStack API (Ruby API client)

2012-10-23 Thread Jeff McCune
On Tue, Oct 23, 2012 at 7:20 AM, Ray wrote: > Hi, > > I want Puppet to talk to the CloudStack API. CloudStack has many > asynchronous API calls and Puppet's catalog run tends to expire even during > simple tasks such as adding port forwarding rules: > Is it the catalog run, or the catalog retrie

Re: [Puppet Users] Disabling root user

2012-10-23 Thread Ben McCann
Thanks Christopher. That worked. It looks like either an asterisk or an exclamation mark will work as I see either in /etc/shadow for various accounts. Thanks, Ben On Tuesday, October 23, 2012 4:44:40 AM UTC-7, Christopher Wood wrote: > > I don't believe you'll be able to remove the root user

[Puppet Users] regex not working in node.pp

2012-10-23 Thread Johnathan Phan
Hi everyone, My puppet master version is 2.7.6. The client runs on 2.6.17. the clients hostname is java1.test.example.com. I have used the following guide to setup resolv.conf properties. http://projects.puppetlabs.com/projects/1/wiki/resolv_conf_patterns I have setup the following record in n

[Puppet Users] Puppet interacting with CloudStack API (Ruby API client)

2012-10-23 Thread Ray
Hi, I want Puppet to talk to the CloudStack API. CloudStack has many asynchronous API calls and Puppet's catalog run tends to expire even during simple tasks such as adding port forwarding rules: root@puppet30client:~# puppet agent --test Info: Retrieving plugin Info: Loading facts in /var/lib/

Re: [Puppet Users] Is the assignment of variables executed before the package resource?

2012-10-23 Thread David Schmitt
Hi, the function is executed on the puppet master at the time of compiling the catalog. The catalog is then transferred to the agent where all resources are applied. Depending on your setup this might not only be two different stages in the process, but also two different machines! This

Re: [Puppet Users] Re: puppet freezes on FUTEX_WAKE_PRIVATE

2012-10-23 Thread Richard Leitner
Hi everybody, just for info: I solved this issue after hours of strace'ing, tcp- and ssldump'ing. And as you may expect it was simple. In my case the /usr/share/puppet-dashboard/bin/external_node timed out, because it was trying to connect to ::1 port 3000 (the dashboard). The timeout was caused

[Puppet Users] Is the assignment of variables executed before the package resource?

2012-10-23 Thread Apple Wang
Hi, all I'm confused about the execution sequence in puppet. *The background:* * * I want to get mysql package version after installing it with the Package resource. And I'll configure /etc/my.cnf according the version of mysql package. The code is as following.

Re: [Puppet Users] Variables and autoloading

2012-10-23 Thread Fabrice Bacchella
> On Mon, Oct 22, 2012 at 12:37 PM, jcbollinger > wrote: > $param1 = 'default1', > $param2 = 'default2' ) { > # declarations > } > > I recommend some variation on > > class mymodule::foo { > $param1 = hiera('foo::param1', 'default1') > $param2 = hiera('foo::param2', 'default2') > #

[Puppet Users] Re: User management

2012-10-23 Thread siva kumar
Dear Sunner, Good Morning ! I am shiva . Right now i m working with Puppet User Management Module. And i saw your post the same kind of module i looking for. Its very usefull if you share you user module to me, Thanks Thanks & Regards, Shiva... On Thursday, November 25, 2010 12:54:50 A

Re: [Puppet Users] custom type with array property?

2012-10-23 Thread Jakov Sosic
On 10/23/2012 01:47 AM, Stefan Schulte wrote: > Yeah I also consider this a bug. There is a ticket for the issue though > http://projects.puppetlabs.com/issues/10237 Yeah that's it! I've added a link as a comment to my type.rb's Thank you Stefan! -- You received this message because you are su

Re: [Puppet Users] Disabling root user

2012-10-23 Thread Christopher Wood
I don't believe you'll be able to remove the root user without massive system breakage due to how it's an essential system account. For example, your PID 1 likely runs as root. Perhaps try something like this untested fragment, given how the star is sometimes used to disable a password: user {

Re: [Puppet Users] Storeconfig and mcollective using activemq

2012-10-23 Thread Andrew Stangl
RE: puppetdb and pgsql: it all depends on how big your environment is - the suggestion for puppetdb is, if you have fewer than 100 nodes, that you use the built in haskell/cloujure db - I've ended up doing this, since the env is fairly small where we've got this configured, and the storeconfigs

[Puppet Users] puppet ca generate --dns-alt-names

2012-10-23 Thread Jonathan Gazeley
I'm trying to generate a CA certificate that will be used on multiple puppet masters, accessed by round robin DNS. The individual nodes have their own hostnames and the round robin name is puppet.resnet.bris.ac.uk or puppet.resnet.bristol.ac.uk (the twin domain name for Bristol university is h

Re: [Puppet Users] Disabling root user

2012-10-23 Thread joe dhonny
Hi Ben, Am 23.10.2012 09:08, schrieb Ben McCann: > However, I don't believe the root user is logged in. Is it not possible to > delete the root user? Is there something else I should do such as > disabling its password? > The root user can not be removed. The default settings on ubuntu are not

[Puppet Users] Disabling root user

2012-10-23 Thread Ben McCann
I have some machines running Ubuntu that have a root user on them setup by my web host. I'd like to disable the root user. I tried: user { 'root': ensure => absent, } But got the error message: err: /Stage[main]/Users/User[root]/ensure: change from present to absent failed: Could not d