[Puppet Users] Passing Powershell Variables into Puppet manifest

2015-10-27 Thread tom . swaby
Hi all Im having difficulty passing powershell variables into Puppet, while using the Powershell module. What I need to achieve is this in powershell. It is basically a script that executes a check to see if a windows module is installed, and if not, copies it from a source directory. *This

[Puppet Users] Re: puppetlabs/apache module and changin the default port

2015-10-27 Thread jcbollinger
On Monday, October 26, 2015 at 8:41:02 AM UTC-5, tobias...@gmail.com wrote: > > As far as I have read it's not possible to change the default port for > Apache > > class > { 'apache': default => 8080, } > > apache::listen > { '8080': } > > will just add the port 8080 but the port 80 is still

[Puppet Users] Re: Passing 'undef' as a class parameter value

2015-10-27 Thread jcbollinger
On Tuesday, October 27, 2015 at 4:03:33 AM UTC-5, Aurélien Degrémont wrote: > > Hello > > When using class parameters I often face the same issue regarding undef > usage. > Let's say I got this simple class: > > class foo ( >$service_ensure = 'running', > ) { >service { 'foo': >

[Puppet Users] Re: RHEL 7 - Satellite 6.1 - Puppet Locally

2015-10-27 Thread jcbollinger
On Monday, October 26, 2015 at 9:03:41 AM UTC-5, Tom Zurita wrote: > [root@rhel7-test2 manifests]# puppet module list > > /etc/puppet/modules > > ├── cis-puppet (???) > > ├── duritong-sysctl (v0.0.11) > > └── puppetlabs-stdlib (v4.9.0) > > /usr/share/puppet/modules (no modules installed) > > >

Re: [Puppet Users] Passing 'undef' as a class parameter value

2015-10-27 Thread Christopher Wood
Using undef in a class declaration... appears to be the subject of a bunch of documents I am ill-qualified to interpret. https://docs.puppetlabs.com/puppet/latest/reference/lang_data_undef.html "Puppet’s special undef value is roughly equivalent to nil in Ruby; it represents the absence of a va

[Puppet Users] Re: connecting puppet servers to puppet db

2015-10-27 Thread Felix Barbeira
It happens the same to me. root@:/etc/puppetlabs/puppet# puppet agent -t Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Could not retrieve facts for server.com: Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pd

Re: [Puppet Users] puppet + puppetdb: No Catalog received

2015-10-27 Thread em
Sorry, I was missing one 'upper/lower case' Class. I fixed all of them and now it's working. thanks! :) On Tuesday, October 27, 2015 at 1:43:03 PM UTC+1, em wrote: > > Hi Ken, > > The actual error is: > # puppet agent -t > Info: Retrieving pluginfacts > Info: Retrieving plugin > Info: Loading fa

Re: [Puppet Users] puppet + puppetdb: No Catalog received

2015-10-27 Thread em
Hi Ken, The actual error is: # puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid relationship: Apt::Source[puppetlabs] { notify => Class[apt::update] }, because Class[apt::up

Re: [Puppet Users] puppet + puppetdb: No Catalog received

2015-10-27 Thread Ken Barber
> I have a running puppet installation (version 3.8.3) > I installed and configured a puppetdb node (2.3.8 with postgresql). > Configured puppet master to user the new puppetdb node. > > When I run puppet agent from any of the nodes I get a 'Invalid > relationship Class doesn't seem to be in th

[Puppet Users] Puppet agent and XCP-XAPI collision in Debian Wheezy

2015-10-27 Thread Andrey Karadimov
Hi all, I want to share my experience with puppet agent installed in Dom0 managed by xapi. Just to mention that the problem exist in puppet updates after Feb 2015 - Sorry I can't be more precise. Before that date, puppet agent and xcp-xapi works fine together. Generally speaking xapi stop worki

Re: [Puppet Users] RHEL 7 - Satellite 6.1 - Puppet Locally

2015-10-27 Thread Trevor Vaughan
Hi Tom, What's the content of test.pp? Thanks, Trevor On Mon, Oct 26, 2015 at 9:47 AM, Tom Zurita wrote: > We deploy our servers and use Puppet using Satellite 6.1. I deployed a > server and am trying to test modules locally and it NEVER works. > > cat /etc/puppet/puppet.conf > > > [main] >

Re: [Puppet Users] Passing 'undef' as a class parameter value

2015-10-27 Thread DEGREMONT Aurelien
Le 27/10/2015 11:12, Christopher Wood a écrit : Unless there have been any developments of which I am unaware, you would need to handle this in the code+hiera. Here's where I dribbled all over this thing a few months ago: https://groups.google.com/forum/#!msg/puppet-users/0l3m4VCHjOg/KKlz5LNpC

[Puppet Users] puppet + puppetdb: No Catalog received

2015-10-27 Thread em
Hi, I have a running puppet installation (version 3.8.3) I installed and configured a puppetdb node (2.3.8 with postgresql). Configured puppet master to user the new puppetdb node. When I run puppet agent from any of the nodes I get a 'Invalid relationship Class doesn't seem to be in the cat

[Puppet Users] Manage Group Password

2015-10-27 Thread shashank
Hi all, I am writing a module to manage user groups,but as the group resource doesn't have attribute called 'Password'. So, how can I manage or assign the group passwords to each individual groups by using group resource or any custom approach. Refrence : https://docs.puppetlabs.com/references

[Puppet Users] Manage group resource

2015-10-27 Thread shashank
Hi all, I am writing module to manage user groups as group resource doesn't have attribute called 'Password'. So, how can I manage or assign the group passwords to each individual groups by using group resource or any custom approach. Refrence : https://docs.puppetlabs.com/references/latest/ty

Re: [Puppet Users] Passing 'undef' as a class parameter value

2015-10-27 Thread Christopher Wood
Unless there have been any developments of which I am unaware, you would need to handle this in the code+hiera. Here's where I dribbled all over this thing a few months ago: https://groups.google.com/forum/#!msg/puppet-users/0l3m4VCHjOg/KKlz5LNpCgYJ On Tue, Oct 27, 2015 at 10:03:19AM +0100, DEG

[Puppet Users] Passing 'undef' as a class parameter value

2015-10-27 Thread DEGREMONT Aurelien
Hello When using class parameters I often face the same issue regarding undef usage. Let's say I got this simple class: class foo ( $service_ensure = 'running', ) { service { 'foo': ensure => $service_ensure; } } include foo # will set the service running class { 'foo': servic

Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1

2015-10-27 Thread Fredrik Nilsson
Should have replied earlier, to much to do I guess. Anyways what seems to have solved the issue in our case was an update of chocolatey to the latest stable release in the form of 0.9.9.11, updating the template of the configuration handled by puppet and also updating the chocolatey puppet modu