Re: [Puppet Users] Latest version of lookup_http not in rubygems.org

2019-02-25 Thread Craig Dunn
On Wed, Feb 20, 2019 at 3:19 AM Garrett Honeycutt wrote: > On 2/19/19 4:23 PM, Peter Krawetzky wrote: > > I'm trying to an SSL connection from puppetserver to a couchdb no-sql > > database for hiera lookup data. I have both hiera-http and lookup_http > > installed however the version of lookup_h

Re: [Puppet Users] Hiera brainstorming

2018-05-10 Thread Craig Dunn
On Sun, May 6, 2018 at 9:26 PM, Robert wrote: > > And the problem: sometimes I'd like to have teams to control only a > specific application, on a server which is already delegated to a team. > E.g. the backup admins should be able to configure the backup software's > agent on Oracle *and* webser

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

2017-10-06 Thread Craig Dunn
/message: defined 'message' as 'bar' On Fri, Oct 6, 2017 at 9:35 AM, Craig Dunn wrote: > > > On Thu, Oct 5, 2017 at 6:44 PM, Henrik Lindberg < > henrik.lindb...@puppet.com> wrote: > >> On 04/10/17 08:54, John Baird wrote: >> >>> >

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

2017-10-06 Thread Craig Dunn
On Thu, Oct 5, 2017 at 6:44 PM, Henrik Lindberg wrote: > On 04/10/17 08:54, John Baird wrote: > >> >> Something like "lookup('/path/to/somefile.txt', scope=false)"... In this >> manner, the user and more specifically, each lookup call can determine >> whether or not to include the dotted key. >>

Re: [Puppet Users] Problems writing tests for custom hiera backend

2017-10-02 Thread Craig Dunn
s Craig > > With regards, > > Jos Houtman > > > On Monday, October 2, 2017 at 1:18:54 PM UTC+2, Craig Dunn wrote: >> >> >> I've been having the exact same conversation with Henrik as I also need >> to write tests for hiera-mysql, hiera-http a

Re: [Puppet Users] Problems writing tests for custom hiera backend

2017-10-02 Thread Craig Dunn
I've been having the exact same conversation with Henrik as I also need to write tests for hiera-mysql, hiera-http and the Jerakia Hiera 5 backend He suggested copying the approach used by yaml_data and json_data Puppet core but theres a few problems with this. Firstly it uses puppet_spec/comp

Re: [Puppet Users] Puppet Lookup Behavior

2017-09-19 Thread Craig Dunn
On Thu, Sep 14, 2017 at 8:53 PM, John Baird wrote: > I am currently implementing the "hiera-http" custom backend written by > crayfishx located: "https://github.com/crayfishx/hiera-http";. > > I have some custom classes that need to run through an iteration of hiera > hashes and perform lookups o

Re: [Puppet Users] facing issues while using fact hashes

2016-11-24 Thread Craig Dunn
On Thu, Nov 24, 2016 at 6:41 PM, Dan White wrote: > Suggestion one: Use a newer version of Puppet. > OP mentioned he was using Satellite so just upgrading Puppet is not as simple as it sounds, since satellite 6.2 ships with Puppet 3.8 and it quite tightly integrated by default... it's worth noti

Re: [Puppet Users] Tidy not working

2016-11-16 Thread Craig Dunn
On Tue, Nov 15, 2016 at 5:21 PM, Ugo Bellavance wrote: > > # puppet -V > 2.7.26 > > > [snip] It's the first time I try using tidy, am I missing something obvious? > > The year? I'm not trying to be flippant but you are trying to solve a problem on software that was end of life many years ago now

Re: [Puppet Users] hiera & profile & roles

2016-11-16 Thread Craig Dunn
On Wed, Nov 16, 2016 at 10:51 AM, Craig Dunn wrote: > > > On Wed, Nov 16, 2016 at 10:42 AM, Albert Shih > wrote: > >> Le 16/11/2016 à 10:34:36+0100, Craig Dunn a écrit >> >> > # Tomcat class has an attribute called "catalina_home" whic

Re: [Puppet Users] hiera & profile & roles

2016-11-16 Thread Craig Dunn
On Wed, Nov 16, 2016 at 10:42 AM, Albert Shih wrote: > Le 16/11/2016 à 10:34:36+0100, Craig Dunn a écrit > > > # Tomcat class has an attribute called "catalina_home" which is looked > up from > > hiera data binding > > include ::tomcat > > >

Re: [Puppet Users] hiera & profile & roles

2016-11-16 Thread Craig Dunn
On Wed, Nov 16, 2016 at 10:18 AM, Albert Shih wrote: > Le 16/11/2016 à 09:34:50+0100, Craig Dunn a écrit > > > This is exaclty what I try to do. Event I sometime use create_resources (or > now loop). But I don't see how I can do for a data needed by two profile > like a

Re: [Puppet Users] hiera & profile & roles

2016-11-16 Thread Craig Dunn
On Wed, Nov 16, 2016 at 8:45 AM, Albert Shih wrote: > Hi, > > When I read some recommendation about using hieradata/profile/roles I > always find people saying to put the data inside the profile (in hiera) > like > > profile::cms::key1: value1 > profile::mysql::key2: value2 > profile::webserveur:

Re: [Puppet Users] development workflow

2016-11-08 Thread Craig Dunn
On Mon, Nov 7, 2016 at 2:47 PM, R.I.Pienaar wrote: > > Anyway, if others have experiences and suggestions, they're welcome. > > > Check out gogs.io. Doesn't have CI built in but it's so light and easy to > deploy and run it's well worth a consideration over gitlab > > > Gogs is very good, especial

Re: [Puppet Users] paragraphing hiera yaml

2016-11-02 Thread Craig Dunn
On Fri, Oct 28, 2016 at 7:45 PM, Christopher Wood < christopher_w...@pobox.com> wrote: > > > So how would I auto-magically auto-paragraph hiera yaml to make it > friendlier for more people, while still keeping it syntactically valid? > > > Example two: > > --- > one::services::enabled: true > > on

Re: [Puppet Users] subscribe vs notify

2016-10-12 Thread Craig Dunn
subscribe and notify are metaparameters, as Peter Faller has already pointed out. They do exactly the same thing in reverse of eachother, resource A notifying resource B has the same effect as resource B subscribing to resource A. It's generally better to use subscribe in most cases for readabili

Re: [Puppet Users] Order of removal of resources

2016-09-21 Thread Craig Dunn
On Wed, Sep 21, 2016 at 9:33 AM, Peter Faller wrote: > What is the effect of the 'require' metaparameter when ensure is set to > absent, i.e. when a resource > is removed? It seems that changes to the required resource are applied > before changes to the requiring > resource are applied - is that

Re: [Puppet Users] Puppet Without Agent

2016-08-15 Thread Craig Dunn
I agree with Lowe Schmidt. Wrong tool for the job. "connect on some servers through SSH and run some command lines" sounds like command orchestration, not configuration management - Rundeck, ansible...etc as said. On Mon, Aug 15, 2016 at 3:57 PM, Lowe Schmidt wrote: > Hey, > > no, sorry. Pup

Re: [Puppet Users] Puppet .... ruby regex

2016-08-04 Thread Craig Dunn
On Thu, Aug 4, 2016 at 8:17 AM, Alex Samad wrote: > Hi > > I want to take ${trusted['certname']} and extract the hostname short form > from it. > > so if i had thisbox.abc.com.au. I would like to get just thisbox > $hostpart=split($trusted['certname'], '[.]')[0] ... would be a cleaner approac

Re: [Puppet Users] enc output causes puppetserver to throw invalid tag error

2016-08-02 Thread Craig Dunn
On Tue, Aug 2, 2016 at 2:57 PM, Joseph Lorenzini wrote: > Hi all, > > I am having a problem with external node classier. Here's the yaml output > from the enc executable. > > https://gist.github.com/jaloren/f7599e96c6a8c47591eb395f4680d48c > > The yaml output inludes a parameterized class. When p

Re: [Puppet Users] Changing namevar of resources triggering alias error

2016-08-02 Thread Craig Dunn
On Fri, Jul 29, 2016 at 5:53 PM, Luke Bigum wrote: > Can someone explain this to me? I thought I'd be able to change the title > of a nagios_host resource but leave name_var the same to effectively write > two nagios_host files to disk with the same content, but instead I'm > triggering an error

Re: [Puppet Users] Issue copying files if package exists

2016-06-13 Thread Craig Dunn
>From reading your comments I think maybe you are misunderstanding what the defined() function does. This function is run *server side* during the compilation of the catalog and is saying "If this Puppet resource exists in the catalog, yet". It is not saying "If this resource is configured on th

Re: [Puppet Users] using variables in puppet exec

2016-05-16 Thread Craig Dunn
On Mon, May 16, 2016 at 3:05 PM, Harish Kothuri wrote: > Thanks Craig, > > It works fine now. > Cool. > > The reason am not using "file" is , it is taking more time to copy file > from share than executing the simple command. > > If you can quantify that with some test results it may be worth

Re: [Puppet Users] using variables in puppet exec

2016-05-16 Thread Craig Dunn
On Mon, May 16, 2016 at 1:09 PM, Harish Kothuri wrote: > > exec{ 'cmd /c copy /Y "\\shareloc\folder1\folder2\Mysoftware.msi" > "${pypredest}"': > Your resource title is enclosed in single quotes which means everything will be taken literally and your variable will not be interpolated Somet

Re: [Puppet Users] will this puppet supports IBM Integration Bus v9 installation which is in .tar or not. If it supports please mention the links where should I refer.

2016-05-10 Thread Craig Dunn
Hi, I've automated IntegrationBus 9 for one of my clients - it's a bit of a beast. I'd be happy to share the puppet module that I have written and collaborate on it, it still has some custom quirks and it would be nice to make it more generic and open source it. Feel free to contact me off-list.

Re: [Puppet Users] How to Read New Files Dynamically with Hiera?

2016-04-15 Thread Craig Dunn
On Thu, Apr 14, 2016 at 4:34 PM, wrote: > Hi, > We need to manage many keys in Hiera. Since many people should be able to > edit the keys and in order to avoid a complete mess I was thinking to work > with many different files. The problem is that I don't know how to make > Hiera read from new f

Re: [Puppet Users] Pasword retrievel from external source on node

2016-03-10 Thread Craig Dunn
On Thu, Mar 10, 2016 at 3:09 PM, Thomas Müller wrote: > I'm too interested in how people manage credentials without having it in > the catalog. > The problem as I see it is that there isn't a blanket approach. If you need a secret value in a template, that template is already compiled into the

Re: [Puppet Users] Pasword retrievel from external source on node

2016-03-10 Thread Craig Dunn
On Thu, Mar 10, 2016 at 12:05 PM, Johan De Wit wrote: > Hi, > > Anyone playing with the idea to manage passwords on the node by retrieving > them from an externa source like cyberark ? > > The idea is to avoid storing passwords in some 'human readable' form in eg. > hiera, manifests, catalogs,

Re: [Puppet Users] exec not executing

2016-02-23 Thread Craig Dunn
On Tue, Feb 23, 2016 at 12:41 AM, Tim Dunphy wrote: > Craig and Christan.. thanks for your input! What I was trying to do with the > 'refreshonly' statement was to get the exec statement to run only once. > > How would I be able to achieve getting the exec command to run only once? There are a n

Re: [Puppet Users] exec not executing

2016-02-22 Thread Craig Dunn
On Mon, Feb 22, 2016 at 8:14 AM, Tim Dunphy wrote: > Hey guys, > > I wrote an exec class for one of my modules. And for some reason, on puppet > runs it's not executing. > > Here's the class: > > class bacula::exec { > > exec { 'create.mysql.admin.user': > path => "/bin", > command =>

Re: [Puppet Users] Newbie question about fetching specific value of a key from hash

2016-02-04 Thread Craig Dunn
>> I want to get the value of datadir in my puppet module. Please let me know >> what is the syntax I need to use to fetch this value. I tried something as >> follows but it doesn't work. >> >> >> $datadir = hiera('mysqlconfig::custom_mysql_options[datadir]’) > > With hiera you can only specify k

Re: [Puppet Users] Re: Access to hiera repository

2016-02-04 Thread Craig Dunn
This also depends if your requirement is only restricting users access to data. If thats all you need then to me this is falls more into what tool you use to store and edit your data, rather than the one you use to look it up, you might be able to use a hiera backend more advanced than the simple

Re: [Puppet Users] How to manage half file.

2016-01-15 Thread Craig Dunn
Albert, Is it possible that your application can manage the line it needs to manage in a separate file to php.ini? If so you can use a combination of concat's source and content attributes to manage this. If for example, your application can manage a file containing just the one line in /etc

Re: [Puppet Users] Puppet agents get hanged in "Info: Loading facts"

2015-11-05 Thread Craig Dunn
Your code snippet suggests that facter has run, and the master is timing out running /etc/puppet/node.rb which is the ENC script (which happens after the facts have been sent by the agent). Are you running Foreman/Satellite? - It sounds like you may have a network connectivity issue here between

Re: [Puppet Users] Re: Possible to overriding Hiera on the run-time?

2015-09-17 Thread Craig Dunn
On Thu, Sep 17, 2015 at 3:00 PM, jcbollinger wrote: > > > On Wednesday, September 16, 2015 at 7:39:32 AM UTC-5, Sans wrote: >> >> Hi there, >> >> I got to solve a "rare" issue here which I'm running out of ideas for. In >> our manifest, we do some conditional git pull (using vcsrepo forgemodule)

Re: [Puppet Users] hiera - data retrieved once or everytime a lookup is required

2015-08-21 Thread Craig Dunn
On Thu, Aug 20, 2015 at 6:16 PM, Andrew Hibbert wrote: > Hi, > > I'm looking into hiera particularly the http backend > (https://github.com/crayfishx/hiera-http). > > I'm wandering when using hiera if a single lookup is done at the start of > the puppet run or if everytime a value needs to be look

[Puppet Users] hiera-gpg, end of life.

2015-08-19 Thread Craig Dunn
Hi all, For anyone that is interested, I've decided to officially bring to an end the hiera-gpg[0] project and will not be maintaining it going forward. hiera-gpg was one of the first additional backends written for Hiera and was released 4 years ago (was it *really* that long ago?). It gained a

Re: [Puppet Users] Ordering without dependencies

2015-07-03 Thread Craig Dunn
On Fri, Jul 3, 2015 at 4:42 PM, R.I.Pienaar wrote: > On teardown I don't care what stays and go, just want to try my best to kill > things > > So the resources in question are varied and custom and spread over multiple > hosts. > > So rather than a specific solution that involves just killing t

Re: [Puppet Users] Ordering without dependencies

2015-07-03 Thread Craig Dunn
On Fri, Jul 3, 2015 at 3:10 PM, R.I.Pienaar wrote: > hello, > > I am looking for a way to influence run order without also doing dependencies. > > I have a case where I am removing a bit of software from my system and so as > is > typical things need to be done in a different order from creation,

Re: [Puppet Users] Ordering without dependencies

2015-07-03 Thread Craig Dunn
On Fri, Jul 3, 2015 at 3:10 PM, R.I.Pienaar wrote: > > I tried: > > exec{"false": before => Exec["true"]} > exec{"true": } > > This fails because before implies a requirement. If you don't care about a failure, why not always mask it to be true? exec { '/bin/remove mystuff; /bin/true': b

Re: [Puppet Users] Exposing master to the public internet

2015-07-03 Thread Craig Dunn
On Thu, Jul 2, 2015 at 9:51 PM, Nik Haldimann wrote: > However, my impression is that a puppet master is usually deployed within a > private networks (e.g., internal to a data center or as part of a private > VPC subnet on AWS). For my use case I would have to open the master to the > public inte

Re: [Puppet Users] Copy File from one Puppet Agent to another Puppet Agent

2015-07-01 Thread Craig Dunn
> My idea wos now to take the Ressource "file" and put in the path-option the > path to the share of the syslog-system, like so: > > file { "$hostname.conf": > ensure => present, > path=> "//server/share/$hostname.conf", > source => template("default_nxlog_debian/default.conf.e

Re: [Puppet Users] Re: Puppet agent not picking up hiera

2015-06-26 Thread Craig Dunn
>> Seems to work from the command line: >> >> [me@puppet puppet]$ sudo hiera ntp::servers ::fqdn=servers-fqdn >> ::environment=production >> ["0.us.pool.ntp.org iburst", >> "1.us.pool.ntp.org iburst", >> "2.us.pool.ntp.org iburst", >> "3.us.pool.ntp.org iburst"] >> >> But not on the agents? Did

Re: [Puppet Users] For PE 3, what are the stable/supported database backends?

2015-06-26 Thread Craig Dunn
On Thu, Jun 25, 2015 at 9:27 PM, leam hall wrote: > We're looking to move from yaml and json to a database. What good options > are along the lines of MySQL, Postgres, or MongoDB? Are you talking about Hiera? If so, you can checkout hiera-mysql[1]. Or use something like CouchDB that's fronted wi

Re: [Puppet Users] puppet ignoring hiera

2015-06-18 Thread Craig Dunn
On Thu, Jun 18, 2015 at 4:34 PM, Peter Berghold wrote: > So... what am I missing here? hiera_include('classes') in site.pp? -- Enviatics | Automation and configuration management http://www.enviatics.com | @Enviatics Puppet Training http://www.enviatics.com/training/ -- You received this me

Re: [Puppet Users] Re: Check service running with flag file

2015-06-11 Thread Craig Dunn
still satisfied and your service resource will be acted on. All you are doing is determining order. On Thu, Jun 11, 2015 at 11:55 AM, Craig Dunn wrote: > You haven't provided a command to run via the command attribute, so > the provider will attempt to execute what you have in the

Re: [Puppet Users] Re: Check service running with flag file

2015-06-11 Thread Craig Dunn
You haven't provided a command to run via the command attribute, so the provider will attempt to execute what you have in the resource title (checkForFile) - that is to say, it is trying to execute the command 'checkForFile', which of course, doesn't exist. As Denmat already pointed out, this may

Re: [Puppet Users] Validating more than one type of data structure at a time

2015-06-03 Thread Craig Dunn
The validate_* functions are designed to fail the catalog if the passed variable doesnt match the defined type, sounds like you want the is_* functions (also from stdlib) which return true or false but dont fail. if ( is_string($myvar) or is_hash($myvar) ) { ... } else { fail('not a string or

Re: [Puppet Users] Stupid hiera.yaml wildcard question.

2015-06-02 Thread Craig Dunn
On Tue, Jun 2, 2015 at 3:35 PM, jcbollinger wrote: > > > On Tuesday, June 2, 2015 at 2:55:16 AM UTC-5, jamese wrote: >> You can also use calling_module, but that probably wouldn't give the >> granularity that you want. > > > > Yes, one of these is the standard way to approach such problems, provi

Re: [Puppet Users] Any advise on this hiera stuff

2015-06-02 Thread Craig Dunn
On Mon, Jun 1, 2015 at 11:42 AM, Twan wrote: > Hiera: > session_managers: > sm001.guest.lan: > - agent01.guest.lan > - agent02.guest.lan > sm02.guest.lan > - agent03.guest.lan > - agent04.guest.lan > > > I need to get the following: > On session managers a list (comman

Re: [Puppet Users] What's difference between roles and profiles, ENC and Hiera

2015-04-02 Thread Craig Dunn
On Wed, Apr 1, 2015 at 5:23 PM, Dhaval wrote: > Thanks for your time in explaining, what i understand is "roles and > profiles" is different from Hiera and ENC which is used for providing data > only. Let me search for example where Hiera is used and roles and profiles > are defined to make diffe

Re: [Puppet Users] class{'apache::mod::pagespeed':} woes

2014-12-12 Thread Craig Dunn
I believe you are probably not declaring class { '::apache': } anywhere, or it is declared after ::apache::mod::pagespeed, which means that $::apache::mod::pagespeed::apache_version is nil (since the default doesn't exist when the class is parsed), that's causing nil to be sent to versioncmp() in t

Re: [Puppet Users] What is wrong with this code?

2014-08-19 Thread Craig Dunn
On Tue, Aug 19, 2014 at 12:33 PM, Marc wrote: Hi all, > > The code snippet below is an isolation of the problem I am facing. > I don't understand why this produces a duplicate declaration. > Can anyone give an explanation? > > *$ cat test.pp * > *class foo { contain foo::bar }* > *class foo::bar

Re: [Puppet Users] puppet agent on customer nodes

2014-04-15 Thread Craig Dunn
I wouldn't even try to run two agent packages on the same node. But there may be ways to configure one agent to do both tasks. As far as I see it, your customer could run in masterless puppet apply mode right out of the box, but would risk managing resources that you are also managing therefore t

Re: [Puppet Users] resource title is unique for each instance. what about resource name?

2014-03-31 Thread Craig Dunn
The resource title and namevar must be unique for any resource as documented here... http://docs.puppetlabs.com/puppet/latest/reference/lang_resources.html#uniqueness Defined resource types follow the same rules and the $name variable is always assumed to be a namevar. Craig On Mon, Mar 31,

Re: [Puppet Users] Package requiring a class

2014-03-11 Thread Craig Dunn
Just to clarify, apt::source is a defined resource type, not a class. Defined resource types can be required like any other resource, for example package { [ 'libvirt-bin', 'vzctl' ]: ensure => present, require => Apt::Source['openvz'], } On Tue, Mar 11, 2014 at 1:13 PM, kai wrote: > I h

Re: [Puppet Users] Problem with custom facts and hiera

2014-03-11 Thread Craig Dunn
Drop the :: from your hiera.yaml, it's being taken literally as '::role' rather than defining scope. Regards Craig On Tue, Mar 11, 2014 at 9:17 AM, Dirk Heinrichs wrote: > Hi, > > I'm trying to categorize our Puppet agent nodes via custom facts. To do > this, I've placed a simple text file "c

Re: [Puppet Users] PE 3.2 Issue when Upgrading from PE 3.1.3

2014-03-07 Thread Craig Dunn
Next time I'll read the names of ticket contributors :) doh. On Fri, Mar 7, 2014 at 3:11 PM, Craig Dunn wrote: > > You appear to be hitting this... > > https://tickets.puppetlabs.com/browse/ENTERPRISE-92 > > > On Thu, Mar 6, 2014 at 7:54 PM, Louis wrote: > >

Re: [Puppet Users] PE 3.2 Issue when Upgrading from PE 3.1.3

2014-03-07 Thread Craig Dunn
You appear to be hitting this... https://tickets.puppetlabs.com/browse/ENTERPRISE-92 On Thu, Mar 6, 2014 at 7:54 PM, Louis wrote: > I have new Vagrant Box with a recent installation of PE 3.1.3 and it fails > the upgrade with the following error. > > Complete! > Loaded plugins: fastestmirror,

Re: [Puppet Users] Is it possible to specify more than two search items in a Resource Collectors tag?

2014-03-07 Thread Craig Dunn
You can use and/or operators in collectors Resource <| some == 'condition' and other == 'thing' |> Regards Craig On Fri, Mar 7, 2014 at 11:58 AM, Brent Clark wrote: > Good day Guys. > > Is it possible to specify more than two search items in a Resource > Collectors tag? > > e.g. > @@nagios_se

Re: [Puppet Users] Node scope variables

2014-03-04 Thread Craig Dunn
You seem to have a couple of misunderstandings here - Firstly what you call a node definition isn't a node definition, that would look something like node 'mynode-dev' { include robin_dev } Secondly, you want to make your robin_dev class parameterized to achieve what you want, e.g.: class

Re: [Puppet Users] in-conditional with virtualized resource

2014-03-04 Thread Craig Dunn
If you change "gid => $gid" to "gid => $title" then you don't need any of the require meta parameters in your user, group or file resource declarations, they can be removed. There is implied dependency between the gid of a user and the title of a group, and between owners/groups of files and their

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-02-28 Thread Craig Dunn
d/puppet-skeleton-standard > > and this alternative with Rip's data in module approach: > https://github.com/stdmod/puppet-skeleton-standard/tree/hiera > > Al > > > On Wednesday, February 26, 2014 10:37:59 AM UTC+1, Craig Dunn wrote: > >> >> This is cool, t

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-02-26 Thread Craig Dunn
This is cool, though I realise that it's a (self confessed) opinionated module design, the only thing that really stands out for me is that it follows a rather old, and limited, 'params.pp' pattern. There is no place for Hiera in this model without hard coding hiera lookup functions in the classe

Re: [Puppet Users] Environment design decisions

2013-02-21 Thread Craig Dunn
n module and then your vhosts in a separate class namespace (sites::vhost1)... that should work. Regards Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" g

Re: [Puppet Users] Hiera always looks up class params, even if they are not hiera('vars')

2013-02-21 Thread Craig Dunn
http://docs.puppetlabs.com/puppet/3/reference/release_notes.html#automatic-data-bindings-for-class-parameters Regards Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You received this message because you are subscribed to the Google Groups "Puppet Use

Re: [Puppet Users] Exported resources not realizing

2013-01-11 Thread Craig Dunn
ywhere Regards Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe

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

2013-01-10 Thread Craig Dunn
ce to minimize duplication roles::appserver::foo roles::appserver::baretc inheriting from roles::appserver where I might have stuff like tomcat. Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You received this message because you are subscribed to the G

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

2013-01-09 Thread Craig Dunn
ents are needed * The component modules are the building blocks that manage resources (eg: ssh, mysql, apache...) Theres probably a few ways of achieving the same thing - but they key here is abstracting the components from the nodes. Craig -- Craig Dunn Professional Services Puppet Labs I

Re: [Puppet Users] Have Puppet *call* REST APIs

2013-01-04 Thread Craig Dunn
en on the agent when the resource gets applied, or on the server during catalog compilation in the form of a function? Whether or not you are doing anything with the data returned from your call will make a difference here. Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppet

Re: [Puppet Users] variable not replace when come from hiera

2012-11-25 Thread Craig Dunn
source: "puppet:///%{environment}/%{module_name}/preferenced.d Your source path confuses me a bit anyway, surely your environment dictates your modulepath and this should just be puppet:///modules/%{module_name}/preferences.d ? Regards Craig -- Craig Dunn Professional Servi

Re: [Puppet Users] Environment and layout questions

2012-07-11 Thread Craig Dunn
a layout I've seen anyone use, people generally maintain a full set of modules in a particular environment module directory. Is that what you meant? Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You received this message because you are subscribed

Re: [Puppet Users] Modules Question

2012-07-03 Thread Craig Dunn
init.pp. Does that make more sense? Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com.

Re: [Puppet Users] Modules Question

2012-07-03 Thread Craig Dunn
.pp class ssh { # manifests/hostkeys.pp class ssh::hostkeys { Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send e

Re: [Puppet Users] Stored Configs Question

2012-07-03 Thread Craig Dunn
ed resources then you can enable thin_storeconfigs = true in your puppet.conf which will then make it behave as you're expecting it to by only storing resources that you explicitly export with @@. Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- You rec

Re: [Puppet Users] Thoughts on job listings?

2012-06-07 Thread Craig Dunn
or general feelings. A simple +1 or -1 would be great. So is there an outcome to this? Is it acceptable for community members to post Puppet related jobs here? Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received this message becau

Re: [Puppet Users] Thoughts on job listings?

2012-05-30 Thread Craig Dunn
solidated email once a week or something? Just a thought. Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, s

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread Craig Dunn
#x27;t be focusing too much on the credits or pitfalls of YAML - there are other DB and file based back ends available, and if one of those doesn't fit the bill it's very possible to extend Hiera with a new backend that supports a different format. Craig -- Craig Dunn | http://w

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-04 Thread Craig Dunn
me point? (http://projects.puppetlabs.com/issues/12951) Sounds like a lot of great new functionality though, looking forward to testing it out! Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received this message because you are subscribed

Re: [Puppet Users] Require => Package from a different server

2012-05-01 Thread Craig Dunn
talled the server package first - it wont actually do the orchestration for you though -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To pos

Re: [Puppet Users] Re: Includes and parametrized class redefinition

2012-04-27 Thread Craig Dunn
Means I can store all my "foo" variables up into, for example, dev/foo.yaml It's a nice way to be able to see at-a-glance how "foo" is configured in my environment, and also helps with ambiguous variable names (eg: $port) as grouping them this way offers a kind of scop

Re: [Puppet Users] extdata from MySQL

2012-04-26 Thread Craig Dunn
On 26/04/2012 15:51, Gary Larizza wrote: I believe Craig Dunn had an article on using a MySQL backend for Hiera --> http://www.craigdunn.org/2012/03/introducing-hiera-mysql-mysql-backend-for-hiera/ Until hiera 0.3.1 is actually released you'll need to manually apply the patch

Re: [Puppet Users] exec's onlyif parameter fails for a bash one-liner

2012-04-25 Thread Craig Dunn
onlyif => "[ \"$(/bin/ls -A $one_location)\" ]&& exit 1 || exit 0" } Puppet wont let you run commands that dont have fully qualified paths, try adding this and it should work... path => "/bin" Craig -- Craig Dunn | http://www.craigdunn

Re: [Puppet Users] hiera rpm

2012-04-25 Thread Craig Dunn
Nick - if you need one in the mean time, I use the following specfile (adapted from gem2rpm) to build it from a downloaded gem on EL5. http://www.craigdunn.org/stuff/hiera.spec (and hiera-puppet.spec respectively) Of course, official RPM's would be nicer :P Craig -- Craig D

Re: [Puppet Users] RSpec test to verify variable/parameter declaration

2012-04-23 Thread Craig Dunn
n non-dev environments. Ideally I'd like to be able to catch this with rspec-puppet but can't see an easy way to say "class bar should have variable foo and it shouldn't be undefined", or something when sourcing variables from other classes or hiera. Craig -- C

Re: [Puppet Users] override/replace native types

2012-04-13 Thread Craig Dunn
", start => "( /usr/sbin/slaptest && service slapd start) || /bin/true", } But, IMO, a service init script should take care of its own pre-req's... HTH Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received t

Re: [Puppet Users] using array parameters with inherited parameterized classes

2012-04-13 Thread Craig Dunn
class depacks( $packages = "$params::packages" ) inherits params { package{ $packages: Putting quotes around $params::packages is making $packages a string rather than an array. Remove the quotes and it should work Regards Craig -- Craig Dunn | http://www.craigdunn

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-02 Thread Craig Dunn
ssues. Providing a beginners mailing list IMO would only encourage people to bypass the docs even more. 2p/w :) Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received this message because you are subscribed to the Google Groups "Pupp

Re: [Puppet Users] Removing lines from a file

2012-03-21 Thread Craig Dunn
/projects/1/wiki/puppet_augeas Regards Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@google

[Puppet Users] New hiera backend for mysql

2012-03-05 Thread Craig Dunn
Regards Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype: craigrdunn | Twitter: @crayfishX -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from

[Puppet Users] Re: puppet 2.6.4 installation options for redhat/centos

2011-01-06 Thread Craig Dunn
On Jan 5, 3:24 pm, pzi wrote: > After a quick read of the 'Installation Guide' at puppetlabs.com I see > that there is either tar or distro options. I looked at distro option > and see that for redhat there is only outdated > puppet-0.25.5-1.el5.noarch.rpm   > athttp://download.fedora.redhat.com

[Puppet Users] Puppet services/ folder

2010-12-06 Thread Craig Dunn
Hi, Reading the latest best practices for 2.6.x I see that it recommends generic classes for server model types to be put in /etc/puppet/services. Sounds a sensible idea but I can't seem to find much more information on this and services/ doesn't seem to be in the default search path for classes.

[Puppet Users] Sourcing reports from different locations.

2010-08-27 Thread Craig Dunn
It looks like puppet 2.6 loads reports from "puppet/reports" - is there a way to specify another location for report files so you dont have to manually copy the .rb file to /usr/lib/ruby/puppet/reports? What I'd like to do is tell puppetmasterd to also look in /usr/share/puppet-dashboard/ext/

Re: [Puppet Users] Adding User

2010-08-23 Thread Craig Dunn
On Mon, Aug 23, 2010 at 9:47 AM, parag(PK) wrote: > Hi, > > I am trying to add multiple users onto my client, using array. > My code snippet is like this : > > node  example_node { > $arr=["abc","xyz",] > >  user{$arr: >                ensure => present, >                gid => root, >            

[Puppet Users] Removing a host from stored config.

2010-08-19 Thread Craig Dunn
Hi, I have stored configs with a Postgresql back end - for some reason, one host, and all it's associated resources, is duplicated. I haven't got a clue how, but it's causing errors using exported resources.Is there a safe way to remove a host from stored config? I note from http://projects

Re: [Puppet Users] Downloading files to Puppet clients from HTTP Server

2010-08-19 Thread Craig Dunn
> By any chance, does the "source" parameter supports HTTP URLs, if not > then how can i do that in Puppet ? > > Source currently only supports the "file" and "puppet" URI types, you could accomplish a few ways, one is with a simple exec exec { "wget http://myurl.com/file.txt -o /path/to/fil

Re: [Puppet Users] Push changes to clients

2010-08-13 Thread Craig Dunn
On Fri, Aug 13, 2010 at 10:05 AM, ScubaDude wrote: > I was wondering how to configure the puppet clients to only listen, > not to periodically pull configs down from the puppetmaster. > > I'd rather push the configs out from the puppetmaster with > puppetrun... > > Running puppetd with --no-clien

[Puppet Users] Nested arrays in puppet....

2009-04-07 Thread Craig Dunn
I'm trying to nest arrays within puppet to use in an ERB template... is this something thats supported in puppet. Im defining my variable as: $var = [ [ foox, fooy ], [ barx, bary ] ] Within my erb template, I'm doing: var.each { |x,y| %> X: <%= x %> Y: <%= y %> <% } %> This

[Puppet Users] ERB docs...

2009-04-01 Thread Craig Dunn
Hi All, I'm struggling to find any decent documentation on ERB templating - theres some limited summaries on puppets' site but I need something a bit more in depth that covers things like arrays, for loops...etc Is there anything out there that might help? Cheers Craig --~--~-~--

[Puppet Users] Reading the environment

2009-03-31 Thread Craig Dunn
Hi All I've currently got a fact that converts all environment variables to facters for use in templating..etc, this works pretty well, but if I push push out a new env.d file that sets some environment vars thats needed for a module thats going to be run after (being read by /etc/profile),

  1   2   >