[Puppet Users] Re: Dependancy Problems

2013-08-19 Thread Sneha More
Hi, I think you can solve this by resolving dependancy in init.pp You may try something like this. init.pp class openstack { include openstack::install class {'nova::controller': require = Class['openstack::install'], } On Saturday, August 17, 2013 2:11:31 AM UTC+5:30, towen27

[Puppet Users] Puppet environments vs App environments

2013-08-19 Thread JeremyCampbell
I've setup dynamic environments using git but I'm confused about how environments are actually supposed to be used. We're a small ISP and have freeradius servers, VPN servers and web servers. I've been using environments to enable me as the sysadmin to build and test new manifests/modules

[Puppet Users] Re: Learningpuppet

2013-08-19 Thread Sneha More
Hi, I think you have confusion about structure. Structure should be: human: |- manifests |- init.pp |- user.pp 1. init.pp - Contains a class definition. (every class

[Puppet Users] Re: Installing Puppet 3 client on a Raspberry Pi

2013-08-19 Thread Martijn
There's an experimental 3rd-party apt repo herehttp://apt.cegeka.be/puppetlabs/, that seems to work for me. Corresponding instructions on how to build those packages yourself are in this blog posthttp://www.dammekens.be/2013/04/04/packaging-puppet-3-1-1-for-arm-raspberry-pi/ . Note my comment

[Puppet Users] Re: Possible for each user to have their own testing environment?

2013-08-19 Thread myeazel
Git branching and environments is exactly what we did to solve this problem. We are actually using gitolite which allows us to lock down who can push to certain branches. So anyone can create their own branch, push that up (which creates the proper directories through git hooks) and test with

[Puppet Users] Re: Puppet environments vs App environments

2013-08-19 Thread jcbollinger
On Monday, August 19, 2013 1:59:46 AM UTC-5, JeremyCampbell wrote: I've setup dynamic environments using git but I'm confused about how environments are actually supposed to be used. We're a small ISP and have freeradius servers, VPN servers and web servers. I've been using environments

Re: [Puppet Users] using GIT for environments

2013-08-19 Thread Jim Toth
On Sun, Aug 18, 2013 at 9:04 PM, me 1 solarflo...@gmail.com wrote: On Sunday, August 18, 2013 6:13:38 PM UTC-4, Jim Toth wrote: There are a few ways to go; probably the best way is to set up a bare repository that you push and pull from in both places, but I'd probably add the development

Re: [Puppet Users] Possible for each user to have their own testing environment?

2013-08-19 Thread Sandra Schlichting
Dear Brian and John, Thanks a lot for your replies. I was under the impression that site.pp had to be in the environment, which I now see it doesn't have to. =) What I don't quite understand is though is the following: There are four forbidden environment names: - main - master

Re: [Puppet Users] puppet module install simondean/iis gives error Error: cert already in hash table

2013-08-19 Thread Robert Redgwell
For what it's worth, I had the same problem and figured out the particular cert on Windows 7 (64bit) that was causing the issue: -- [Subject] CN=Thawte Timestamping CA, OU=Thawte Certification, O=Thawte,

[Puppet Users] Running classes alone

2013-08-19 Thread Matt S
Hello! I've got a manifest that involves downloading and updating a bunch of different packages using apt, pip, etc. One of my apt-dependencies, dnsmasqhttp://www.thekelleys.org.uk/dnsmasq/doc.html, redirects the machine's DNS. Any modules currently running at that time that use the

Re: [Puppet Users] Mcollective: remote commands

2013-08-19 Thread Cristian Falcas
what the mcollective client can do is limited to the agents installed on the other side (server side). Puppet lists those agents as being available: http://projects.puppetlabs.com/projects/mcollective-plugins/wiki I don't think that there is an agent that can run random remote commands. On

Re: [Puppet Users] Possible for each user to have their own testing environment?

2013-08-19 Thread David Schmitt
On 2013-08-19 16:23, Sandra Schlichting wrote: Dear Brian and John, Thanks a lot for your replies. I was under the impression that site.pp had to be in the environment, which I now see it doesn't have to. =) What I don't quite understand is though is the following: There are four

Re: [Puppet Users] Running classes alone

2013-08-19 Thread David Schmitt
On 2013-08-19 14:06, Matt S wrote: Hello! I've got a manifest that involves downloading and updating a bunch of different packages using apt, pip, etc. One of my apt-dependencies, dnsmasq http://www.thekelleys.org.uk/dnsmasq/doc.html, redirects the machine's DNS. Any modules currently running

[Puppet Users] Re: Puppet environments vs App environments

2013-08-19 Thread JeremyCampbell
Hi John, Thank you for a most well considered response given my level of understanding. I'd much appreciate an example of a system sliced along 2 or more different dimensions that need to be flattened into one, this is the only part not clear to me. Regards, Jeremy. On Monday, August 19,

[Puppet Users] Pass same parameter value to multiple classes using Puppet Hiera

2013-08-19 Thread Rob Hasselbaum
I'm using Hiera with Puppet and I want to pass the same parameter value to multiple classes without repeating it. Right now I've got (in Yaml): --- class_a::database_server: myoraclebox.example.com class_b::database_server: myoraclebox.example.com This works, but how can I specify the server

Re: [Puppet Users] using GIT for environments

2013-08-19 Thread me 1
On Sun, Aug 18, 2013 at 9:04 PM, me 1 solar...@gmail.com javascript:wrote: On Sunday, August 18, 2013 6:13:38 PM UTC-4, Jim Toth wrote: There are a few ways to go; probably the best way is to set up a bare repository that you push and pull from in both places, but I'd probably add the

[Puppet Users] if defined not working when class is enlcosed within Class[ ]

2013-08-19 Thread Florian Gray Jones
Hi, I am learning puppet using version 2.7.18 on a fresh ubuntu install. I am trying to test this module https://github.com/liamjbennett/puppet-sabnzbd/blob/master/manifests/init.ppbut I'm having trouble with the if defined(Class['supervisor::service']) section in that it doesn't get run

Re: [Puppet Users] using GIT for environments

2013-08-19 Thread me 1
On Sun, Aug 18, 2013 at 9:04 PM, me 1 solar...@gmail.com javascript:wrote: On Sunday, August 18, 2013 6:13:38 PM UTC-4, Jim Toth wrote: There are a few ways to go; probably the best way is to set up a bare repository that you push and pull from in both places, but I'd probably add the

Re: [Puppet Users] using GIT for environments

2013-08-19 Thread me 1
On Sun, Aug 18, 2013 at 9:04 PM, me 1 solar...@gmail.com javascript:wrote: On Sunday, August 18, 2013 6:13:38 PM UTC-4, Jim Toth wrote: There are a few ways to go; probably the best way is to set up a bare repository that you push and pull from in both places, but I'd probably add the

Re: [Puppet Users] using GIT for environments

2013-08-19 Thread Jim Toth
Hmm...you might need to add git remote update in there. git pull does that by default. On Mon, Aug 19, 2013 at 1:22 PM, me 1 solarflo...@gmail.com wrote: On Sun, Aug 18, 2013 at 9:04 PM, me 1 solar...@gmail.com wrote: On Sunday, August 18, 2013 6:13:38 PM UTC-4, Jim Toth wrote: There

[Puppet Users] Re: if defined not working when class is enlcosed within Class[ ]

2013-08-19 Thread Ellison Marks
So, I can't speak to the authors intentions, but I'll do my best to explain the behavior. As you guessed defined() behaves differently based on what is passed to it. If passed a resource reference, as it is in the module, it will check that that resource has been declared. if passed a string,

Re: [Puppet Users] Possible for each user to have their own testing environment?

2013-08-19 Thread Brian Mathis
On Mon, Aug 19, 2013 at 10:23 AM, Sandra Schlichting littlesandr...@gmail.com wrote: Dear Brian and John, Thanks a lot for your replies. I was under the impression that site.pp had to be in the environment, which I now see it doesn't have to. =) What I don't quite understand is though is

Re: [Puppet Users] Running classes alone

2013-08-19 Thread Matt S
Thanks for your reply! My issue was that my dnsmasq class was a) downloading the package b) setting up the service and c) adding monit monitoring scripts for it. The last part was the cyclic dependency issue. A number of things are monitored by monit, and pulling one of them into my

Re: [Puppet Users] using GIT for environments

2013-08-19 Thread me 1
This did it! For a simple setup I think this works great, maybe these instructions should go in the docs somewhere? Thanks for your help. On Monday, August 19, 2013 1:30:57 PM UTC-4, Jim Toth wrote: Hmm...you might need to add git remote update in there. git pull does that by default.

[Puppet Users] Re: if defined not working when class is enlcosed within Class[ ]

2013-08-19 Thread Florian Gray Jones
ok, that's great. Thanks for the help. The puppet-docs it says: *Modules are how Puppet finds the classes and types it can use* — it automatically loads any classhttp://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html or defined

[Puppet Users] Re: if defined not working when class is enlcosed within Class[ ]

2013-08-19 Thread Ellison Marks
Since in this case, it's checking that supervisor::service exists so it can declare one, I'd say checking for just 'supervisor::service' would be fine. You may want to stay around and see what other people think though, as I could be missing something. Looking at it again, the check to see if