Re: [Puppet Users] puppetlabs-lvm & inconsistency of pv devices

2024-05-08 Thread 'Tim Mooney' via Puppet Users
truggled with that question too, so I look forward to hearing what other sites are doing. I've also never been sure what the best practice is for where these type of host-specific resources should be in the overall class hierarchy. Tim -- Tim Mooney tim.moo...@

[Puppet Users] puppet idiom to select particular module stream?

2023-09-11 Thread 'Tim Mooney' via Puppet Users
the correct stream, then the 2nd package resource does install the version we want. Obviously, we want to control the one-time module stream selection in puppet too. Can anyone tell me what the correct idiom is to do what I'm trying to accomplish? Thanks! Tim -- Tim Mooney

Re: [Puppet Users] Can I store RPM's on the Puppet Server to install on agents ?

2022-09-29 Thread 'Tim Mooney' via Puppet Users
running a web server, you're most of the way there already. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing & Infrastructure / Division of Information Technology/701-231-1076 (Voice) North Dakota State University, Fargo

[Puppet Users] modules for NetworkManager

2022-07-26 Thread 'Tim Mooney' via Puppet Users
-- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing & Infrastructure / Division of Information Technology/701-231-1076 (Voice) North Dakota State University, Fargo, ND 58105-5164 -- You received this message because you are subscr

Re: [Puppet Users] RHEL 9 agent support?

2022-06-13 Thread 'Tim Mooney' via Puppet Users
! Much appreciated. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing & Infrastructure / Division of Information Technology/701-231-1076 (Voice) North Dakota State University, Fargo, ND 58105-5164 -- You received this mes

[Puppet Users] RHEL 9 agent support?

2022-06-13 Thread 'Tim Mooney' via Puppet Users
RHEL 9 has been out for a few weeks. I see OpenSource puppet agent 7 and puppet bolt packages for RHEL 9, but no OpenSource puppet agent 6 releases. Are there plans to package puppet agent 6 for RHEL 9? Tim -- Tim Mooney tim.moo...@ndsu.edu

Re: [Puppet Users] upgrading opensource from 5.5 to 6.x

2020-05-14 Thread Tim Mooney
r than 3.8.x to 5.x. Martin's info confirmed that I had found everything I needed. The Example42 blog post Martin linked was also very helpful in working around the CA changes. The upgrade went smoothly and we've been using 6.x for a few weeks now. Thanks again! Tim On 19. Mar 2020, at 00:09

[Puppet Users] upgrading opensource from 5.5 to 6.x

2020-03-18 Thread Tim Mooney
between 3.8 and 5.x, but there has to be more to it than just update the packages without making any changes to your config files, etc. For others that have been through the same upgrade recently, what docs did you follow, and were there any gotchas that weren't covered? Thanks! Tim -- Tim Mooney

Re: [Puppet Users] Re: managing users and grants with recent puppetlabs-mysql

2019-01-23 Thread Tim Mooney
are the replacements for these resources that have transitioned to "private"? It just seems strange to me to mark something as private without first having an established replacement. Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise

[Puppet Users] managing users and grants with recent puppetlabs-mysql

2019-01-22 Thread Tim Mooney
searched these forums and the web, and other than an outdated and now incorrect hit on StackOverflow, I'm not finding information on what should replace *public* use of mysql_user and mysql_grant. Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-13 Thread Tim Mooney
modernize and hopefully simplify several of our home-grown modules and classes. The time you took to read and reply is greatly appreciated. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing & Infrastructure 701-231-1076 (Voice) Room

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-13 Thread Tim Mooney
. The options you considered and then rejected, and the reasons why were also very useful to hear. Between you and John, I have lots of great suggestions that I now need to consider. Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-12 Thread Tim Mooney
In regard to: Re: [Puppet Users] class parameters that depend on other...: On 2018-06-12 00:55, Tim Mooney wrote: [snip some of my original context] Here's an example: modules/sandbox/manifests/init.pp: # # This module exists only to serve as a sandbox where we can experiment with # puppet

[Puppet Users] class parameters that depend on other parameters

2018-06-11 Thread Tim Mooney
inherits from sandbox::params to follow the "params pattern", so settings in the parent class end up depending upon on parameters to the child class. Assuming I don't have any need to support old versions of puppet (anything before 5.x), what's

[Puppet Users] debugging catalog issue for one client after upgrade

2015-06-18 Thread Tim Mooney
master and the client, if anyone is interested in looking through it. Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin Burdick Building 701-231-8541

Re: [Puppet Users] Re: workarounds for ruby segfaults on puppet master

2014-11-25 Thread Tim Mooney
thoughts on this! Very much appreciated. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin Burdick Building 701-231-8541 (Fax) North Dakota State University

Re: [Puppet Users] Re: workarounds for ruby segfaults on puppet master

2014-11-25 Thread Tim Mooney
of ruby on the master vs. all of the clients? Have other RHEL users tried this, with any success? Thanks, Tim -- Tim Mooney tim.m...@ndsu.edu javascript: Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin

Re: [Puppet Users] Re: workarounds for ruby segfaults on puppet master

2014-11-20 Thread Tim Mooney
helpful! Thanks so much for the information you've provided! It very likely has saved me a lot of work. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin Burdick Building

[Puppet Users] workarounds for ruby segfaults on puppet master

2014-11-19 Thread Tim Mooney
Labs packages anymore, at least on the master. The big concern I have relates to how advisable it is to use a different version of ruby on the master vs. all of the clients? Have other RHEL users tried this, with any success? Thanks, Tim -- Tim Mooney

Re: [Puppet Users] Re: creating hashes from other hashes

2014-11-13 Thread Tim Mooney
In regard to: Re: [Puppet Users] Re: creating hashes from other hashes,...: On 2014-07-11 23:43, Tim Mooney wrote: In regard to: [Puppet Users] Re: creating hashes from other hashes, Luke...: Huh, at first glance that to me looks like a parser bug. Not so much a bug as an unessesary

Re: [Puppet Users] Re: creating hashes from other hashes

2014-11-07 Thread Tim Mooney
to accomplish this task with stdlib::merge either. Thanks, Tim -- Tim Mooney tim.m...@ndsu.edu javascript: Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin Burdick Building 701-231-8541 (Fax) North

[Puppet Users] creating hashes from other hashes

2014-11-06 Thread Tim Mooney
hash, give it a single top-level key that is a variable, and assign a separate (passed-in as a parameter) hash as the value for that key? I would be fine with using stdlib::merge, but I don't see any obvious way to accomplish this task with stdlib::merge either. Thanks, Tim -- Tim Mooney

[Puppet Users] parameters for puppetlabs-apache module with RHEL SCL httpd24

2014-10-03 Thread Tim Mooney
parameters in the puppetlabs-apache module assume the older 'httpd' package, /etc/httpd for the base dir, etc. I'm looking for what parameters people are passing to the apache class to get it to work with the httpd24 alternate. Thanks, Tim -- Tim Mooney

[Puppet Users] advice and best practices for environments

2014-07-17 Thread Tim Mooney
and subversion would be greatly appreciated! Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin Burdick Building 701-231-8541 (Fax) North Dakota

Re: [Puppet Users] Re: RHEL7 facts missing

2014-06-25 Thread Tim Mooney
. -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin Burdick Building 701-231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164 -- You

Re: [Puppet Users] Re: selecting a command in a provider based on class variable?

2014-04-14 Thread Tim Mooney
In regard to: [Puppet Users] Re: selecting a command in a provider based on...: On Friday, April 11, 2014 7:15:05 PM UTC-5, Tim Mooney wrote: Hi All! The tl;dr version: Can anyone point me at an example of an existing provider that selects a particular command based not on a facter fact

[Puppet Users] selecting a command in a provider based on class variable?

2014-04-11 Thread Tim Mooney
, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin Burdick Building 701-231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164 -- You received

Re: [Puppet Users] error testing puppet 3.x upgrade: You need rubygems to use Hiera

2014-01-17 Thread Tim Mooney
responses. Any suggestions as to what the problem really is, because it's *not* that I'm missing rubygems. Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, Quentin

Re: [Puppet Users] error testing puppet 3.x upgrade: You need rubygems to use Hiera

2014-01-09 Thread Tim Mooney
didn't make any difference. I definitely appreciate the response and the suggestions for stuff to look for, but unfortunately it doesn't seem to be what's causing the issue. Tim On 1/8/2014 5:16 PM, Tim Mooney wrote: All- I've been struggling with this all afternoon, so it's time to ask

[Puppet Users] error testing puppet 3.x upgrade: You need rubygems to use Hiera

2014-01-08 Thread Tim Mooney
response. Brent Clark posted to this list in December with the same problem, but there were no follow-up responses. Any suggestions as to what the problem really is, because it's *not* that I'm missing rubygems. Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu

Re: [Puppet Users] passing an environment variable to a command in a provider

2013-07-01 Thread Tim Mooney
In regard to: Re: [Puppet Users] passing an environment variable to a...: On Fri, Jun 28, 2013 at 2:03 PM, Tim Mooney tim.moo...@ndsu.edu wrote: We have some custom types providers related to mysql (mysql_user, mysql_grant, mysql_db) written by an admin that's no longer here. The provider

Re: [Puppet Users] passing an environment variable to a command in a provider

2013-07-01 Thread Tim Mooney
In regard to: Re: [Puppet Users] passing an environment variable to a...: On Jun 28, 2013 2:06 PM, Tim Mooney tim.moo...@ndsu.edu wrote: works fine, but on hosts where we use our mysql module with the custom types and provider, we can't do that. We instead have to sudo su

[Puppet Users] passing an environment variable to a command in a provider

2013-06-28 Thread Tim Mooney
as puppet ignorance, but I have to believe that there are people here that can point me in the right direction. Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC

Re: [Puppet Users] Puppetdb source install on Solaris. Agents complain about invalid encoding (UTF-8//IGNORE, UTF-8)

2012-11-30 Thread Tim Mooney
presented a slight barrier to entry for becoming really comfortable with puppet. ruby -e require 'iconv'; puts Iconv.list.sort That should dump out the list of available encodings. That should help us at least more properly triangulate the issue. Tim -- Tim Mooney

Re: [Puppet Users] upgrading puppet

2012-11-28 Thread Tim Mooney
it to work again. My recommendation is that you install 3.0.x somewhere, install puppet-lint, and use puppet-lint and puppet parser validate on your manifests. Study the output from both, and adjust accordingly. Tim -- Tim Mooney tim.moo...@ndsu.edu

Re: [Puppet Users] Managing ssh server's keys?

2012-11-26 Thread Tim Mooney
and we're using %H (fqdn) rather than %h (short host name). Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota

Re: [Puppet Users] New to Puppet -- why the puppet user

2012-11-26 Thread Tim Mooney
). Note that if your puppet master is a client of itself (or some other puppet master) then the puppet agent running there still needs to be run as root. The agent enforces the state, which requires administrative access. The master calculates the state, which doesn't. Tim -- Tim Mooney

Re: [Puppet Users] Re: Seeking some Puppet advice for a newbie (specifically Virtualmin/CSF related)

2012-11-20 Thread Tim Mooney
that's running http and has enough disk space to store your RPMs, you're already most of the way there. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building

Re: [Puppet Users] Puppet - Postfix - How-To edit generic.db

2012-11-09 Thread Tim Mooney
:/usr/sbin', command = 'postmap generic', refreshonly = true, notify = Service['postfix'], } restart service postfix service { 'postfix': ensure = running, enable = true, } Tim -- Tim

Re: [Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Tim Mooney
currently stand booleans from hiera are just a trap for the unwary. I would actually do the wordpress stuff as a separate class, which has its own wordpress::instance define, and then call that define from within your sugar::instance define. Tim -- Tim Mooney

Re: [Puppet Users] Install RPM package via puppet

2012-11-01 Thread Tim Mooney
need to define your repo to puppet and then use a very standard package resource to make it present. Note the yumrepo resource type supports a lot more attributes, which you may wish to investigate. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise

Re: [Puppet Users] RHEL 6 Protected multilib versions Requirment to have both 32 and 64 bit libs installed.

2012-10-29 Thread Tim Mooney
rpmbuild -ba -v rhn-satellite-32bit-deps.spec and then you put that package in your local repo and have puppet package { 'rhn-satellite-32bit-deps': ensure = installed, } This virtual package then pulls in whatever dependencies you have listed. Tim -- Tim

Re: [Puppet Users] Have Class Only Perform Actions When There Is Work To Do (i.e. Making Them Idempotent)

2012-10-26 Thread Tim Mooney
/lib/dir is not present. But if you're going to build fetch/extract/configure/compile/install logic into a shell script, you're probably 85% of the way to packaging the software appropriately anyway. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise

Re: [Puppet Users] Have Class Only Perform Actions When There Is Work To Do (i.e. Making Them Idempotent)

2012-10-26 Thread Tim Mooney
In regard to: Re: [Puppet Users] Have Class Only Perform Actions When There...: On Friday, October 26, 2012 2:31:56 PM UTC-4, Tim Mooney wrote: In regard to: [Puppet Users] Have Class Only Perform Actions When There Is...: I would highly recommend you just package your custom python

Re: [Puppet Users] Puppet Oracle Database config management

2012-10-25 Thread Tim Mooney
In regard to: Re: [Puppet Users] Puppet Oracle Database config...: Have you got any examples of the hiera config you're using? As I said, it's pretty rough. class oracledb::sysctl( $use_amm = false, $large_mem_pages = '0', $hugetlb_gid = '1001', ) { validate_bool($use_amm)

Re: [Puppet Users] Puppet Oracle Database config management

2012-10-24 Thread Tim Mooney
in the manifest for whether AMM is in use or hugepages. We too have multiple databases per host, which complicates things somewhat. If you come up with something you feel is even moderately elegant, consider sharing it on the forge. Tim -- Tim Mooney tim.moo

Re: [Puppet Users] Managing untemplatable configuration files

2012-10-24 Thread Tim Mooney
and keep refining. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota State University, Fargo, ND 58105

Re: [Puppet Users] Re: The free software tarballs are now difficult to find

2012-10-15 Thread Tim Mooney
seems to follow any notion of versions or releases. This makes packaging and local version tracking a bit more tricky. I see that you PuppetLabs folks are continuing to do a good job of tagging release versions, though. That's great news, and I certainly hope it continues. Tim -- Tim Mooney

Re: [Puppet Users] One client out of 150 doesn't apply config changes

2012-10-13 Thread Tim Mooney
info: Applying configuration version '1349982313' notice: Finished catalog run in 49.28 seconds Does it change if you also add '--no-noop' to the puppet apply command? Is it possible someone modified /etc/puppet.conf and added 'noop = true'? Tim -- Tim Mooney

Re: [Puppet Users] anchor pattern and class containment status

2012-10-04 Thread Tim Mooney
In regard to: Re: [Puppet Users] anchor pattern and class containment...: On Wed, Oct 3, 2012 at 2:57 PM, Tim Mooney tim.moo...@ndsu.edu wrote: All- We're currently using puppet 2.7.14 on master and all clients. I thought I understood why 'anchor' is part of stdlib, but after re-reading

Re: [Puppet Users] anchor pattern and class containment status

2012-10-04 Thread Tim Mooney
In regard to: Re: [Puppet Users] anchor pattern and class containment...: On Wed, Oct 3, 2012 at 2:57 PM, Tim Mooney tim.moo...@ndsu.edu wrote: I thought I understood why 'anchor' is part of stdlib, but after re-reading both I suspect Dan John have covered this well enough for you but I

[Puppet Users] anchor pattern and class containment status

2012-10-03 Thread Tim Mooney
for standard resources. Also, the ticket was with respect to 2.6. I know this hasn't changed for 2.7, but is there anything in 3.0 that addresses the issue? Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231

Re: [Puppet Users] Puppet module dependencies

2012-09-28 Thread Tim Mooney
the 'before = Class[slave]' that you're using isn't doing what you want. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax

[Puppet Users] nested modules and autoloading

2012-09-28 Thread Tim Mooney
file, but I've reviewed the classes involved here and don't see any problems. Any thoughts on whether it's possible to load the top level of a nested class? Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701

Re: [Puppet Users] nested modules and autoloading

2012-09-28 Thread Tim Mooney
to our VCS. :-| Oops. Thanks, Tim On 28.09.2012, at 12:53, Tim Mooney wrote: All- I'm using puppet 2.7.14. I've reviewed http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html but it doesn't seem to cover what I'm attempting. Consider a module layout like

Re: [Puppet Users] Re: Module critique

2012-09-07 Thread Tim Mooney
. We looked at templating some of the config but decided that was more advanced than what we wanted for our first solr roll-out. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6

Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Tim Mooney
://groups.google.com/group/puppet-users?hl=en. -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota State

Re: [Puppet Users] Getting all variable occurrences from Hiera

2012-08-23 Thread Tim Mooney
In regard to: Re: [Puppet Users] Getting all variable occurrences from...: On Wednesday, August 22, 2012 6:01:06 PM UTC-7, Tim Mooney wrote: If I need to open a separate ticket to get that kind of directional clarity, I would be happy to do so. A ticket specifically about this use-case

Re: [Puppet Users] package handling in puppet?

2012-08-22 Thread Tim Mooney
a bit of perspective from people who are already using puppet in the wild. I'm hoping that other more experienced puppet users will weigh in on this too, as I certainly am not expert enough yet to have all the answers for this particular area. Tim -- Tim Mooney

Re: [Puppet Users] Re: Getting all variable occurrences from Hiera

2012-08-22 Thread Tim Mooney
as many of the Puppetlabs employees, that would be pretty easy, but unfortunately I'm not. I do appreciate the response! It's really nice to know the thoughts of the people that are the experts on this. It helps me to plan the direction for our environment. Tim -- Tim Mooney

Re: [Puppet Users] Getting all variable occurrences from Hiera

2012-08-22 Thread Tim Mooney
saying either bad idea, don't do it or yeah, should work and we're not opposed to it. If I need to open a separate ticket to get that kind of directional clarity, I would be happy to do so. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing

Re: [Puppet Users] Dynamic Lookup of facter variable.

2012-08-21 Thread Tim Mooney
that this kind of thing is going to happen on occasion, especially when a major release is in the works. I certainly do. The trick is going to be stamping out places where you must top-scope facts may have already crept into documentation or people's puppet idioms. Tim -- Tim Mooney

Re: [Puppet Users] package handling in puppet?

2012-08-21 Thread Tim Mooney
system pull in the prereqs, rather than trying to repeat all of the same relationships in your puppet classes. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building

Re: [Puppet Users] puppet-lint and 80 characters line limit?

2012-08-20 Thread Tim Mooney
for the thread and some options. I believe the subject was linting manifests with long lines. My solution: 01:20 PM dogbert ~$ cat ~/.puppet-lintrc --no-80chars-check Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure

Re: [Puppet Users] Dynamic Lookup of facter variable.

2012-08-20 Thread Tim Mooney
system... [us1:i-16c5c050] root@testweb11:~# facter | grep ec2_instance_type ec2_instance_type = m1.large It's a facter variable. What's it complaining about? -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231

Re: [Puppet Users] Dynamic Lookup of facter variable.

2012-08-20 Thread Tim Mooney
. It's one of those things that I wish I had known before I spent hours changing our modules in preparation for what I thought was going to be a requirement for puppet 3.x, but better late than never. :-) I appreciate the clarity you've provided on this. Tim -- Tim Mooney

Re: [Puppet Users] Re: Getting all variable occurrences from Hiera

2012-08-17 Thread Tim Mooney
: ntp_type: client ntp_servers: - 10.0.0.1 - 10.0.0.2 location/datacenter1.yaml: ntp_servers: - 10.1.0.101 - 10.1.0.102 fqdn/clock1.example.com.yaml: ntp_type: server As I've said before on the list, this strikes me as a bit unnatural. Tim -- Tim Mooney

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-17 Thread Tim Mooney
to your question, but hopefully this gives you something to go on. If it's not enough to go on, provide more information about your environment. That will hopefully make it easier for someone to suggest a method that works well for your environment. Tim -- Tim Mooney

[Puppet Users] how to resolve hostnames to IP addresses in templates

2012-08-09 Thread Tim Mooney
for the host key for each element. Anyone have an example of how to do this in a template? Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building

Re: [Puppet Users] how to resolve hostnames to IP addresses in templates

2012-08-09 Thread Tim Mooney
with how our complex data should be organized in hiera. I'm looking forward to the hiera examples that Kelsey Hightower mentioned a couple weeks ago on the list, but seeing examples like this in the interim is really helpful and appreciated. Tim On Aug 9, 2012, at 3:38 PM, Tim Mooney tim.moo

Re: [Puppet Users] Re: how to resolve hostnames to IP addresses in templates

2012-08-09 Thread Tim Mooney
direction. Tim On Thursday, August 9, 2012 1:38:14 PM UTC-7, Tim Mooney wrote: Environment: puppet 2.7.14 on both master and all clients. We're also using puppetlabs-stdlib and hiera, if that matters. I know this is really more of a ruby/erb question, but I've been searching for a couple

Re: [Puppet Users] how to resolve hostnames to IP addresses in templates

2012-08-09 Thread Tim Mooney
via _ method that we're currently using. My hope is that some best practices and more examples with be part of some forthcoming documentation. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice

Re: [Puppet Users] Re: A few questions about setting up Custom Facts

2012-08-08 Thread Tim Mooney
result back to the client for application. Note also that this means that all functions run on the master too. See: http://docs.puppetlabs.com/learning/agent_master_basic.html though I've actually seen better diagrams of the communication, that's the one I'm finding right now. Tim -- Tim

Re: [Puppet Users] Could not evaluate: Could not retrieve information from environment production source(s) for one module, for other is ok

2012-08-06 Thread Tim Mooney
to look. Try using yes/no (as strings) and checking for that in your class. You may also want to run puppet-lint on your manifests, it's not perfect but it will help catch a number of issues. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing

Re: [Puppet Users] Re: The Puppet Way to handle slow resources? (newbie)

2012-07-12 Thread Tim Mooney
to do whatever is needed to work correctly with puppet. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota

Re: [Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread Tim Mooney
would try next. Note that split() is part of the default set of functions that are part of puppet. For more info on functions, see http://docs.puppetlabs.com/references/stable/function.html Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise

Re: [Puppet Users] groups dependencies at user creation

2012-07-02 Thread Tim Mooney
don't know if that same thing is true for supplemental groups, but if it's not, I would first try using the - notation to establish ordering, like this Group[$groups] - User[$username] Does that work for you? Tim -- Tim Mooney tim.moo...@ndsu.edu

Re: [Puppet Users] Nvidia driver install - condition for install

2012-06-29 Thread Tim Mooney
, but it wouldn't cause the exec to happen unless then driver was detectable as not available. The real trick is detecting whether or not the driver is installed. Once you figure out how to do that, the rest just falls into place. Tim -- Tim Mooney

Re: [Puppet Users] hiera questions

2012-06-29 Thread Tim Mooney
or our_site module already that just does things like include ntp include admin_packages include ssh include syslog etc. You could associate your custom fact(s) with that module by putting them in the lib/facter directory for that module. Tim -- Tim Mooney

Re: [Puppet Users] Hiera Tutorials

2012-06-29 Thread Tim Mooney
complicated data structures. Both recommendations on whether or not that's a good idea *and* examples on how to successfully access the nested bits from within puppet would be appreciated. Advanced examples with create_resources() might also be useful. Thanks much, Tim -- Tim Mooney

Re: [Puppet Users] puppet node report

2012-06-29 Thread Tim Mooney
developing your own (perhaps one for a database). See http://puppetlabs.com/blog/when-puppet-reports-part-1/ Note also there's a part 2 that you'll want to check out. The most straightforward method would probably be to enable the yaml backend and just pull the data from there. Tim -- Tim

Re: [Puppet Users] canĀ“t call custom fact

2012-06-29 Thread Tim Mooney
is working correctly, but the code itself isn't doing what you expect. If it doesn't exist, then it's not getting synced down to the client(s) correctly, so you'll need to debug why that is. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing

Re: [Puppet Users] Re: advice on module/class refactoring for defines

2012-05-25 Thread Tim Mooney
That's all around the best available option. It's much nicer than the original version, even, because users don't have to separately include class 'ldconfig' before they can use the define. Agreed, that's something I was hoping to avoid. Thanks, Tim -- Tim Mooney

Re: [Puppet Users] advice on module/class refactoring for defines

2012-05-25 Thread Tim Mooney
-- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164 -- You received

Re: [Puppet Users] linting manifests with long lines

2012-05-24 Thread Tim Mooney
In regard to: Re: [Puppet Users] linting manifests with long lines, Nan Liu...: On Mon, May 21, 2012 at 11:55 AM, Tim Mooney tim.moo...@ndsu.edu wrote: All- I've been working through our local manifests with puppet-lint, trying to make certain we're as prepared as possible for puppet 3.x. I

[Puppet Users] advice on module/class refactoring for defines

2012-05-24 Thread Tim Mooney
}]', but that too seems pretty hackish, though it may be my fall-back position if someone doesn't have a more elegant way to handle this. Any thoughts on how this should be re-organized? Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise

[Puppet Users] linting manifests with long lines

2012-05-21 Thread Tim Mooney
( '', 'http://some-relatively-long-url.com', '/some-path/centos$releasever/$basearch' ), gpgcheck = '1', descr= 'Some Yum Repository', } } Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure

Re: [Puppet Users] mixing source content (templates) in concat::fragment

2012-05-03 Thread Tim Mooney
'), ], order = '01', } puppet does not support this either :) what you'll get there is a concat of the 2 templates Oh, that's quite disappointing. We'll need to completely rethink how we're doing this. Thanks again, Tim -- Tim Mooney tim.moo...@ndsu.edu

[Puppet Users] mixing source content (templates) in concat::fragment

2012-05-02 Thread Tim Mooney
. Can anyone suggest a more elegant method, or some syntax that I'm missing? Thanks, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701

Re: [Puppet Users] mixing source content (templates) in concat::fragment

2012-05-02 Thread Tim Mooney
.${::fqdn}.erb), template('firewall/firewall-base'), ], order = '01', } Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701

Re: [Puppet Users] Optional values from Hiera (no default value)

2012-04-26 Thread Tim Mooney
today. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164 -- You

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Tim Mooney
- what version is present in each instance Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North

Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Tim Mooney
In regard to: Re: [Puppet Users] Telly: Nagios types moving into Module,...: If I wanted to use a secondary package management system, I could use gems or eggs or CPAN, but I don't. ;) +1. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing

Re: [Puppet Users] Need advice how to architect solution for /etc/resolv.conf

2012-03-16 Thread Tim Mooney
for /etc/resolv.conf which simply plug in data available in variables accessible by the template You probably could do that, but I think the template will be more complicated this way. Selecting different templates based on what type of system it is makes the template simpler. Tim -- Tim Mooney

Quoting 'true' and 'false' (was: Re: [Puppet Users] new user: need Conditional statement example within a file resource type)

2011-12-16 Thread Tim Mooney
, and what are the recommendations for whether we should (or shouldn't) be quoting true false when passing them around into parameterized classes and testing them in selectors? Thanks much, Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing

Re: [Puppet Users] Re: hasstatus not working as expected

2011-08-12 Thread Tim Mooney
amount of whitespace # For some reason iptables -L has a whitespace after NEW if [ $? = 0 ]; then echo iptables is running exit 0 else echo iptables is stopped exit 3 fi ;; ** Tim -- Tim Mooney moo

[Puppet Users] augeas modify pam.d argument by relative position

2011-08-06 Thread Tim Mooney
an idea how I can rewrite things so that the match isn't dependent on the exact current order of arguments, and instead matches relative to the position of a previous argument (uid) or pair of arguments (uid and =)? Any thoughts appreciated, Tim -- Tim Mooney