[Puppet Users] Customizing existing types / providers

2018-02-02 Thread Andrew Schofield
Hi all, I'm trying to customize the existing package type by adding an additional option for the ensure option so that I would be able to do the following: package { 'RHSA-2018:0001' : ensure => 'errata' } I have a new provider named errata which sort of works but is far too sensitive to ot

[Puppet Users] Possible to subscribe to all resources of a specific type?

2016-01-12 Thread Schofield
Is it possible to subscribe to a specific type? For example, refresh a resource if any resources of the type 'user' change? If so what's the syntax? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop rece

Re: [Puppet Users] Error on puppet agent after upgrade to 3.7.1.

2014-11-11 Thread Schofield
On Tuesday, November 11, 2014 9:09:33 AM UTC-5, jcbollinger wrote: > > > > Facter appears to be buggy here, and I encourage you to file a ticket > about it. (It should ignore subdirectories in the executable search path, > as the 'which' command it is trying to emulate does.) > https://ticket

[Puppet Users] Strict ordering of structured facts in mcollective facts.yaml

2014-11-11 Thread Schofield
After updating to facter 2.3 the structured fact ordering is different on every puppet run causing changes on every run. Debug: /Stage[main]/Mcollective::Facts/File[/etc/mcollective/facts.yaml]/content: --- /etc/mcollective/facts.yaml 2014-11-11 10:46:13.168223932 -0500 +++ /tmp/puppet-file20141

Re: [Puppet Users] Error on puppet agent after upgrade to 3.7.1.

2014-11-10 Thread Schofield
Isolated the problem Facter 2.1.0 introduced the partitions fact. This fact calls Facter::Core::Execution::Posix.which('blkid') to locate the blkid executable. Turns out there is a directory /etc/blkid which unfortunately for us is on the PATH before /sbin/blkid. Facter::Core::Execution::

[Puppet Users] Error on puppet agent after upgrade to 3.7.1.

2014-11-08 Thread Schofield
After upgrading a puppet agent from v3.0.1 to v3.7.1 on a CentOS 6.5 server I get the following error during a puppet agent run. [junk-01: SU: lib/facter 455] puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts */usr/lib/ruby/site_ruby/1.8/rubygems/custom_r

Re: [Puppet Users] Using gem from new puppetserver custom function?

2014-10-15 Thread Schofield
Thanks for the reply. That does indeed look to be the solution. -- 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 email to puppet-users+unsubscr...@googlegroups.com. To

[Puppet Users] Using gem from new puppetserver custom function?

2014-10-15 Thread Schofield
I am testing out the new puppetserver and finding a problem with referencing a gem installed to the local ruby. A custom function is installed to /usr/lib/ruby/site_ruby/1.8/pupppet/parser/f

[Puppet Users] Query puppetdb from puppet manifest

2014-07-03 Thread Schofield
What are most people using to query the puppetdb for data from within puppet manifest files these days? Is there any thing official from PuppetLabs to do this? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and

[Puppet Users] How to identify unset variables?

2013-11-12 Thread Schofield
I want to list out all the variables that do not have values set for a catalog. Can puppet do this? -- 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 email to puppet-user

[Puppet Users] Compile catalog against tagged version of a git repo?

2013-11-03 Thread Schofield
I'm wondering if there is any feature that will allow puppet to compile a catalog against a specific tag of a git repo? -- 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] best way override variables of parent providers?

2013-07-17 Thread Schofield
I would like to override an instance variable of a parent custom provider. Is it safe to override to the initialize method in the subclass in order override the instance variable? Or is there a better way to do this when writing custom providers? -- You received this message because you are

[Puppet Users] Accessing methods of parent provider

2013-07-13 Thread Schofield
I'm taking some time to refactor a custom provider. I'm trying to move common code into a parent provider so that it can be shared among all custom resource providers in the puppet module. While verifying I can call methods in the parent provider I get the following error: Error: Could not pr

[Puppet Users] variables inside variable names

2013-07-02 Thread Schofield
Given class java::jdk_1_7_u10{ home=/usr/java/jdk-1.7.0-10 } $java = jdk_1_7_u10 $java_home = ${java::$java::home} I would like $java_home to be equal to /usr/java/jdk-1.7.0-10. Is there an elegant way to make this work? We currently use an inline template to make it work. java_home => in

[Puppet Users] how to access hiera data from a custom provider?

2013-06-16 Thread Schofield
Using puppet 3.0, is there a proper and standard way to retrieve data from hiera in either the a custom type or custom provider implementation? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving em

[Puppet Users] Recommend a good tutorial on using Hiera as an ENC?

2013-06-09 Thread Schofield
Can anyone recommend a good tutorial on using Hiera as an ENC? -- 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 email to puppet-users+unsubscr...@googlegroups.com. To post

[Puppet Users] Re: hiera-gpg and 400 error

2013-05-20 Thread Schofield
On puppet version 3.0.0 there was a typo in the hiera.yaml file that prevented the gpg backend from loading so the data was never found. If I remember right I think "backends" was just "backend". Hiera silently failed back to loading just yaml without saying anything and gpg was never loaded.

[Puppet Users] Two resources managing the same file?

2013-05-20 Thread Schofield
Given a configuration file that is initially managed by a template in File resource A . Resource B interacts with a middleware product through its published admin API which causes changes within File resource A. Is there anyway, through custom provider code for resource B to tell resource A th

[Puppet Users] how to handle gems required for a custom provider

2013-05-16 Thread Schofield
I am developing a custom provider and have a requirement on a gem. Is there any way to use the gem with a custom provider without installing the gem on the managed node? Ideally I want to keep the gem isolated from other puppet code to avoid any potential conflicts as well. I am currently ru

[Puppet Users] Re: Can anyone recommend a module with a resource managing a block of lines in a file?

2013-05-06 Thread Schofield
> > Indeed, templates and Concat, either individually or in combination, are > great tools for managing files, including where responsibility for > different pieces of the file is spread across multiple classes. > This is exactly my situation. I need multiple other modules to contribute mult

[Puppet Users] Can anyone recommend a module with a resource managing a block of lines in a file?

2013-05-04 Thread Schofield
I'm hoping a commonly used module that provides a resource for managing multiple contiguous lines in a file already exists and someone can point me to it. I want something like the file_line type in the puppet labs stdlib module but have it check multiple lines instead of just one. -- You rec

[Puppet Users] Re: Practices: what _not_ to manage with Puppet?

2013-05-03 Thread Schofield
I want everything managed by puppet because if it is not it only adds operational complexity into the environment. I have found that using kickstart to bootstrap puppet works well. Kickstart does the minimum to get puppet running (root volume group, temporary network, puppet rpms) and the la

[Puppet Users] realizing virtual resource does not match on default properties

2013-04-30 Thread Schofield
Given a class that defines multiple virtual users with common properties defined in the User class: class users{ User{ gid => 2000, shell => "/bin/bash", managehome => "true", password => 'XrU4ZYu0nwk7s', require => Group['mygroup'], } @user{ 'user1': uid => 1690,

[Puppet Users] checking puppet run status of node A during puppet run of node B

2013-04-29 Thread Schofield
I have some middleware where the successful configuration of node B is dependent on the successful configuration of node A. Node B must pull additional information from node A during its configuration. Is there any built in functionality in puppet for checking the completion status of other n

[Puppet Users] Re: Need help! Puppet could not request certificate: No route to host -connect(2)

2013-04-23 Thread Schofield
Try using "telnet 8140" This will validate the network on the proper port. ping does not use port 8140. -- 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 email to pupp

[Puppet Users] Possible to turn off a specific log level?

2013-04-23 Thread Schofield
Is it possible to prevent a resource from logging only a specific log level? For example turn off any debug statements but leave info and notice. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

[Puppet Users] Interfacing with a CLI

2013-04-23 Thread Schofield
Does puppet have any built in functionality to assist with starting and maintaining a conversation with a software's CLI? -- 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 a

[Puppet Users] How to get return code of a command used in a custom provider.

2013-04-16 Thread Schofield
When using optional_commands in a custom provider is there a means to get the return code of the execution? Something similar to "echo $?" on Linux. For example, if I define foo optional_commands :foo => 'foo' I want to execute foo() and test if it was successful or not with in some condition

[Puppet Users] How to kick off integration tests after successful puppet run?

2013-04-14 Thread Schofield
Are there any built in hooks or best practices for puppet around notifying third party tools to execute tasks after a successful puppet run is complete? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop re

[Puppet Users] How to enable hiera debug when running puppet 3.0 with apache/passenger?

2013-04-10 Thread Schofield
What's the trick to displaying hiera debug messages when the puppet master is running under passenger? I have uncommented 'ARGV << "--debug"' in the config.ru file but that doesn't help. Not sure where to go to next. Currently running puppet 3.0. -- You received this message because you are

[Puppet Users] hard reset with vcsrepo?

2013-04-09 Thread Schofield
Is it possible to use vcsrepo to remove uncommitted changes to git repo? Essentially I am hoping that vcsrepo can keep a local repo in sync with a a remote repo and revert any modified files and delete any untracked files in the local working directory that don't exist in the remote repo. --

[Puppet Users] Where to keep server side custom function .rb files so they are not sync'd to client nodes?

2013-04-03 Thread Schofield
I have some utility functions that are currently defined in the lib/puppet/parser/functions folder of a module. These function .rb files get unnecessarily sync'd to client nodes since we have pluginsync enabled to distribute unrelated custom facts. Is there a standard or best practice locatio

Re: [Puppet Users] Viewing reports without the dashboard

2013-04-02 Thread Schofield
> Longer term, we're working on some replacement technologies, Is it safe to assume that the replacement technologies will be open source and that open source consumers will never be stuck without an easy way to view reports? -- You received this message because you are subscribed to the Goog

[Puppet Users] Viewing reports without the dashboard

2013-03-28 Thread Schofield
What I understand is that the puppet dashboard is essentially deprecated. https://groups.google.com/forum/#!msg/puppet-users/j44EbTJY7HI/EQSJgh-g1fgJ I'm curious to know if anyone is aware of any effort to replace the report viewing capability of the dashboard that is compatible with reports

Re: [Puppet Users] Pattern for managing software versions?

2013-03-05 Thread Schofield
> > If you want to be able to install multiple versions of some piece of > software, then you should obtain or create packages that allow it. For > example, RedHat-family JDK packages (java--openjdk) support this, > whereas Oracle's JDK packages for RedHat family systems do not. > Agreed, ha

Re: [Puppet Users] Pattern for managing software versions?

2013-03-04 Thread Schofield
On Friday, March 1, 2013 7:46:33 PM UTC-5, Brendan O'Bra wrote: > > I use hiera to externalize the versions, like this: > package{'jdk': > ensure => hiera('jdk_version','present'), > require => [ YumRepo['someyumrepo'] ], > } > > And then just deliver yaml based on environment/versio

[Puppet Users] Pattern for managing software versions?

2013-03-01 Thread Schofield
I am curious to get the opinion of the community on how people successfully manage software versions in their puppet modules. Personally I have adopted the profile/role pattern and have the need to support many different combinations of java based middleware. My puppet environment has evolve

[Puppet Users] remove node parameters with dashboard rake api?

2013-02-20 Thread Schofield
Is there a rake task for removing node parameters from the dashboard? The online dashboard manual is silent on the parameters related to rake tasks altogether. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and

[Puppet Users] Functions for PuppetDB

2013-02-19 Thread Schofield
Is this the best option for accessing puppetdb data from modules? http://forge.puppetlabs.com/dalen/puppetdbquery Any other recommendations? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving ema

Re: [Puppet Users] Re: Multiple hierarchies with Hiera

2013-02-06 Thread Schofield
> > :yaml: > :datadir: /etc/puppet/environments/%{environment}/data > > So you in essence have a different hierarchy per environment. > I really need a hierarchy per module instead of a site/environment hierarchy. Looks like R.I.Pienaar is working on this. https://github.com/puppetlabs/

[Puppet Users] Is it possible to enable SSL tracing on the master and agent?

2013-02-02 Thread Schofield
I would like to see the SSL handshake between the master and agent. How do I enable this? -- 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 email to puppet-users+unsubscr

[Puppet Users] Possible to evaluate embedded variables?

2013-02-02 Thread Schofield
Given a variable that holds a class name is it possible to resolve the value of a variable within that class? For example class classes::myclass{ $install_dir = '/xyz' } class example($class_name='classes::myclass'){ file {"/mylink" : ensure => link, target => "${${class_name}::ins

[Puppet Users] Re: Multiple hierarchies with Hiera

2013-01-31 Thread Schofield
> > > > If you call hiera like $somevalue = hiera(key, default, source) (not sure > that is the best name for the 3rd argument) it will, for that call only, > override the hierarchy and inject 'source' at the top of the hierarchy. > This is what I was after. Thank you. -- You received this

[Puppet Users] Multiple hierarchies with Hiera

2013-01-31 Thread Schofield
I am evaluating Hiera for use in our puppet setup to handle overrides based on facts. Unfortunately the documentation is slim http://projects.puppetlabs.com/issues/15295. I am wondering if it is possible to have multiple hierarchies and be able to choose which hierarchy to use when calling

Re: [Puppet Users] How to increase performance of managed directories?

2013-01-28 Thread Schofield
On Thursday, January 10, 2013 1:57:34 AM UTC-5, Pete wrote: > > I used to manage a few directories recursively and it was very slow and > cumbersome. > I just manage the directories themselves if i need to and the files > individually. > It makes it a bit more complex initially but you get fine g

[Puppet Users] How to apply a single class from an agent with puppet v3?

2013-01-23 Thread Schofield
Is it possible to apply a single class in the context of the catalog to a puppet agent? The puppet run has grown lengthy and I would like to run just the puppet class I am working on. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view th

[Puppet Users] How to increase performance of managed directories?

2013-01-09 Thread Schofield
I have several directories that are installed and managed with puppet. I am finding the majority of the time of the puppet run is spent validating the directory. Are there any tricks to improve the performance of managed directories? Or a better way than simple file resource with ensure => d

[Puppet Users] Re: Thoughts on roles/profiles class paradigm

2013-01-09 Thread Schofield
I was in a position to build a puppet environment from scratch. After lots of studying and trying different suggestions the profile/role paradigm is proving flexible enough to meet any challenge we have faced thus far. We apply a role to nodes that should be identical (typically clusters of n

[Puppet Users] How manage xml elements as resources?

2013-01-07 Thread Schofield
I would like to use puppet classes to inject and/or replace xml elements into an existing xml configuration file. This seems to me to be a common problem already solved. Can anyone suggest the easiest way to do this? An example use case would look like something like this. Given xml file:

[Puppet Users] Re: how to avoid duplicate types (i.e. users)

2012-12-31 Thread Schofield
> How do I automatically create a user (including home directory and cp of > /etc/skel) as triggered by buildbot::slave::instance, and avoid the > duplicate user errors? > If I understand right you want all buildbot::slave::instance types to have the same user. The special little flowers se

[Puppet Users] Possible to reference the nodes in a dashboard group?

2012-12-31 Thread Schofield
I need to define static routes between nodes in a cluster. The nodes in the cluster are already defined in a dashboard group. Is it possible reference an array of the nodes in a dashboard group so I can reference the nodes in a class definition? -- You received this message because you are s

Re: [Puppet Users] module version support?

2012-12-28 Thread Schofield
> Or take it one step further and integrate your SCM and puppet ( > http://puppetlabs.com/blog/git-workflow-and-puppet-environments/ ), and > use an ENC such as dashboard, foreman, LDAP, etc to make changing the > environment a simple data change. This combination of things is the basis > tha

Re: [Puppet Users] module version support?

2012-12-27 Thread Schofield
On Thursday, December 27, 2012 8:38:47 AM UTC-6, Jesse Throwe wrote: > > Environments would probably be a good starting point for what your after. > > http://docs.puppetlabs.com/guides/environment.html > > Not quite what I was after. I already have dev/test/production environments that handle d

[Puppet Users] module version support?

2012-12-27 Thread Schofield
Does puppet have any built in support for applying different versions of modules to different nodes? I haven't come across any documentation describing such a feature so I assume no but wanted to verify. As a follow up question are there any best practices to do such a thing? -- You received

[Puppet Users] Re: How to handle multi-variable cross cutting concerns in hiera?

2012-12-11 Thread Schofield
> Hiera allows you to lay out your data in two dimensions: data file and > key. Whatever selection rules you want to use to choose particular data > need to operate in that context. There are at least three ways in which > you can embed additional dimensions: > >1. You can create separat

[Puppet Users] How to handle multi-variable cross cutting concerns in hiera?

2012-12-10 Thread Schofield
I am working with puppet 3.0 and have the opportunity to build the hiera hierarchy from scratch. I am pondering which data should be included in hiera and how it should be organized. After some research it appears that most folks struggle when their data is dependent on multiple facts rather

[Puppet Users] Best practice for updating puppet modules?

2012-12-07 Thread Schofield
I am accepting the fact that the initial version of a module will not be perfect and that it will be need to be updated in the future. I am looking for ideas on how to manage the development life cycle of modules and to control the roll out of the module being applied to managed nodes. Please

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
On Monday, December 3, 2012 2:32:15 PM UTC-5, j4m3s wrote: > > Though we have lots of automated testing we still rely on the human touch > for checking UI look and feel, and doing exploratory testing (in the pre > production environment). Once it has passed this step the human can > approve

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
On Monday, December 3, 2012 11:34:53 AM UTC-5, Brendan O'Bra wrote: > > " But what these solutions have in common is that an individual at some > point in time has to make some change to the puppet system." > > Please elaborate - > Do you mean that someone has to "tell" Puppet about what versio

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
What I am understanding is that people are having success building/testing/deploying the OS/Middleware/Application stack by wrapping applications in a puppet resource. Thus bringing all configuration management under puppet. This is good as it is the direction I wanted to go. I would like to

[Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
Thanks for the great response James. I think you have done exactly what I am looking to do. I want to ask more about controlling the versions of the application packages in hiera. I have multiple different dev groups who each work on different release schedules. I don't want to have operati

[Puppet Users] How to do release managment integration with puppet?

2012-11-30 Thread Schofield
I am at the beginning of merging the traditional OS/Middleware update process with application development release process. The goal is to be able to test a complete versioned OS/Middleware/Application stack as it moves through dev/test/qa/prod environments. The key here is that entire stack

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread Schofield
. On Thursday, November 29, 2012 7:34:08 PM UTC-5, Schofield wrote: > > > > On Thursday, November 29, 2012 5:17:43 PM UTC-5, jcbollinger wrote: > >> Alternatively, if your approach is going to be to fiddle with the >> 'source' parameter then you might consider how

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread Schofield
On Thursday, November 29, 2012 5:17:43 PM UTC-5, jcbollinger wrote: > Alternatively, if your approach is going to be to fiddle with the 'source' > parameter then you might consider how to avoid subclassing at all. > Agreed. This is what I am focusing on. But have hit a snag I don't know how t

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread Schofield
John, thanks for the response. I added my comments inline. On Thursday, November 29, 2012 9:18:18 AM UTC-5, jcbollinger wrote: > > > > On Wednesday, November 28, 2012 6:15:24 PM UTC-6, Schofield wrote: >> >> I have a managed directory defined in one class. I need the

[Puppet Users] How to update a managed directory?

2012-11-28 Thread Schofield
I have a managed directory defined in one class. I need the ability to update a subset of files in the managed directory from a puppet define. I would like to simply define a new file resource that is a directory and have the files from this new resource simply overlay the existing managed di

[Puppet Users] anyway to "inherit" the argument list from a puppet define?

2012-11-28 Thread Ben Schofield
Is there anyway to "inherit" the argument list from a puppet define so that a wrapping define does not have to declare the same variables twice? For example define my_define($arg1, $arg2, $arg3){ ... } define wrapper { #modify arg2 ... #call my_define passing args 1-3 } #Now call th

Re: [Puppet Users] why do I get ensure changed 'purged' to 'present' on a package when it is already installed

2010-02-06 Thread Tim Schofield
On Fri, 2010-02-05 at 19:59 -0800, Dan Bode wrote: > > > On Fri, Feb 5, 2010 at 4:24 PM, tim_schofield wrote: > Hi all, > > I have created a squid class that also installs squidGuard. > When I > run puppetd I always get > > notice: //Nod