[Puppet Users] Re: Is there a way to publish a module via the Forge API?

2016-05-20 Thread Amos Shapira
vis-ci/dpl#puppet-forge > > > Corey > > On Thursday, May 19, 2016 at 9:51:38 PM UTC-7, Amos Shapira wrote: >> >> Hello, >> >> I didn't find a way to upload a module to the Forge using the Forge API. >> Is this possible? >> >> I find

Re: [Puppet Users] Is there a way to publish a module via the Forge API?

2016-05-20 Thread Amos Shapira
y neat when you have a > distributed team and can't/don't want to share the forge password with > everyone. > > I'm sure you could get the same thing working with other services than > GitHub/Travis CI, those are just the pair I know. > > On Friday, May 2

[Puppet Users] Is there a way to publish a module via the Forge API?

2016-05-19 Thread Amos Shapira
Hello, I didn't find a way to upload a module to the Forge using the Forge API. Is this possible? I find it a bit weird that a tool which advocates "infrastructure as code" doesn't cater for options to script module uploads. Am I missing something? Thanks. -- You received this message becau

Re: [Puppet Users] Re: Getting augeas type to working on OS X

2016-04-27 Thread Amos Shapira
Thanks. I'm out of office until Friday, then I'll test that. On Wednesday, 27 April 2016 10:35:06 UTC+10, David Lutterkort wrote: > > On Mon, Apr 25, 2016 at 10:07 PM, Amos Shapira > wrote: > >> Correction - Puppet Agent is version 4.x of Puppet, which we haven'

[Puppet Users] Re: Getting augeas type to working on OS X

2016-04-25 Thread Amos Shapira
Correction - Puppet Agent is version 4.x of Puppet, which we haven't migrated to, so I can't use that package yet. On Sunday, 24 April 2016 12:19:58 UTC+10, Amos Shapira wrote: > > Thanks. > > Since running Puppet is the ultimate goal, I'll try to go that way. They

[Puppet Users] Re: Getting augeas type to working on OS X

2016-04-23 Thread Amos Shapira
ckage - that has ruby-augeas (and all the other goodies that make up > puppet-agent) in it. > > David > > On Thursday, April 21, 2016 at 9:28:46 PM UTC-7, Amos Shapira wrote: >> >> More updates found just after posting this (why do all the useful links >> appear only

[Puppet Users] Re: Getting augeas type to working on OS X

2016-04-21 Thread Amos Shapira
13 and might be abandoned): https://github.com/berndmweber/open-source-puppet-master/blob/master/modules/puppet/README.md On Friday, 22 April 2016 14:23:10 UTC+10, Amos Shapira wrote: > > Hello, > > I'm working on automating of OS X vmware build using Puppet. > > I use Pa

[Puppet Users] Getting augeas type to working on OS X

2016-04-21 Thread Amos Shapira
Hello, I'm working on automating of OS X vmware build using Puppet. I use Packer to build the base image (based on excellent work done in https://github.com/timsutton/osx-vm-templates) and take the opportunity to pre-install Puppet, Homebrew and gems used by Puppet itself like hiera, hiera-eya

Re: [Puppet Users] Re: Unplanned outage on apt.puppetlabs.com

2015-11-17 Thread Amos Shapira
your apt cache. > > Morgan > > On Tue, Nov 17, 2015 at 2:51 PM Amos Shapira > wrote: > >> I arrived to this thread because I was looking for a status update about >> the following "apt-get update" failure on all our servers: >> >> *W: Failed to

[Puppet Users] Re: Unplanned outage on apt.puppetlabs.com

2015-11-17 Thread Amos Shapira
I arrived to this thread because I was looking for a status update about the following "apt-get update" failure on all our servers: *W: Failed to fetch http://apt.puppetlabs.com/dists/trusty/main/source/Sources Hash Sum mismatch* *W: Failed to fetch http://apt.puppetlabs.com/dists/trusty/mai

[Puppet Users] Re: why doesn't 'Package <| provider == "apt" |>' work for me?

2015-03-11 Thread Amos Shapira
On Thursday, 12 March 2015 00:39:53 UTC+11, jcbollinger wrote: > > > > On Tuesday, March 10, 2015 at 10:30:48 PM UTC-5, Amos Shapira wrote: >> >> Hi, >> >> I'm running into the common issue of having to force an "apt-get update" >> before i

[Puppet Users] why doesn't 'Package <| provider == "apt" |>' work for me?

2015-03-10 Thread Amos Shapira
Hi, I'm running into the common issue of having to force an "apt-get update" before installing packages (in my case - because the base EC2 AMI is old and I need it to pick newer package versions). I ended up doing the usual: exec { 'apt-get update': path => '/usr/bin/', } -> Package <|

Re: [Puppet Users] Is there a way to find unused puppet code (2.7)?

2014-02-08 Thread Amos Shapira
can do: > find /path/to/modules -amin +30 > > I have not tried it yet,but I suppose it works > > Regards, > El 09/02/2014 02:53, "Amos Shapira" > > escribió: > >> Hello, >> >> Is there a way to systematically find all modules we have which ar

[Puppet Users] Is there a way to find unused puppet code (2.7)?

2014-02-08 Thread Amos Shapira
Hello, Is there a way to systematically find all modules we have which aren't used? Two reasons for this question: 1. We use librarian-puppet to manage "external" modules and would like to find which of them can we remove. 2. We did some major refactoring over the years, in particular

[Puppet Users] Weird situation - exec fails but Puppet 2.7 exits 2

2013-11-18 Thread Amos Shapira
Hello, We are a long time Puppet 2.7 shop (installing latest Puppet 2.7 gems on deployments. In this particular build it picked up Puppet 2.7.23) and just discovered the following: Executing a psql command like: build 12-Nov-2013 04:30:16debug: /Stage[main]/Buildeng_postgres::Service/Se

Re: [Puppet Users] How to force generation of ca_crl.pem?

2013-07-08 Thread Amos Shapira
I've verified that the "puppet cert generate.." command generates the files which are required to get the Apache daemon up and running. Thanks Ken. On Saturday, 6 July 2013 13:03:12 UTC+10, Amos Shapira wrote: > > Thanks very much Ken, > > I'm away from the comp

Re: [Puppet Users] How to force generation of ca_crl.pem?

2013-07-05 Thread Amos Shapira
Thanks very much Ken, I'm away from the comp for the weekend, I'll try these and get back to you as soon as I can. On Friday, 5 July 2013 22:08:37 UTC+10, Ken Barber wrote: > > If it helps I did a bit of a Gist walkthrough of the full cert > recreation etc. using puppet cert generate here: > h

[Puppet Users] Re: How to force generation of ca_crl.pem?

2013-07-04 Thread Amos Shapira
BTW - Looking at the source code for Puppet 2.7.22, I see that the method which does all this magic is "setup_ssl" in class Puppet::Applcation::Master. Now if any ruby guru could help me execute this method from the command line I might be set, so far I failed to make this happen. -- You recei

[Puppet Users] How to force generation of ca_crl.pem?

2013-07-04 Thread Amos Shapira
Hello, I have a standard Puppet 2.7 configuration installed from Gem on Ubuntu 12.04, running behind Apache. I'm testing the reprovisioning of the puppet master from scratch in Vagrant and ran into a little snug - apache configuration points to a puppet ca_crl.pem file which doesn't exist, so

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

2013-06-28 Thread Amos Shapira
n Wed, Jun 26, 2013 at 8:14 PM, Nan Liu wrote: > >> On Wed, Jun 26, 2013 at 7:23 PM, Amos Shapira wrote: >> >>> I'm writing my first puppet function rspec test and am having a problem >>> which I don't see how to solve. >>> >>> The fu

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

2013-06-26 Thread Amos Shapira
Hello, 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 test) to work I need to pass "--fileserverconf=fileserver.conf" paramet

Re: [Puppet Users] Re: Exec onlyif/unless with internal functions instead of external commands?

2013-06-26 Thread Amos Shapira
Puppet hasn't really been designed to be low overhead (with more of a > > focus on simplicity) and i think the least of it's performance problems > > come from the fact that it uses an external fork for exec checks. > > > > On Sunday, June 23, 2013 8:3

[Puppet Users] Re: Exec onlyif/unless with internal functions instead of external commands?

2013-06-26 Thread Amos Shapira
; view on performance. Performance and resource optimisation should be up there at the top of the feature list just like security. > On Sunday, June 23, 2013 8:39:57 PM UTC+10, Amos Shapira wrote: >> >> Hi, >> >> A little annoyance about "exec" that bothers m

[Puppet Users] Exec onlyif/unless with internal functions instead of external commands?

2013-06-23 Thread Amos Shapira
Hi, A little annoyance about "exec" that bothers me is that there is no way to use "unless"/"onlyif" except with external commands, even if a simple Ruby function could be used to execute the test. e.g. "onlyif => 'test -d /data'" will fork and exec "test" to do a simple stat(2) which can be d

[Puppet Users] Re: installing carbon / passing PYTHONPATH to pip package provider?

2013-06-06 Thread Amos Shapira
ps. > > - Ben > > On Wednesday, June 5, 2013 9:30:56 PM UTC-7, Amos Shapira wrote: >> >> My environment: Ubuntu LTS 12.04, carbon ( >> https://github.com/graphite-project/carbon) 0.9.9 installed using "pip". >> >> I just learned why when I run

[Puppet Users] installing carbon / passing PYTHONPATH to pip package provider?

2013-06-05 Thread Amos Shapira
My environment: Ubuntu LTS 12.04, carbon (https://github.com/graphite-project/carbon) 0.9.9 installed using "pip". I just learned why when I run "pip freeze" on a system I don't see the "carbon" package even when it installed successfully - I should run it with "PYTHONPATH=/opt/graphite/lib/ pi

Re: [Puppet Users] Purge puppet's reports

2013-05-20 Thread Amos Shapira
tmpwatch/tmpreaper (for Ubuntu) is first thing I though about too - but the vagn has a good point about better keeping the latest report from each server, which justifies using his script. On Sunday, 3 February 2013 04:17:30 UTC+11, Ken Barber wrote: > > tmpwatch is also a good approach: > http

[Puppet Users] Re: Installing Microsoft Visual Studio 2010 with Puppet?

2013-04-03 Thread Amos Shapira
for Studio 2012. Still waiting to hear whether someone has already solved this. On Wednesday, April 3, 2013 11:53:25 AM UTC+11, Amos Shapira wrote: > > Hello, > > Has anyone here had experience using Puppet (2.7 for now) to install > Microsoft Visual Studio 2010 (or even 201

[Puppet Users] Installing Microsoft Visual Studio 2010 with Puppet?

2013-04-02 Thread Amos Shapira
Hello, Has anyone here had experience using Puppet (2.7 for now) to install Microsoft Visual Studio 2010 (or even 2012, for that matter) on Windows Server 2008? So far I didn't find anything on the web, the forge or Github. Thanks. -- You received this message because you are subscribed to t

[Puppet Users] Re: daemontools service provider doesn't support "restart" parameter?

2012-12-06 Thread Amos Shapira
I copied the question to issue http://projects.puppetlabs.com/issues/18021 since I think I stumbled on a bug. -- 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.com/d/msg/puppet-users

[Puppet Users] daemontools service provider doesn't support "restart" parameter?

2012-12-05 Thread Amos Shapira
Hello, Using Puppet 2.7(.20), I'm trying to override the "restart" command of a service controlled by daemontools provider using: service { 'bamboo-agent': hasrestart => false, provider => 'daemontools', restart => '/bin/touch /var/run/needs-restart', ... } And ... notify => Service['bam

[Puppet Users] Selectively sharing stored configuration among puppet masters?

2012-10-11 Thread Amos Shapira
Hello, We've just split off using another groups' puppet master and started using our own master. One thing this limits us with is that we want them to start backing up a couple of our servers using their Bacula server. Their Bacula server is configured using Stored Configuration from their pu

[Puppet Users] Concatanating result of custom function to a string

2012-10-06 Thread Amos Shapira
Hello, I'm working on execution of puppet's "puppet cert generate ...--dns_alt_names=name1,name2,name2" using Puppet 2.7.19 and didn't find a way to figure out the following: I'd prefer to keep the list of "dns_alt_names" in a puppet array and join() them when I build the command string. E.g.

Re: [Puppet Users] Removing intermediate variables in calculation

2012-10-03 Thread Amos Shapira
Thanks John. At least I know there is no way to improve my code. I prefer to try to keep logic in the .pp files and out of the templates, just to make it easier to find. On Thursday, October 4, 2012 1:02:35 AM UTC+10, jcbollinger wrote: > > > > On Tuesday, October 2, 2012 10:10:13 AM UTC-5, Guzmá

Re: [Puppet Users] Removing intermediate variables in calculation

2012-10-03 Thread Amos Shapira
27; from > url='${baseurl}'": } > } > > But as I said I'm fairly new with puppet, did not tried above code. > > On Mon, Oct 1, 2012 at 10:28 PM, Amos Shapira > > > wrote: > >> Hello, >> >> I have a small Puppet 2.7 module to co

[Puppet Users] Removing intermediate variables in calculation

2012-10-01 Thread Amos Shapira
Hello, I have a small Puppet 2.7 module to configure Sonatype Nexus Professional. The module takes, among other things, a baseurl in the form of "http://example.com/path"; and I'd like it to extract the "/path" from that variable into a separate variable IF an optional "path" variable haven't

[Puppet Users] A simple solution to the "deep directory tree" problem

2012-04-26 Thread Amos Shapira
Hello, Like many others, I once again had to deal with creation of deep directory trees with puppet. I did the usual: file { [ "/a", "/a/b/", "/a/b/c"...]: ensure => directory } And again got sick of it. I still didn't find a good answer for it on the web so here is what I came up with in a

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-29 Thread Amos Shapira
Thanks Ken, I think I may have been confused with the pre-2.7.8 puppet still being installed before this upgrade was pushed out. Once the later version was installed the manifest seemed to work right. For instance the first opsview run on a server will complain about the missing config file bu

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-29 Thread Amos Shapira
Thanks Luke (and sorry for late reply). This sort of addresses another question I haven't got around to investigate - the question is whether Puppet has functions/facts to tell me things like whether a particular provider is available or not. I guess it can be somehow scripted. But as you say

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-22 Thread Amos Shapira
finished doing all sorts of tweaks to the system, please start puppet and take these tweaks into consideration". Is that possible? Cheers, --Amos On Wednesday, March 21, 2012 1:51:48 PM UTC+11, Gary Larizza wrote: > > > > On Wed, Mar 21, 2012 at 1:11 PM, Amos Shapira wrote:

[Puppet Users] Suggestion - puppet preload stage?

2012-03-20 Thread Amos Shapira
Hello, I encounter issues regarding puppet "self update" that I'm sure are not uncommon: 1. When puppet version updates it doesn't restart to run the rest of the manifest with the new version. 2. When a new provider is installed (or extra configuration is done to enable an existing provider), pupp

[Puppet Users] re-colorise puppet logs

2010-09-07 Thread Amos Shapira
add a new page). I offer it under GPL v3. #!/usr/bin/perl # colorpuppetlog: colorise puppet log according to the severity mentioned in the message # Copyright (c) Amos Shapira, September 8th 2010. # Licence: GPLv3 use strict; use warnings; use Term::ANSIColor; my %colormap = ( 'info' =

[Puppet Users] Re: quoting special characters in puppet.conf

2010-08-29 Thread Amos Shapira
ugh before reaching "diff" and by which programs? Thanks, --Amos On Aug 27, 9:42 pm, Darren Chamberlain wrote: > * Amos Shapira [2010/08/27 01:06]: > > > e.g. here is what I tested again right now: > > >     diff_args = -ubB -I \$HeadURL > > > and here are

[Puppet Users] Re: quoting special characters in puppet.conf

2010-08-27 Thread Amos Shapira
value for $HeadURL Thanks, --Amos On Aug 25, 11:15 pm, Tom Duckering wrote: > I believe the escape character is simply \ > > I use it to escape quotes - \" > > On 25 Aug 2010, at 12:35, Amos Shapira wrote: > > > Patrick, > > > I see only a quote of my que

[Puppet Users] Re: quoting special characters in puppet.conf

2010-08-25 Thread Amos Shapira
Patrick, I see only a quote of my question in your reply. Do you have an answer? Thanks. --Amos On Aug 25, 6:28 pm, Patrick wrote: > On Aug 24, 2010, at 11:52 PM, Amos Shapira wrote: > > > Hello, > > > I'd like to pass the following flags to diff through pup

[Puppet Users] quoting special characters in puppet.conf

2010-08-24 Thread Amos Shapira
Hello, I'd like to pass the following flags to diff through puppet: -urbB -I $Id -I $HeadURL -I $URL But when I try to set diff_args in /etc/puppet/puppet.conf like this: diff_args = -ubB -I \$Id -I \$HeadURL -I \$URL Puppet tries to interpolate the $Id and fails. How can I quote the '$'

[Puppet Users] Configuring DRBD

2009-09-09 Thread Amos Shapira
Hello, Does anyone here have a module to configure DRBD (http:// www.drbd.org/) using puppet? It's not supposed to be too complicated, but I'd rather not re-invent this wheel if possible. The module should probably allow passing all the parameters available in drbd.conf, and/or possibly allow q

[Puppet Users] Re: Certificates were not trusted: certificate verify failed

2009-01-13 Thread Amos Shapira
Oops. Replying to my own post, after re-reading one of the messages in this group a few more times (http://groups.google.com/group/puppet- users/msg/559819ffc956337e) while waiting for my experiments to run I finally realised that it's relevant to my too. It turned out that the $fileserver and $u

[Puppet Users] Certificates were not trusted: certificate verify failed

2009-01-13 Thread Amos Shapira
Hello, We are installing some Xen guests using puppet 0.24.5-1.el5 (from http://people.redhat.com/dlutter/yum/rhel/5/x86_64/) on CentOS 5. The Xen host is also a CentOS 5 running the same version for a puppet master. We have two such identical Xen hosts (running puppet master each). The first on