Re: [Puppet Users] Puppet agent installation error.

2017-06-12 Thread Joshua Schaeffer
1. Log into your console. 2. Go to Nodes -> Classifications -> PE Master. 3. Under the PE Master classification click on the Classes tab. 4. Add the pe_repo::platform::el_7_x86_64 class to the classification. 5. Run puppet on the Puppetserver.

[Puppet Users] Re: mount lvm & auditd module(s) design?

2017-05-04 Thread Joshua Schaeffer
dev/${profile::hostautomation::vgname}/${lvdata['toollog']['name']}", fstype => $filesystem_type, require => Filesystem['hostauto-toollog'], } Thanks, Joshua Schaeffer On Tuesday, May 2, 2017 at 10:56:58 AM UTC-6, dkoleary wrote: > > Hey; > > Core requirement: have p

[Puppet Users] Re: Need help with Puppet Syntax

2017-05-04 Thread Joshua Schaeffer
Is there a question here? What specifically are you asking for? On Monday, May 1, 2017 at 6:02:33 PM UTC-6, Samir Gahirwal wrote: > > Hi, > > I am new to puppet and writing very first puppet module. Please pardon me > for asking basic question. > > I am trying to write a module to generate

[Puppet Users] Re: lvm module help

2017-05-04 Thread Joshua Schaeffer
You list volume_group*s* in Hiera (with an "s"): --- lvm::volume_groups: vg00: createonly: true physical_volumes: /dev/sda2: unless_vg: 'vg00' logical_volumes: audit: size: 2G You list volume_group (without an "s") in your manifest:

[Puppet Users] Re: How to copy and install 3 different files from puppet master to 3 different locations

2017-04-21 Thread Joshua Schaeffer
/A/install/path' your_module::B::install_path: '/env/B/install/path' your_module::C::install_path: '/env/C/install/path' file { 'environment-file' path => lookup("your_module::${environment}::install_path", String) ... } Hope that helps. Thanks, Joshua Schaeffer On Thursday, Apri

Re: [Puppet Users] Custom Facts using awk

2017-03-29 Thread Joshua Schaeffer
Excellent. Good to know. I was told otherwise. Thanks, Joshua Schaeffer On Wednesday, March 29, 2017 at 7:11:55 AM UTC-6, Gabriel Schuyler wrote: > > Never fear, external facts work just fine in Puppet 3. > > On Tuesday, March 28, 2017 at 10:51:52 AM UTC-4, Joshua Schaeffer wrote: &g

Re: [Puppet Users] Custom Facts using awk

2017-03-28 Thread Joshua Schaeffer
External facts are a Puppet v4 feature only. You have to use Ruby to create custom facts in Puppet v3. On Monday, March 27, 2017 at 3:54:00 PM UTC-6, Warron French wrote: > > OK, done, and done. But it still isn't showing up. > > Is this potentially because I am using PE-3.8 as a component of

Re: [Puppet Users] Re: Restore of puppet server vm

2017-03-27 Thread Joshua Schaeffer
listening on that port? netstat -tupan | grep 4432 Thanks, Joshua Schaeffer On Monday, March 27, 2017 at 5:47:24 AM UTC-6, Ryan Vande wrote: > > I don't know, my system time is correct... It might had been off at the > beginning but as of now it is correct might have I already did t

[Puppet Users] Re: Restore of puppet server vm

2017-03-26 Thread Joshua Schaeffer
don't seem to affect the Puppet run, but if the date is not accurate the Puppet agent complains. Again, just a guess, but make sure that if you are restoring the exact system state that is is not interfering with Puppet operations. Thanks, Joshua Schaeffer On Saturday, March 25, 2017 at 8:20:11 PM

Re: [Puppet Users] Custom Facts using awk

2017-03-24 Thread Joshua Schaeffer
Sorry, I may have been ambiguous with the file extensions. A text file should end in .txt. This means you define external facts like this: # This is a plain text file that defines two external facts my_fact1=my_value1 my_fact2=my_value2 An executable program or script should end in whatever

Re: [Puppet Users] Custom Facts using awk

2017-03-24 Thread Joshua Schaeffer
at to you. :) Hope that helps, Joshua Schaeffer P.S. Executable facts on Windows should be known extension types as well and can include: - .com or .exe - .psl (PowerShell) - .cmd or .bat (batch script) On Wednesday, March 22, 2017 at 5:49:53 PM UTC-6, Warron French wrote: &g

[Puppet Users] Adding multiple subsets of users or groups to different groups of servers

2017-03-09 Thread Joshua Schaeffer
I'm looking for the best way to add multiple sets of users and/or groups to different groups of servers. For example, lets say I have 4 sets of users and 3 groups of servers. The first set of users contains common users that could be added to multiple groups of servers, while the other sets are

Re: [Puppet Users] Can a resource run more then once in a catalog?

2017-03-06 Thread Joshua Schaeffer
Thanks for that clarification, this is really helpful. On Monday, March 6, 2017 at 7:24:50 AM UTC-7, jcbollinger wrote: > > > > On Friday, March 3, 2017 at 11:30:42 AM UTC-6, Peter Kristolaitis wrote: >> >> A subscribed / notified resource will only trigger once. Puppet's basic >> execution

Re: [Puppet Users] Can a resource run more then once in a catalog?

2017-03-03 Thread Joshua Schaeffer
> and you can think of notify/subscribe as a special case of using 'require' > to determine execution order. > > > On 3/3/2017 12:14 PM, Joshua Schaeffer wrote: > > Ahoy all, > > TL;DR > I'm looking for information on how a catalog runs, in particular if you >

[Puppet Users] Can a resource run more then once in a catalog?

2017-03-03 Thread Joshua Schaeffer
Ahoy all, TL;DR I'm looking for information on how a catalog runs, in particular if you notify an exec resource within a manifest multiple times (from different resources) will the exec run multiple times if it has refreshonly set to true? I've given more details below: Background information

[Puppet Users] Re: What's the best way to deal with multiple OS's

2017-02-28 Thread Joshua Schaeffer
You can build agnostic code in Puppet and pull operating system specifics from Hiera. For example: #ls -l hieradata/ total 4 -rw-r--r-- 1 root root 872 Feb 12 18:28 common.yaml drwxr-xr-x 1 root root 0 Feb 28 12:31 nodes drwxr-xr-x 1 root root 68 Feb 28 12:31 os #ls -lR hieradata/os

[Puppet Users] Conflict between new docs and puppet

2017-02-28 Thread Joshua Schaeffer
The docs on lookup() . state that in order to upgrade to to hiera v5 you should follow the below list: >- Change any hiera/hiera_array/hiera_hash calls in your manifests to >use lookup instead. > > >- Set

Re: [Puppet Users] Re: Specifying dependency ordering inside of lambda functions

2017-02-21 Thread Joshua Schaeffer
Thanks, this is very helpful and my preliminary testing is showing that this is what is happening. On Tuesday, February 21, 2017 at 6:50:16 AM UTC-7, jcbollinger wrote: > > > > On Tuesday, February 21, 2017 at 5:44:14 AM UTC-6, Chadwick Banning wrote: >> >> Autorequires: If Puppet is managing

[Puppet Users] Re: Specifying dependency ordering inside of lambda functions

2017-02-21 Thread Joshua Schaeffer
classes and requiring the class. Thanks for your responses they are what I was looking for. Joshua Schaeffer On Monday, February 20, 2017 at 9:29:34 PM UTC-7, John Gelnaw wrote: > > I can think of three options: > > 1) Break the user / group definitions into their own classes, and

[Puppet Users] Specifying dependency ordering inside of lambda functions

2017-02-20 Thread Joshua Schaeffer
I just want to make sure that all the groups are created before the users are created. Thanks, Joshua Schaeffer -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an em

[Puppet Users] Re: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5

2017-02-07 Thread Joshua Schaeffer
Okay I see that they are actually preparing to release Puppet 4.9.2 which is supposed to fix these issues. Does this mean they will release a new puppet-agent package part of the PC1? Where can I go to track the progress of this minor release? > -- You received this message because you are

[Puppet Users] Re: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5

2017-02-07 Thread Joshua Schaeffer
So going through the ticket it looks like I should be putting "version: 5" in the YAML file and that keys are not prefixed with a colon. But I get errors when I make changes to my hiera.yaml file: --- version: 5 backends: yaml hierarchy: - "fqdn/%{facts.fqdn}" - "os/%{facts.osfamily}" -

[Puppet Users] Re: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5

2017-02-07 Thread Joshua Schaeffer
So going through the ticket it looks like you should be putting "version: 5" in the YAML file and that keys are not not prefixed with a colon. But I get errors when I make changes to my hiera.yaml file: --- version: 5 backends: yaml hierarchy: - "fqdn/%{facts.fqdn}" - "os/%{facts.osfamily}"

[Puppet Users] Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5

2017-02-06 Thread Joshua Schaeffer
I recently destroyed my puppetserver server and recreated it in my sandbox environment. Before I destroyed it, I copied all my important data off of the server including my /etc/puppetlabs/code/hiera.yaml file. When I recreated my server and set everything back up I copied all my modules,

Re: [Puppet Users] Escape codes in collection types

2017-02-01 Thread Joshua Schaeffer
> > > That should be $color = > > Wow, I knew it was something simple. I swear I looked at that for 10 minutes straight and couldn't find the syntax error. Thanks for pointing it out. I corrected the syntax error and it's all working correctly now. Thanks, Joshua -- You received this

[Puppet Users] Escape codes in collection types

2017-02-01 Thread Joshua Schaeffer
I'm new to Puppet and learning the program and language so this question might seem novice. I'm confused why I can assign an escape character to a variable but not inside any collection types (arrays or hashes). I was doing the simply motd puppet module and I created this: $red = "^[[0;31m"