Re: [Puppet Users] Re: Is ensure_resource() evil?

2018-03-21 Thread jcbollinger
On Wednesday, March 21, 2018 at 8:46:02 AM UTC-5, jcbollinger wrote: > > > > On Wednesday, March 21, 2018 at 4:03:28 AM UTC-5, Martin Alfke wrote: >> >> I prefer the each lambda over ensure_resource and create_resource. >> my 5pc. >> > > In this p

Re: [Puppet Users] Re: Is ensure_resource() evil?

2018-03-21 Thread jcbollinger
On Wednesday, March 21, 2018 at 4:03:28 AM UTC-5, Martin Alfke wrote: > > I prefer the each lambda over ensure_resource and create_resource. > my 5pc. > In this particular case, the ensure_resource() call is inside a defined type that is used both internally and externally, so I don't think

Re: [Puppet Users] Re: Is ensure_resource() evil?

2018-03-20 Thread jcbollinger
On Tuesday, October 17, 2017 at 7:59:16 AM UTC-5, jcbollinger wrote: > > Nothing has changed with `ensure_resource()`. The problem is not its > implementation details, but rather the nature of the usage modes the > function is *designed* to support. The whole idea of it is flawe

[Puppet Users] Re: Resource chaining is not being honored

2018-03-09 Thread jcbollinger
On Thursday, March 8, 2018 at 4:53:27 PM UTC-6, Johnathan Komara wrote: > 'profile::a' should be applied to every server and 'profile::b' is only > being applied to a few servers. My understanding of resource chaining is > that I can alter the order in which the classes are ran. I need "b"

Re: [Puppet Users] Unable to solve a require statement

2018-03-07 Thread jcbollinger
On Tuesday, March 6, 2018 at 1:50:28 PM UTC-6, P.C. Kroon wrote: > > Hi Jochen, > > > > I’m going to give this back to the rest of the list since I’m out of my > depth, and I don’t have the time to figure out the details at the moment. > Good luck though  > In the first place, since you

[Puppet Users] Re: 'require' option is ignored?

2018-02-16 Thread jcbollinger
On Thursday, February 15, 2018 at 9:46:17 AM UTC-6, buoyant_puppy wrote: > > Got it, thanks everyone. > > Just one small point to add - I'm not actually directly concerned with > Execs here. If you look at my original example, I was needing to do a > conditional check like "if directory exists

[Puppet Users] Re: containment questions

2018-02-16 Thread jcbollinger
On Wednesday, February 14, 2018 at 12:02:41 PM UTC-6, Peter Bauer wrote: > > hi, > > i was recently bitten by ordering issues caused by missing contain/anchor > declarations in a PostgreSQL module which should have finished its job > before configuring and starting the PuppetDB which is done

[Puppet Users] Re: containment questions

2018-02-16 Thread jcbollinger
On Thursday, February 15, 2018 at 9:09:34 PM UTC-6, Jeremiah Powell wrote: > > You can also use stages to define strong barriers to order large parts of > a task. The canonical example is configuring a database before the > application that needs it. > Stages are the wrong tool for almost

[Puppet Users] Re: 'require' option is ignored?

2018-02-15 Thread jcbollinger
On Thursday, February 15, 2018 at 8:17:20 AM UTC-6, jcbollinger wrote: > This has been a point of confusion with the Exec resource type for the > whole nine-ish years that I have been involved with Puppet. Maybe it's > time to actually file an issue against the docs to get it c

[Puppet Users] Re: 'require' option is ignored?

2018-02-15 Thread jcbollinger
On Thursday, February 15, 2018 at 4:41:59 AM UTC-6, buoyant_puppy wrote: > > I think I got this. My main issue was the 'true' logic with an 'onlyif', > because that's always only going to either run (= and therefore meet the > requirement) or not run at all (= which also meets the requirement

[Puppet Users] Re: How manage tag (exported ressources)

2018-02-12 Thread jcbollinger
On Friday, February 9, 2018 at 4:00:48 PM UTC-6, Albert Shih wrote: > > Hi, > > I would like to know how you or what's best practice to manage tag in > exported resources. > > For example I have two hosts H1 and H2->100, and I want export file_line > from H2->100 > to H1. > > So or I use a

[Puppet Users] Re: How to find version of an application on nodes

2018-01-29 Thread jcbollinger
On Monday, January 29, 2018 at 4:17:56 AM UTC-6, Brandon Blackmoor wrote: > > I apologize if this is a stupid question, but I am still a novice at > Puppet. I have been asked if it is possible to use Puppet to find out if an > application (apparmor, specifically) is installed on our various

[Puppet Users] Re: Performance issue with puppetserver

2017-12-13 Thread jcbollinger
On Tuesday, December 12, 2017 at 11:17:20 AM UTC-6, n.be...@gaijin.ru wrote: > > > We have a problem with very slow work puppetserver. > > > We have ~300 nodes, master runs on a server with 24 cores and 20 GB of > memory. > > Pappet agent log: > [...] > Time: > [...] > File:

[Puppet Users] Re: Hiera merge issue

2017-11-22 Thread jcbollinger
On Tuesday, November 21, 2017 at 10:01:39 AM UTC-6, Constantin B wrote: > > Hello > > i run : > > puppet lookup --node --debug --explain sshkeys::users > > on puppet master it return a correctly merged array > i have group/xxx.ymal + common.yaml > i have set > > > lookup_options: >

[Puppet Users] Re: How to deal with resource conflict between modules

2017-11-07 Thread jcbollinger
On Monday, November 6, 2017 at 10:13:11 AM UTC-6, titlei...@gmail.com wrote: > > Hello, > > I'm very new to Puppet and trying to implement 2 very simple modules. > Both of these modules should work independent of each other, but both will > be run on the same host. They both require that

[Puppet Users] Re: get physical disk for lvm usage?

2017-11-01 Thread jcbollinger
On Wednesday, November 1, 2017 at 6:07:49 AM UTC-5, Martijn wrote: > > Well, if you do $disks = facts['os']['disks'] (note: facts, not facter), > you'll have a hash of all disks in $disks. Some of the functions in > puppetlabs-stdlib let you modify hashes. Take a look at delete >

[Puppet Users] Re: Disable Puppet Agent SSL Authentication

2017-10-26 Thread jcbollinger
On Wednesday, October 25, 2017 at 8:47:40 AM UTC-5, Vishal Sarin wrote: > > Folks, > > We manage a LAB of Windows PC where the OS crash is quite often and we > need to install a new certs. > > So, we need to delete the certs from Server frequently. > > Since its in-premise LAB and so I would

Re: [Puppet Users] Re: Is ensure_resource() evil?

2017-10-19 Thread jcbollinger
On Wednesday, October 18, 2017 at 6:38:51 PM UTC-5, Johan Fleury wrote: > > Le 17/10/2017 à 08:59, jcbollinger a écrit : > > Nothing has changed with `ensure_resource()`. The problem is not its > > implementation details, but rather the nature of the usage modes the > &g

[Puppet Users] Re: I accidentally removed the puppet server

2017-10-17 Thread jcbollinger
On Monday, October 16, 2017 at 10:08:20 AM UTC-5, Lucas Z. wrote: > > Hello everyone, > > I made a mistake in my Puppet Server, I ended up installing a new puppet > with the command apt install puppet and apt autoremove. Now, the original > Puppet Server apparently disappeared from

[Puppet Users] Re: Is ensure_resource() evil?

2017-10-17 Thread jcbollinger
On Monday, October 16, 2017 at 5:33:12 PM UTC-5, Ken Miller wrote: > > Is this really still true? From the looks of the stdlib source of > ensure_resource it seems like it just parses parameters and calls > create_resources . > > Trying to understand if this is 3 year old lore or still valid

[Puppet Users] Re: Puppet Feature Request (lookup with keys containing ".")

2017-10-05 Thread jcbollinger
On Wednesday, October 4, 2017 at 10:54:30 AM UTC-5, John Baird wrote: > > Problem: > So, currently as has been explained to me, doing a lookup with keys > containing "." chops the key at first "." because of scoping and namespace. > Well, that seems a bit of an odd characterization. I

[Puppet Users] Re: parts of class being skipped :(

2017-10-05 Thread jcbollinger
It's suspicious to me that you have resources managing parts of /etc/zabbix/zabbix_agentd.conf, but nothing in your manifest to specify that they should be applied before Service['zabbix-agent'] is managed, or to make the service take notice if those are applied when it is already running.

[Puppet Users] Re: Question regarding Puppet4 class params and Hiera5

2017-09-28 Thread jcbollinger
Dear Sean, David has already given you great answers to the questions you posed. I have nothing to add to those, but I feel inclined to nitpick your question a bit: On Tuesday, September 26, 2017 at 10:00:49 AM UTC-5, Sean wrote: [...] > The class arrays are strings of fully qualified

[Puppet Users] Re: stdlib keys() and values()

2017-09-28 Thread jcbollinger
On Thursday, September 28, 2017 at 5:49:12 AM UTC-5, Robert wrote: > > Eh, sorry. > > So why's this with the above code: > > Notice: /Stage[main]/Main/Notify[sdf]/message: defined 'message' as '1' > and keys($hash) gives 'a' > > Why not arrays of the keys / values? Can't understand. > Although

[Puppet Users] Re: chocolatey.config idempotency

2017-08-03 Thread jcbollinger
On Wednesday, August 2, 2017 at 9:04:06 AM UTC-5, proman wrote: > > I've been busy to find out why my *chocolatey.config* file is not > idempotent when i run *puppet apply apply_manifest.pp( *this file include > the puppet code from the chocolatey.config) on a specifiek vm >

[Puppet Users] Re: Swap not getting enabled.

2017-07-31 Thread jcbollinger
On Sunday, July 30, 2017 at 11:58:25 AM UTC-5, m ahuja wrote: > > I do the following command in a series of commands. > I make swap using fallocate -l 65G & chmod 0600 > I /sbin/mkswap /mnt/../../swapXXX > I /bin/echo -en '\n/mnt../../swapXXX swap swap auto 0 0\n' >> /etc/fstab > You really

[Puppet Users] Re: Puppet certification issue

2017-07-25 Thread jcbollinger
On Monday, July 24, 2017 at 9:26:39 AM UTC-5, nan meng wrote: > > 1. Version: > > Puppet: 4.10.4 > > Puppet server: 2.7.2 > > Puppet Agent: I do not use agent to do test. > > OS: Ubuntu 64-desktop 16.04 > > Openssl: 1.0.2g > 2. There is not any none default configuration. > > 3. Test command:

[Puppet Users] Re: Creating a user without a shadow entry

2017-07-25 Thread jcbollinger
On Monday, July 24, 2017 at 4:33:09 PM UTC-5, William Korb wrote: > > We have a rather non-standard requirement on our Puppet-managed Linux > systems, and I'm trying to figure out if/how Puppet can satisfy it. > [...] > The solution up to now was to use the same UID as generated by WINBIND to

[Puppet Users] Re: Sync the calls in a puppet module

2017-07-19 Thread jcbollinger
On Wednesday, July 19, 2017 at 5:27:39 AM UTC-5, Abhishek Kane wrote: > > Hi puppet experts, > > In classA I am calling some custom type and then calling classB. classB is > dependent on the work that is done in custom types. > > But in the puppet apply command I see that classB gets called

[Puppet Users] Re: Puppet certification issue

2017-07-19 Thread jcbollinger
On Tuesday, July 18, 2017 at 10:36:17 AM UTC-5, nan meng wrote: > > Hi all, > > I have tested puppet with version 4.1 and 2.x, found that if an agent > connect master without certification, the connection still can be > established. > I think it is not reasonable. Because if agent connect

[Puppet Users] Re: does puppet have api to run and apply catalogs

2017-07-11 Thread jcbollinger
On Monday, July 10, 2017 at 9:29:34 AM UTC-5, rahav jv wrote: > > Hi, > > I'm evaluating puppet and salt. > > salt has an api that helps us runs command and apply salt states (like > catalogs) on the endpoints. > > is there any such alternative in puppet, an api that can help apply a > catalog

[Puppet Users] Re: Avoiding duplicate declaration in a loop?

2017-07-07 Thread jcbollinger
On Thursday, July 6, 2017 at 4:45:53 PM UTC-5, buoyant_puppy wrote: > > Excuse my newbieness, but I'm having a basic misunderstanding regarding > loops. > > Say I have: joesfriends = jack, sam, sally > > I need to add each entry into a file - one per line. > > $joesfriends.each | String

[Puppet Users] Re: Variable scope on sub-defined ressource type

2017-06-27 Thread jcbollinger
On Monday, June 26, 2017 at 7:57:06 AM UTC-5, Prunk Dump wrote: > > Hello puppet Team ! > > I have trouble upgrading some code from puppet-3.7 to puppet-4.8. > > I have a class, a defined type, and a sub-defined type like this : > > [...] > So there is two "mainclass::myress" declaration.

Re: [Puppet Users] Puppet works on 41 times out of 43. Help?

2017-06-22 Thread jcbollinger
On Thursday, June 22, 2017 at 5:26:41 AM UTC-5, Robert Inder wrote: I don't understand why the behavior you describe occurs, but I also don't understand why you are trying to set the owner of the link in the first place, especially if the directory containing it belongs to root. >If I

[Puppet Users] Re: On Windows - using a resource from a different class

2017-05-11 Thread jcbollinger
On Thursday, May 11, 2017 at 9:51:09 AM UTC-5, jcbollinger wrote: > > [...] If, as in this case, you do not also place an *explicit* > dependency on that, then you are at risk of that dependency not being met. > Correction: it appears that perhaps you do place such a dependency

[Puppet Users] Re: On Windows - using a resource from a different class

2017-05-11 Thread jcbollinger
On Tuesday, May 9, 2017 at 7:31:30 AM UTC-5, jmp242 wrote: > > Not sure - maybe this is a horrible idea, but I've got a package I'm using > that would ideally use the same reboot resource as all my other packages, > but in this case is in it's own class because there are several steps that >

[Puppet Users] Re: Parameterized classes vs defined-types

2017-05-04 Thread jcbollinger
On Wednesday, May 3, 2017 at 4:35:02 PM UTC-5, Lesley Kimmel wrote: > > I've [somewhat] recently started developing Puppet modules for use with > Foreman[...] > I recently came across some modules on the Forge that got me considering > using modules with defined types exposing their

[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-03-31 Thread jcbollinger
On Thursday, March 30, 2017 at 12:58:46 PM UTC-5, Peter K wrote: > I've tried exec and sed, but I couldn't figure out the necessary escaping > to get the filename variable to parse (here I test with 'abc'): > define removeMinimumUID(){ > exec { '${filename}': > command =>

[Puppet Users] Re: Clarification on mount type behaviour

2017-03-30 Thread jcbollinger
On Wednesday, March 29, 2017 at 6:36:01 AM UTC-5, apgrif...@gmail.com wrote: > > Hi, > > From my testing it seems that when managing mount resources puppet only > compares the manifest against fstab and not mtab. For example if I have > > mount { '/tmp': > ensure => mounted, > options =>

Re: [Puppet Users] Re: virtual resource realizing by require?

2017-03-24 Thread jcbollinger
On Thursday, March 23, 2017 at 11:23:07 AM UTC-5, garima singh wrote: > > Hi, > > I was wondering if you could find a soultion to putting virtual resource > as target to require metaparameter. > There is no inherent problem with making a resource depend on a virtual resource. It is

[Puppet Users] Re: Unable to copy full content of directory in multiple location.

2017-03-21 Thread jcbollinger
On Monday, March 20, 2017 at 10:09:48 AM UTC-5, Pratip Ghosh wrote: > > Hi, > > I am facing following error to copy full content of directory in multiple > location. > > Error: Failed to apply catalog: Parameter command failed on Exec[copy]: > Command must be a String, got value of class Array

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

2017-03-06 Thread jcbollinger
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 model only allows each resource to run once during a catalog run, > and you can think of notify/subscribe as a special case of using

Re: [Puppet Users] Manage delivery and execution of RPMs not in YUM

2017-03-06 Thread jcbollinger
On Sunday, March 5, 2017 at 6:56:11 PM UTC-6, John Gelnaw wrote: > I created a second "mount point" in puppet via fileserver.conf, pointing > to a location outside the puppet git tree, so I could use > "puppet:///downloads/" as a source, synchronized that directory > to a local directory on

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

2017-02-21 Thread jcbollinger
On Tuesday, February 21, 2017 at 5:44:14 AM UTC-6, Chadwick Banning wrote: > > Autorequires: If Puppet is managing the user’s primary group (as provided >> in the gid attribute) or any group listed in the groups attribute then the >> user resource will autorequire that group. If Puppet is

[Puppet Users] Re: console parameter value with dollar becomes interpolation

2017-02-20 Thread jcbollinger
On Friday, February 17, 2017 at 10:40:57 AM UTC-6, João Matos wrote: > > Hi all > > we're trying to assign a value to a parameter with a dollar and that is a > problem. > adding a backslash only makes the string become backslashed which is not > what we want. Different types of quoting did

[Puppet Users] Re: ensure_resource should be the default behaviour

2017-02-16 Thread jcbollinger
On Wednesday, February 15, 2017 at 11:08:09 AM UTC-6, Poil wrote: > > Hi, > > After some years of writing puppet modules, I think the ensure_resource > behaviour (from stdlib) should be the default behaviour for all resources. > > This will simplify the code, and made Puppet more accessible

[Puppet Users] Re: inline classes

2017-02-16 Thread jcbollinger
On Wednesday, February 15, 2017 at 2:41:29 PM UTC-6, Ligne Six wrote: > > Hello folks, > > I'm wondering if it is possible to define-declare a class. Something like > inlining: > > instead of: > > ``` > include hello_distro >

[Puppet Users] Re: optimize my configuration

2017-02-14 Thread jcbollinger
On Monday, February 13, 2017 at 10:51:42 AM UTC-6, puppetstan wrote: > > thanks for your answer > > But with this conf, my package package-5.0.el6.noarch.rpm is automatically > downloaded even if my package version is 5.0. So it's my problem. I don't > want downloaded package

[Puppet Users] Re: Draft for new type and provider API

2017-02-07 Thread jcbollinger
On Tuesday, January 31, 2017 at 10:04:27 AM UTC-6, David Schmitt wrote: > > > The type and provider API has been the bane of my existence since I > [started writing native resources]( > https://github.com/DavidS/puppet-mysql-old/commit/d33c7aa10e3a4bd9e97e947c471ee3ed36e9d1e2 > ). > Honestly,

[Puppet Users] Re: Can we install puppet agent on multiple host machine using remote machine (considering puppet master is already installed on the remote machine)?

2017-01-31 Thread jcbollinger
On Monday, January 30, 2017 at 6:40:52 AM UTC-6, Patil Jyotsna wrote: > > Can we install puppet agent on multiple host machine using one remote > machine (considering puppet master is already installed on the remote > machine)? > > I suppose you mean to ask whether you can *use Puppet* to do

Re: [Puppet Users] Local variables lost outside of .each loop

2017-01-31 Thread jcbollinger
On Monday, January 30, 2017 at 3:34:40 PM UTC-6, Martin Alfke wrote: > > AFAIK all variables inside a lambda are “private”: > https://docs.puppet.com/puppet/latest/lang_lambdas.html#lambda-scope > > ... and this makes sense, because Puppet variables do not change value once set. For

Re: [Puppet Users] Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-24 Thread jcbollinger
On Friday, October 21, 2016 at 9:48:02 AM UTC-5, re-g...@wiu.edu wrote: > As it seems saz-rsyslog is the best puppet module for managing rsyslog, I > decided to take a hint from @jcbollinger on configuration, rather than > replacing the module. > > I decided to ch

Re: [Puppet Users] Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-20 Thread jcbollinger
On Wednesday, October 19, 2016 at 4:51:20 PM UTC-5, re-g...@wiu.edu wrote: > > > > On Tuesday, October 18, 2016 at 9:49:23 AM UTC-5, jcbollinger wrote: >> >> >> >> On Monday, October 17, 2016 at 3:15:51 PM UTC-5, re-g...@wiu.edu wrote: >>> >>

[Puppet Users] Re: Warning: Unable to fetch my node definition, but the agent run will continue:

2016-10-18 Thread jcbollinger
On Monday, October 17, 2016 at 10:43:44 AM UTC-5, John Gelnaw wrote: > > Some things to keep in mind for successful ENC scripts... > > First, on the agent, run: > > # facter fqdn > > This is the node name that will be reported to the puppet master > (equivalent to 'hostname -f'). > ... unless

Re: [Puppet Users] Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-18 Thread jcbollinger
gt;>> rnel...@gmail.com >>> >>> >>> I think I've given you a pretty good handle on the nature of the >>>> problem, and I'm inclined to think that a solution that addresses the >>>> problem at its root will take care of the whole suite of issues.

Re: [Puppet Users] Re: Puppet 4 under Ubuntu 16.04

2016-10-17 Thread jcbollinger
On Monday, October 17, 2016 at 6:14:07 AM UTC-5, Ilia Ternovich wrote: > > Hi, > > I would like to install puppet first and then manage my oracle jdk > installation with it. I don't need OpenJDK > ... for anything other than Puppetserver. As far as I know, puppetserver ought to run as well

Re: [Puppet Users] Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-13 Thread jcbollinger
On Wednesday, October 12, 2016 at 4:15:51 PM UTC-5, re-g...@wiu.edu wrote: > You were right, that catalog file > (server1:/var/lib/puppet/client_data/catalog/server1.mydomain.example.com.json) > > was from a successful build/run. There is no new catalog file when the > server1 node

Re: [Puppet Users] Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-12 Thread jcbollinger
On Tuesday, October 11, 2016 at 3:54:25 PM UTC-5, re-g...@wiu.edu wrote: > > > > On Monday, October 10, 2016 at 9:07:35 AM UTC-5, jcbollinger wrote: >> >> >> >> On Friday, October 7, 2016 at 10:39:58 AM UTC-5, re-g...@wiu.edu wrote: >>> >>&

[Puppet Users] Re: Declare ressources from another stage

2016-10-10 Thread jcbollinger
On Thursday, October 6, 2016 at 9:03:26 AM UTC-5, Prunk Dump wrote: > > > Can you help me on a more simpler and concrete example ? > > 1) My apt::client class have a defined type : > > Your apt::client class does not *have* such a defined type. Even if the type's definition appears

Re: [Puppet Users] Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-10 Thread jcbollinger
On Friday, October 7, 2016 at 10:39:58 AM UTC-5, re-g...@wiu.edu wrote: > > Well... The node I have been testing the duplicate declaration on uses a > puppet secondary-master server, as it is on a remote network segment. It > does not connect directly to the puppet primary-master in which The

[Puppet Users] Re: Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-10 Thread jcbollinger
On Thursday, October 6, 2016 at 9:04:14 AM UTC-5, re-g...@wiu.edu wrote: > > > I understand the duplicate declaration issue - I have been reading about it > for months trying to figure out this issue that keeps popping up. I am > trying to figure out how it is possible I am getting a

[Puppet Users] Re: Issue with module from forge - Duplicate declaration Class[Rsyslog]

2016-10-06 Thread jcbollinger
On Wednesday, October 5, 2016 at 2:32:37 PM UTC-5, re-g...@wiu.edu wrote: > > I installed the puppet module saz-rsyslog from puppet forge. > I use The Foreman to configure nodes. The Foreman is used by puppet via > configuration [master] "external_nodes" "/etc/puppet/node.rb" > > Since the

[Puppet Users] Re: Declare ressources from another stage

2016-10-05 Thread jcbollinger
On Tuesday, October 4, 2016 at 6:55:36 AM UTC-5, Prunk Dump wrote: > > Hello puppet users ! > > My problem is simple. I use the following classes in three different > stages (setup/main/runtime) : > > class { 'apt::client': > stage => 'setup', > } > ... > ... > class { 'hostpkg': } > ...

Re: [Puppet Users] duplicate resource with inherit and puppet apply

2016-10-03 Thread jcbollinger
On Friday, September 30, 2016 at 2:03:06 PM UTC-5, Toni Schmidbauer wrote: > > Henrik Lindberg writes: > > > On 28/09/16 14:30, Toni Schmidbauer wrote: > > I tried this on latest puppet: > > > > === test.pp > > class test::subclass {} > > class test inherits

[Puppet Users] Re: mount point directory permissions

2016-09-23 Thread jcbollinger
On Friday, March 21, 2014 at 11:41:25 AM UTC-5, Paolo wrote: > > Hi > > I have the following problem: in a certain module I need to set > permissions on a directory after the mount was executed. If I do the > following > > file { '/app_dir': > ensure => 'directory' > owner =>

Re: [Puppet Users] Re: notify resource different between 3 and 4?

2016-09-20 Thread jcbollinger
On Monday, September 19, 2016 at 10:03:14 AM UTC-5, R.I. Pienaar wrote: > > > > On 19 Sep 2016, at 15:31, jcbollinger <john.bo...@stjude.org > > wrote: > I see a difference between 3.8 and 4.6 with respect to the result of > interpolating an array into a string. In

[Puppet Users] Re: notify resource different between 3 and 4?

2016-09-19 Thread jcbollinger
On Friday, September 16, 2016 at 12:11:26 PM UTC-5, Christopher Wood wrote: > > While trying to figure out the reduce function with notice/notify I > happened across this thing. It looks like an unquoted array in the notify > resource's message only appears as its first array item. Not sure if

Re: [Puppet Users] HOWTO ERB Template generate an array of files

2016-09-19 Thread jcbollinger
On Sunday, September 18, 2016 at 3:42:36 AM UTC-5, Warron French wrote: > > Hi, thanks Peter. > > I am writing this module to write it based on the design I have had > because... being a little lazy I guess you might say/think. I know that I > could do a link, but I believe for something like

[Puppet Users] Re: yumrepo difference in behaviour between CentOS 6 and 7

2016-09-13 Thread jcbollinger
On Monday, September 12, 2016 at 10:48:15 AM UTC-5, Jonathan Gazeley wrote: > > Hi folks, > > I'm working on a manifest that manages the stock yum.repos.d definitions > from CentOS and can override some settings. This is tested and working > on CentOS 7 but produces different behaviour on

[Puppet Users] Re: simple node classification and custom facts

2016-09-07 Thread jcbollinger
On Tuesday, September 6, 2016 at 6:03:33 AM UTC-5, Berkeley wrote: > > I'm doing a refactor of my puppet code with the profiles+roles design > pattern. I'm encountering what should be a simple problem, but I'm having > trouble finding an answer. > > With roles/profiles, you instantiate

Re: [Puppet Users] Re: puppetserver unable to start after yum update

2016-09-07 Thread jcbollinger
On Tuesday, September 6, 2016 at 12:22:03 PM UTC-5, Matthaus Litteken wrote: > > [...] In answer to your second question, rpmnew files are for when a > configuration file has been changed by the user and a package update > changes it. Because yum/rpm can't safely replace the configuration

[Puppet Users] Re: Noop metaparameter in class not working as expected

2016-08-24 Thread jcbollinger
On Monday, August 22, 2016 at 9:08:20 AM UTC-5, Julio Guevara wrote: > > Last time I bump this email :/ > Anyone has any idea? > > The docs specify that: In addition to class-specific

[Puppet Users] Re: Puppet Without Agent

2016-08-16 Thread jcbollinger
On Monday, August 15, 2016 at 8:41:04 AM UTC-5, guilherme...@netbr.com.br wrote: > > Hi guys, > > I wonder if I can use the Puppet without agent. I only need the Puppet > connect on some servers through SSH and run some command lines. > > Do you know if Puppet do this? > > Puppet will not

Re: [Puppet Users] variable scoping and erb templates

2016-08-16 Thread jcbollinger
On Tuesday, August 16, 2016 at 7:06:28 AM UTC-5, Matt Zagrabelny wrote: > > Hi Lowe, > > On Tue, Aug 16, 2016 at 1:31 AM, Lowe Schmidt > wrote: > > What version of Puppet are you running? > > Debian Jessie: > > 3.7.2-4 > > That looks like bug PUP-1220

[Puppet Users] Re: How to refer to exported resource parameters in a template

2016-08-09 Thread jcbollinger
On Monday, August 8, 2016 at 3:55:38 PM UTC-5, Matthew Pounsett wrote: > > > I'm using puppet 4.4.1. I have a case where I need the IP addresses of > all the servers that fit a certain set of criteria to appear in a YAML list > in a config file on a particular host. > > It seems like the

Re: [Puppet Users] Re: puppet lvm module

2016-08-09 Thread jcbollinger
On Monday, August 8, 2016 at 6:35:42 PM UTC-5, Alex Samad wrote: > > Hi > > Sorry new to puppet, not sure which mechinism your talking about. > My point was not about the details of implementing custom types, it was simply that all native types -- both custom and Puppet-provided -- share a

[Puppet Users] Re: puppet lvm module

2016-08-08 Thread jcbollinger
On Monday, August 8, 2016 at 2:38:35 AM UTC-5, Alex Samad wrote: > > So it seems like i can access it as just filesystem > > Why is that, i presume it comes from the puppet/lvm module ??? > Custom types are implemented via the same mechanisms that the types included in the base package are

[Puppet Users] Re: Puppet not copying file from source

2016-08-01 Thread jcbollinger
On Sunday, July 31, 2016 at 12:22:19 PM UTC-5, calebl...@gmail.com wrote: > > I have an issue where it seems like puppet just skips some files entirely. > It copies one but not another. Code is identical. Path is 100% correct. The > same file works in an identical script(rtcp_iv1_0) but not

Re: [Puppet Users] Puppet module and Hiera variable access

2016-07-20 Thread jcbollinger
On Wednesday, July 20, 2016 at 4:42:59 AM UTC-5, Tobias Koeck wrote: > > Hi > > that worked. Thanks. > > So if I want to force the user to set the variables in Hiera I have to use > the hiera( .. ) function? > > That's an odd way to put it, but if I understand you correctly then yes. In other

Re: [Puppet Users] Dependacies with Custom Types

2016-07-13 Thread jcbollinger
On Wednesday, July 13, 2016 at 12:52:58 AM UTC-5, Josh Cooper wrote: [A clear and detailed explanation...] That was great, Josh. Are the same instructions available somewhere among Puppet's online docs and tutorials? If not, they should be. John -- You received this message because you

Re: [Puppet Users] Working with hiera and debugging

2016-07-05 Thread jcbollinger
On Saturday, July 2, 2016 at 1:21:03 AM UTC-5, Alex Samad wrote: > > Incase somebody googles to here > > > i found this > > puppet apply --certname= -e "notice(hiera('classes'))" --noop > --verbose > > This shows me what the puppet master is giving as classes for a specific > node based on

Re: [Puppet Users] Nodes getting catalog with incorrect resource.

2016-07-05 Thread jcbollinger
On Monday, July 4, 2016 at 4:20:12 PM UTC-5, Gino Lisignoli wrote: > > NRPE Module: https://github.com/example42/puppet-nrpe > > If you have a look at the params.pp file, lines 67-74 you will see a block > of code that sets the value of a variable depending on the operating system > version.

[Puppet Users] Re: how to chmod files within directory . . . .

2016-07-05 Thread jcbollinger
On Monday, July 4, 2016 at 4:07:25 PM UTC-5, Chris Tomlin wrote: > > . . . . . with one type of permissions and within that same directory, > chmod subdirectories with different permissions. > > I've tried to do this with find -type exec {} but it doesn't seem to work. > And I'm new to puppet

Re: [Puppet Users] Re: Question about custom exported resource

2016-06-30 Thread jcbollinger
On Wednesday, June 29, 2016 at 8:57:51 AM UTC-5, Bret Wortman wrote: > > I like that, John. Titles are guaranteed to be unique or the catalog won't > compile, right? This is absolutely supposed to be a one-and-only-one kind > of thing, so using title makes much more sense. > Yes, all

[Puppet Users] Re: Question about custom exported resource

2016-06-29 Thread jcbollinger
On Tuesday, June 28, 2016 at 9:56:52 AM UTC-5, Bret Wortman wrote: > > Here's what I'm trying to do, and I know there's a better way most likely > involving exported resources, but I haven't done much with them before. > > I've got two types of nodes deploying custom software which Puppet is

Re: [Puppet Users] Re: external node classifier my setup

2016-06-28 Thread jcbollinger
On Monday, June 27, 2016 at 6:42:58 PM UTC-5, Alex Samad wrote: > > On 27 June 2016 at 23:33, jcbollinger <john.bo...@stjude.org > > wrote: > > > > Alex, > > > > I will be brief(ish) this time, since wordiness seems not to be working. > > I

Re: [Puppet Users] Re: external node classifier my setup

2016-06-27 Thread jcbollinger
Alex, I will be brief(ish) this time, since wordiness seems not to be working. I've been around Puppet for a fairly long time, and I think I know what I'm talking about, but by all means do evaluate my claims for yourself. On Friday, June 24, 2016 at 9:20:58 PM UTC-5, Alex Samad wrote: >

Re: [Puppet Users] Re: external node classifier my setup

2016-06-24 Thread jcbollinger
On Thursday, June 23, 2016 at 6:11:11 PM UTC-5, Alex Samad wrote: > > On 24 June 2016 at 00:16, jcbollinger <john.bo...@stjude.org > > wrote: > [...] > > In the first place, I recommend not using multiple Puppet environments > > unless you have a Pupp

Re: [Puppet Users] Re: external node classifier my setup

2016-06-23 Thread jcbollinger
On Thursday, June 23, 2016 at 1:30:37 AM UTC-5, Alex Samad wrote: > > Hi > > So I am a bit of a newbie. My assumption was to setup using a master > puppet server. But I wanted to make sure that environment was handled > by the master puppet - I have control over that and I might not be >

[Puppet Users] Re: get one file with all server in puppet (export resource)

2016-06-23 Thread jcbollinger
On Thursday, June 23, 2016 at 4:17:39 AM UTC-5, Andreas Dvorak wrote: > > Hi, > > now I have change it a little, but it still does not work. > > class check_mk::agent::serverlist { > @@server_list { "$::hostname": > filename => '/tmp/checkmkhosts', > } > > define server_list (

[Puppet Users] Re: external node classifier my setup

2016-06-22 Thread jcbollinger
On Wednesday, June 22, 2016 at 2:21:27 AM UTC-5, Alex Samad wrote: > > :))) > > seems like after writing this I found my answer > > I used > > puppet agent --test --verbose > > shows me that it is classified as environment alex. thats good. > > but > puppet config print environment > still

Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-14 Thread jcbollinger
On Monday, June 13, 2016 at 7:45:12 AM UTC-5, Matt Larson wrote: > > Eric et al, > > Thanks again for your help with this! I realize how crazy it may seem to > want to rebuild from source. My company has become so paranoid of open > source software due to recent events, > At the risk of

[Puppet Users] Re: How to handle multiple modules requiring the same packages

2016-06-13 Thread jcbollinger
On Monday, June 13, 2016 at 5:21:42 AM UTC-5, Justin Rowles wrote: > > At risk of bumping a now truly ancient thread (which I found because I > have a 3rd party module and one of my own which both want to control a > specific package), I don't see why puppet should complain when two >

[Puppet Users] Re: Run Puppet Class only once

2016-06-09 Thread jcbollinger
On Tuesday, June 7, 2016 at 5:13:33 AM UTC-5, Christoph wrote: > > Hi there, > > I want to run a whole puppet class only once when provisioning a system > for the first time. > > Unfortunately I do not find a way to do this. > > I know how to run commands once using onlyif or unless or

[Puppet Users] Re: Include class with parameters

2016-06-09 Thread jcbollinger
On Wednesday, June 8, 2016 at 11:49:58 PM UTC-5, Harish Kothuri wrote: > > Hi, > > I have classA with parameter and i want to include this in another classB > . I expected to consider the default value defined in foreman for classA > but it's not happening. > > > class classA ($version) > { >

Re: [Puppet Users] Re: Hiera, define, class, putting all together

2016-06-08 Thread jcbollinger
On Tuesday, June 7, 2016 at 8:02:24 AM UTC-5, Helmut Schneider wrote: > > jcbollinger wrote: > > Without the case statement, how can I make sure that ubuntu only > receives classes for ubuntu and not e.g. for Windows then? > > That is where your data hierarchy comes

Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-08 Thread jcbollinger
On Wednesday, June 8, 2016 at 4:06:10 AM UTC-5, Matt Larson wrote: > > I did try installing via the PC1 (AIO) repo, and it worked ok for me at > home. But like I said, can't do that at work. > > What is your main concern with AIO? I don't wanna make a bad step here. > At first, AIO sounded

[Puppet Users] Re: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class

2016-06-06 Thread jcbollinger
> > > I ran 'puppet module list' and got the following. > /etc/puppet/environments/production/modules > [...] And are you certain that node server01 is in the 'production' environment? That is the default, but you do mention that you have at least one other. Does file

[Puppet Users] Re: Hiera, define, class, putting all together

2016-06-06 Thread jcbollinger
On Saturday, June 4, 2016 at 7:20:19 PM UTC-5, Helmut Schneider wrote: > > Hi, > > I'm new to puppet and read docs as much as possible, so forgive some > confusion in my code. > > [...] > nodes/xyz.yaml: > packages: > - postfix > - wget > apacheModules: > - mpm_prefork > -

Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-03 Thread jcbollinger
On Friday, June 3, 2016 at 1:51:10 PM UTC-5, LinuxDan wrote: > > First Silly Question: Why ? > What do you need to do that cannot be done with the RPM's from a > Puppetlabs repo ? > If I were undertaking the exercise, it would be to avoid the AIO structure. I may one day undertake that

<    1   2   3   4   5   6   7   8   9   10   >