[Puppet Users] Sidedoor - Puppet Module

2016-06-01 Thread Warron French
I have created, a Puppet Module using PE-2015.2. The module is called Sidedoor (as opposed to backdoor) and the intent is to do the following (as I am evolving it): 1. Create a system-group with GID=300, and ensure it is in place, 2. Create a user (mine for example) with starting UID=(300 + se

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread Warron French
Thanks Henrik. I won 't be using it now that I hear that being confirmed. Thanks everyone, Warron On 6/1/2016 10:38 PM, Henrik Lindberg wrote: On 02/06/16 03:42, Rob Nelson wrote: Geppetto is definitely heavy. It also looks like development stopped, last release was over a year ago. It's pro

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread Warron French
Thanks Rob, then I won't bother with it. I will stick to the generic commands built into the Puppet Master, and use vi(m) and see if I can make it work with GitHub.com - to develop an improved understanding of the full lifecycle process for developing a Puppet Module from scratch. On 6/1/20

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread Warron French
Thanks for the feedback about Gepetto, James. I tried to start using it last year, and learning to use that tool went sideways on me. I have written shell scripts for the past 20+ years, but I don't really write programs anymore (in C, C++, Fortran or even Pascal); so I think I first need to

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread Henrik Lindberg
On 02/06/16 03:42, Rob Nelson wrote: Geppetto is definitely heavy. It also looks like development stopped, last release was over a year ago. It's probably not worth starting to use it now if it's a dead product. Geppetto is no longer maintained. If you want an IDE, look at Netbeans, or Intell

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread Rob Nelson
Geppetto is definitely heavy. It also looks like development stopped, last release was over a year ago. It's probably not worth starting to use it now if it's a dead product. On Wednesday, June 1, 2016, James Pryor wrote: > Warron, > Thank you for the the praise. > Geppetto is fine. I used it 20

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread James Pryor
Warron, Thank you for the the praise. Geppetto is fine. I used it 2014 & part of 2015. Some people may disagree, but I found that it (by way of Eclipse) was quite heavy weight and used lots of CPU and RAM in my workstation. With Geppetto it was amazing to get all my modules in one place and have it

Re: [Puppet Users] Puppet 4.5 and git & R10K

2016-06-01 Thread Alex Samad
Hi So I have https://rnelson0.com/2014/05/19/puppet-and-git-201-r10k-setup-installation/ or http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/ Currently stuck on the control-repo https://github.com/puppetlabs/control-repo I have cloned their repo to my work box git clo

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread warron.french
James, you are awesome! Thank you. I wrote my first module, I am calling it sidedoor, as opposed to backdoor; and it for the purpose of enabling the creation of accounts on systems to work around NSS (LDAP, AD, NIS, Samba, etc...) service outage and have never written one from scratch before. I

Re: [Puppet Users] Puppet 4.5 and git & R10K

2016-06-01 Thread Alex Samad
Oh... Okay now I am getting lost :) Sorry trying to multi task. I will go back to the docu & link and see which I need to do. But I believe I am at the setup git / r10k stage ... On Wednesday, 1 June 2016 12:51:06 UTC+10, Rob Nelson wrote: > > Just to be sure, code manager is PE only. It lo

Re: [Puppet Users] Trying to understand hiera and use in site.pp

2016-06-01 Thread Rob Nelson
"Works" in this case would mean that when you set ntp::service_enable: false, on the next puppet run, the service would be disabled. If that's the case, hiera is working and any errors are likely to do with typos or yaml formatting issues with the other settings. Rob Nelson rnels...@gmail.com On

Re: [Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread James Pryor
I have personal experience with PE 2015.2 thus I knew what to look for, so I think this will help you. https://docs.puppet.com/pe/2015.2/console_classes_groups.html#adding-classes-to-a-node-group and search the page for the word refresh. I found this by doing a google search on: puppet enterprise

[Puppet Users] How to get modules recognized for use during classification

2016-06-01 Thread warron.french
Another question... I have rebuilt my Puppetmaster (as some of you already know), and copied into place a module I wrote into - */etc/puppetlabs/code/environments/production/modules.* However, when I go into the Puppet Admin Console, into the Classification tab. When I try to "pull up" my mo

Re: [Puppet Users] Trying to understand hiera and use in site.pp

2016-06-01 Thread Courtney Campbell
Nor does it take the settings on a 7 server. Just sets the defaults of the module. On Wednesday, June 1, 2016 at 1:14:15 PM UTC-5, Courtney Campbell wrote: > > It does work, but it is not taking the setting in 6.yaml. It is setting > the defaults. > > On Wednesday, June 1, 2016 at 11:58:26 AM UT

Re: [Puppet Users] Trying to understand hiera and use in site.pp

2016-06-01 Thread Courtney Campbell
It does work, but it is not taking the setting in 6.yaml. It is setting the defaults. On Wednesday, June 1, 2016 at 11:58:26 AM UTC-5, Rob Nelson wrote: > > Can you show what happens on a brand new CentOS 6 or 7 node when you run > `puppet agent -t`? It should work the way you expect, though the

[Puppet Users] Re: Puppet parameterized class not skipping the same version of software

2016-06-01 Thread Harish Kothuri
It works as expected after providing name to the package. *class ctf ($version) { $ctfdest = sprintf('C:\PuppetSWT\CTF-%s.exe', $version) package { 'CTF': name => 'CTF-'${version}, ensure => 'installed', source => $ctfdest, install_op

Re: [Puppet Users] Re-issuing agent certs from a newer Puppet Master

2016-06-01 Thread warron.french
Thanks to you both Rob and Andy. -- Warron French On Wed, Jun 1, 2016 at 12:53 PM, Rob Nelson wrote: > If you run `puppet agent -t [--server ]` and there is a mismatch, it > should provide directions to remedy the situation. In your case, wiping out > the ssldir on the

Re: [Puppet Users] Trying to understand hiera and use in site.pp

2016-06-01 Thread Rob Nelson
Can you show what happens on a brand new CentOS 6 or 7 node when you run `puppet agent -t`? It should work the way you expect, though the service_enable and service_ensure settings match the default, so there won't be that much different. If it is working, but the output isn't clear on that, you c

Re: [Puppet Users] Re-issuing agent certs from a newer Puppet Master

2016-06-01 Thread Rob Nelson
If you run `puppet agent -t [--server ]` and there is a mismatch, it should provide directions to remedy the situation. In your case, wiping out the ssldir on the client should suffice. Rob Nelson rnels...@gmail.com On Wed, Jun 1, 2016 at 12:39 PM, warron.french wrote: > Hello again, > I h

Re: [Puppet Users] Re-issuing agent certs from a newer Puppet Master

2016-06-01 Thread Andrew Grimberg
On 06/01/2016 09:39 AM, warron.french wrote: > Hello again, > I have a a few Puppet Agents on to which I installed the > puppet-agent software from my first Puppetmaster1, however, something > happened and I had to rebuild that server - for labelling purposes I am > (in this email) calling it P

[Puppet Users] Re-issuing agent certs from a newer Puppet Master

2016-06-01 Thread warron.french
Hello again, I have a a few Puppet Agents on to which I installed the puppet-agent software from my first Puppetmaster1, however, something happened and I had to rebuild that server - for labelling purposes I am (in this email) calling it Puppetmaster2. The puppet agents all have their certs s

[Puppet Users] Re: Custom Facts for windows with powershell

2016-06-01 Thread John Ericson
Thanks for clarifying! I changed it to include the regexp fix: Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | where{$_.DisplayName -and $_.displayname -notmatch 'Update'} | Select-Object DisplayName, DisplayVersion | ForEach-Object {$factName = $_.DisplayName -

[Puppet Users] Re: Puppet environments..

2016-06-01 Thread Courtney Campbell
I just set this up myself. You need to create your environments directory structures is you haven't already. /etc/puppet/environment/{dev|prod)/(manifests|modules|environment.conf|hierdata) Hope you understand that. Then you need to change your puppet.conf on the master. Add these lines under m

[Puppet Users] Trying to understand hiera and use in site.pp

2016-06-01 Thread Courtney Campbell
I just upgraded to puppet 3.8. Things I used to do in 3.7 like import and inherits no longer work. Anyway, I have been trying to figure out hiera. The docs on the site are great if you already know what you are doing. Anyway, I have environments setup. And have the hiera.yaml setup and working.

[Puppet Users] facter 3 behaviour change in vlan interface legacy facts

2016-06-01 Thread Christopher Wood
This is something I found after upgrading a number of puppet agents from 3.8.5 to 4.4.2 using the puppet-agent-1.4.2-1.el6.x86_64.rpm rpm on CentOS 6. The legacy fact names around vlan interfaces are not the same as the facter2 versions of those facts. facter < 3: ipaddress_eth0_413 facter >=

[Puppet Users] setting modulepath

2016-06-01 Thread warron.french
Hello, I am trying to learn to write puppet code (in very small steps). I am using PE-2015.2 that I installed from tarball onto a CentOS-6.8 virtual machine running in Oracle VBox. I have mounted a directory from my Windows PC into my Puppetmaster (running in the CentOS-6.8 virtual machine).

Re: [Puppet Users] How to access $facts['os'] in a manifest

2016-06-01 Thread Henrik Lindberg
On 01/06/16 16:43, Marc Haber wrote: Hi, I have the following code: if( $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7' ) { file { "...": ensure => 'file', path=> "...", content => "...", }

[Puppet Users] How to access $facts['os'] in a manifest

2016-06-01 Thread Marc Haber
Hi, I have the following code: if( $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7' ) { file { "...": ensure => 'file', path=> "...", content => "...", } } My agent is puppet 3.8.4, my mas