[Puppet Users] Re: Puppet keeps trying to change correct setting back to correct

2015-12-11 Thread jcbollinger
On Thursday, December 10, 2015 at 3:42:22 PM UTC-6, evan@noaa.gov wrote: > Suggestions on where to start trouble shooting this? > > Running the agent with --debug logging would likely provide more information for you to work with. John -- You received this message because you are

[Puppet Users] Re: Puppet keeps trying to change correct setting back to correct

2015-12-11 Thread jcbollinger
On Friday, December 11, 2015 at 11:42:10 AM UTC-6, evan@noaa.gov wrote: > > Thats is how I got the notices. It is either in how the facts are being > pulled, or how puppet is asking but I am can't determine which from what I > am seeing in the --debug. > Along with the messages you

[Puppet Users] Re: Puppet keeps trying to change correct setting back to correct

2015-12-11 Thread jcbollinger
On Friday, December 11, 2015 at 12:08:53 PM UTC-6, Chuck wrote: > > Here is what I see is going on. On systemV script in /etc/init.d there is > not a UnitFileState. [...] > Um, Chuck? I think you've posted this to the wrong thread. I don't see how it relates to the topic of this one.

[Puppet Users] Re: handling of network mounts using puppet

2015-12-10 Thread jcbollinger
On Wednesday, December 9, 2015 at 8:24:41 AM UTC-6, ddn...@gmail.com wrote: [...] > My question is, how do I separate the *file* and the *mount* resources in > a separate manifest inside the same module and have the same effect? Our > puppet admins require that defined type declarations do

[Puppet Users] Re: Best way to do cross-module dependencies

2015-12-08 Thread jcbollinger
On Monday, December 7, 2015 at 4:59:47 PM UTC-6, Dan Mahoney wrote: > > Hey all, > > Everything I've done thusfar in creating my own custom modules has drilled > some basics into my head -- these are right from the puppet web docs: > > "A module’s classes, defined types, and plugins *should all

[Puppet Users] Re: In puppet 3.8.3, classes are defined twice in catalog

2015-12-08 Thread jcbollinger
On Monday, December 7, 2015 at 7:57:41 PM UTC-6, 韩雨哲 wrote: > > In the module, the classes are designed like this: > A::install{} > > class A{ > A::install{} > } > > class A::B{ > A::B::install{ > require -> Class[A] > } > } > > class A::C{ > A::C::install{ > require -> Class[A]

[Puppet Users] Re: Puppet Exec resource with complex Environment Variables...

2015-12-08 Thread jcbollinger
On Monday, December 7, 2015 at 4:51:10 PM UTC-6, Sean wrote: > > John, > > Thanks for the reply. To answer your first question, no I'm not > completely sure. What I can say is that I can run the commands in a shell > by hand and the result is what I hope for. When I run puppet, with this >

[Puppet Users] Re: Puppet Exec resource with complex Environment Variables...

2015-12-07 Thread jcbollinger
On Friday, December 4, 2015 at 10:27:52 AM UTC-6, Sean wrote: > > Greetings, > > I am working on streamlining some older puppet code, that uses a lot of > Exec resources to accomplish it's purposes. It's not terribly elegant and > we're working on design to replace it with code that leverages

[Puppet Users] Re: Puppetmaster compiles old catalogs

2015-12-07 Thread jcbollinger
On Sunday, December 6, 2015 at 8:27:21 AM UTC-6, César wrote: > > Hi all, > > we're seeing every now and then an odd behaviour with Puppet catalog > compilation. Basically, we modify and save the node manifests and a few > seconds later we trigger a catalog run to apply the changes. > However,

Re: [Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-12-07 Thread jcbollinger
On Friday, December 4, 2015 at 7:23:44 PM UTC-6, François Lafont wrote: > Yes, you are absolutely right and your explanations show me that I was not > precise enough when I have described my question. Sorry for that. I will > try to fix it. > > 1. My question was in fact only about _public_

[Puppet Users] Re: why does the create_resource functio not contain in local scope?

2015-12-04 Thread jcbollinger
On Thursday, December 3, 2015 at 11:09:47 PM UTC-6, Haani Niyaz wrote: > > Thanks for the clarification. I did forget to mention that I tried the > ordering of my classes as well: > > class { 'server_packages': > # list of packages > server_packages => hiera('server_packages'), >

Re: [Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-12-02 Thread jcbollinger
On Tuesday, December 1, 2015 at 11:26:15 PM UTC-6, François Lafont wrote: > No, no. You can see > http://puppet-on-the-edge.blogspot.fr/2015/01/puppet-40-data-in-modules-and.html > > With puppet 4, the "data philosophy" has changed. > > I think "the data philosophy has changed" is a bit

Re: [Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-12-02 Thread jcbollinger
On Tuesday, December 1, 2015 at 8:50:12 AM UTC-6, Henrik Lindberg wrote: > > On 2015-30-11 16:09, jcbollinger wrote: > > > > > > On Sunday, November 29, 2015 at 10:09:20 PM UTC-6, François Lafont > wrote: > > > > Hi, > > > > I'm

[Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-11-30 Thread jcbollinger
On Sunday, November 29, 2015 at 10:09:20 PM UTC-6, François Lafont wrote: > > Hi, > > I'm using Puppet 4 and I'm wondering if this (see below) is possible. > > I have 2 Puppet modules, moda and modb. We can imagine that theses modules > have just one class init.pp. "init.pp" is the name of

Re: [Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-11-30 Thread jcbollinger
On Monday, November 30, 2015 at 11:16:17 AM UTC-6, Aqueos Aqueos wrote: > > > > > > I understand your dissatisfaction, but I feel obligated to observe that > Puppet isn't forcing you to do anything. *Because of peculiarities in > Debian*, Puppet cannot properly manage services on some

[Puppet Users] Re: Cert generation messed up, fresh install

2015-11-30 Thread jcbollinger
On Wednesday, November 25, 2015 at 4:45:57 PM UTC-6, John Gateley wrote: > > Puppet 4.3.0 > Server Debian 7 > Client Debian 8 > > I have verified the server is running and listening on port 8140 > The client has the puppet service started, but there are no certs to > verify on the server. >

[Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-11-30 Thread jcbollinger
On Wednesday, November 25, 2015 at 9:16:16 AM UTC-6, Aqueos Aqueos wrote: > > in > /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/service/debian.rb > the lines: > > if ((os == 'debian' && majversion >= 8) || (os == 'ubuntu' && > majversion >= 15)) > # SysVInit scripts

[Puppet Users] Re: why does the create_resource functio not contain in local scope?

2015-11-30 Thread jcbollinger
On Thursday, November 26, 2015 at 9:34:37 PM UTC-6, Haani Niyaz wrote: > As you can see in the output above server_packges will be executed again > after the execution of some_class: > Notice: Class[some_class::Service]: Would have triggered 'refresh' from 2 > events > Notice:

[Puppet Users] Re: Migrating to future parser (on 3.8) in preparation for upgrade to 4.0

2015-11-25 Thread jcbollinger
On Tuesday, November 24, 2015 at 2:03:04 PM UTC-6, Matthew Ceroni wrote: > > Working on migrating my manifests to work with Puppet 4.0. Currently on > 3.8 and have started to experiment with the future parser (probably not so > much future anymore). > > I am stuck on an error that is being

[Puppet Users] Re: Data Type: Hashes

2015-11-25 Thread jcbollinger
On Tuesday, November 24, 2015 at 6:36:09 PM UTC-6, Matthew Ceroni wrote: > > I am having an issue accessing elements of a hash. > > First, it is defined in hiera as such: > > lb::rules: > VCC: rule1 > GR: rule2 > > I retrieve the value using > > $lb_rules = hiera('lb::rules') > > Then I

[Puppet Users] Re: strange line wrapping behavior

2015-11-18 Thread jcbollinger
On Tuesday, November 17, 2015 at 10:08:34 AM UTC-6, tobias...@gmail.com wrote: > > Hi, > > I got a file resource > > file {'/usr/java/jboss-as/server/somesoftware/deploy/jontram-ds.xml': > ensure => file, > owner => 'root', > group => 'root', > mode=> '0655', >

Re: [Puppet Users] All nodes gone unresponsive on console. We have split install configuration. But agent and master can able to communicate.

2015-11-17 Thread jcbollinger
On Monday, November 16, 2015 at 12:44:57 PM UTC-6, Christopher Wood wrote: > > No, I mean you need to fix your DNS lookups. Puppet relies on correct DNS > both to find the puppetmaster as well as checking that the puppetmaster is > presenting the correct ssl cert. > ... and the error message

[Puppet Users] Re: How to enable repositories for forge modules?

2015-11-16 Thread jcbollinger
On Sunday, November 15, 2015 at 12:58:17 AM UTC-6, Haani Niyaz wrote: > > Our SOE document states that all repositories should be *disabled* by > default and enabled on installing a package. > How odd. Also, your two example codes don't match up: the first seems to enable only a specific

[Puppet Users] Re: create_resources not working in 4.x?

2015-11-13 Thread jcbollinger
On Thursday, November 12, 2015 at 10:05:05 PM UTC-6, Jakov Sosic wrote: > > Hi guys, > > I'm having difficulties with create_resources in latest 4.x master/agent > combo... > > This is the example create_resources call: > > >$logstash_configs = hiera_hash('logstash::configfiles', {}) >

[Puppet Users] Re: Using Package and Yumrepo together? Why is yumrepo creating a corrupt .repo file?

2015-11-13 Thread jcbollinger
On Thursday, November 12, 2015 at 7:40:30 PM UTC-6, Stefan Lasiewski wrote: > > Hello Everyone, > > I am running Puppet 3.8 on CentOS 6. I'm trying to install a yum > repository from an RPM package, as well as modify the contents of the .repo > file after the package is installed. > > My

Re: [Puppet Users] Re: puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-12 Thread jcbollinger
On Wednesday, November 11, 2015 at 11:58:19 AM UTC-6, Arnau wrote: > > > Hi John, > > 2015-11-11 15:43 GMT+01:00 jcbollinger <john.bo...@stjude.org > >: > > > first of all, let me thanks for your answer, > > [...] > > First off, you talk ab

Re: [Puppet Users] puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-11 Thread jcbollinger
On Wednesday, November 11, 2015 at 7:21:44 AM UTC-6, Arnau wrote: > > Change ::selinux to false (append selinux=0 in the kernel line) and > everything works as expected. > > > still (very) confused > > It is plausible that disabling selinux on the machine would result in selinux-related

[Puppet Users] Re: puppet agent --tag (and hiera) during Scientific Linux installation

2015-11-11 Thread jcbollinger
On Tuesday, November 10, 2015 at 7:19:49 AM UTC-6, Arnau wrote: > ** Hiera works and returns the expected values:* > > # hiera -c /etc/puppet/hiera.yaml -d classes environment=basic_conf > clientcert=XX > DEBUG: Tue Nov 10 14:14:39 +0100 2015: Hiera YAML backend starting > DEBUG: Tue Nov 10

Re: [Puppet Users] Re: How to access a variable from parent define[d type]?

2015-10-30 Thread jcbollinger
On Friday, October 30, 2015 at 12:45:50 AM UTC-5, Jakov Sosic wrote: > Since you really helped, I'll do my best to try and explain what am I > doing here: > > 1) custom fact detects PHP project working copies in user directories > 2) puppet uses custom fact to create defined resources >

[Puppet Users] Re: How to access a variable from parent define[d type]?

2015-10-29 Thread jcbollinger
On Thursday, October 29, 2015 at 1:05:16 AM UTC-5, Jakov Sosic wrote: > > Hi guys. > > I have an issue with scope changes, and I am wondering how to proceed. > > > This is what I've got: > > define first ( >$somevar, > ) { >$name_array = split($title, '/') >$developer =

[Puppet Users] Re: RHEL 7 - Satellite 6.1 - Puppet Locally

2015-10-27 Thread jcbollinger
On Monday, October 26, 2015 at 9:03:41 AM UTC-5, Tom Zurita wrote: > [root@rhel7-test2 manifests]# puppet module list > > /etc/puppet/modules > > ├── cis-puppet (???) > > ├── duritong-sysctl (v0.0.11) > > └── puppetlabs-stdlib (v4.9.0) > > /usr/share/puppet/modules (no modules installed) > > >

[Puppet Users] Re: puppetlabs/apache module and changin the default port

2015-10-27 Thread jcbollinger
On Monday, October 26, 2015 at 8:41:02 AM UTC-5, tobias...@gmail.com wrote: > > As far as I have read it's not possible to change the default port for > Apache > > class > { 'apache': default => 8080, } > > apache::listen > { '8080': } > > will just add the port 8080 but the port 80 is

[Puppet Users] Re: Passing 'undef' as a class parameter value

2015-10-27 Thread jcbollinger
On Tuesday, October 27, 2015 at 4:03:33 AM UTC-5, Aurélien Degrémont wrote: > > Hello > > When using class parameters I often face the same issue regarding undef > usage. > Let's say I got this simple class: > > class foo ( >$service_ensure = 'running', > ) { >service { 'foo': >

[Puppet Users] Re: In order

2015-10-23 Thread jcbollinger
On Thursday, October 22, 2015 at 10:03:23 AM UTC-5, Albert Shih wrote: > > Hi, > > I would like to known how can I make something like > > file{ } > -> include ::other_module > > (file can be any puppet ressource) other than put some require inside the > ::other_module > > You could

[Puppet Users] Re: Confine a custom fact by file existence

2015-10-22 Thread jcbollinger
On Thursday, October 22, 2015 at 3:00:55 AM UTC-5, Thomas Müller wrote: > > Hi > > I know it's possible to confine a fact by other facts like "confine > :operatingsystem => :Fedora". > > But i have a fact which requires a binary from a rpm package which is only > installed by puppet. For the

[Puppet Users] Re: Reusable function/class code

2015-10-16 Thread jcbollinger
On Thursday, October 15, 2015 at 11:53:49 AM UTC-5, Matt Shields wrote: > > I need to do the same process over and over again for numerous users. > What would be the easy way to create a class or function to wrap the > following code so that each time I need to do the following it's a single

[Puppet Users] Re: Configure Jboss EAP with Puppet: How to set the 'jboss_bind_address'

2015-10-16 Thread jcbollinger
On Thursday, October 15, 2015 at 6:44:41 AM UTC-5, Wei Chen wrote:]# cat init.pp > > # Puppet class jboss_install to install jboss rpm and start > # the jboss server as service > class jboss_eap ( > $jboss_bind_address = '', > $jboss_bind_address_management = '', > $jboss_multicast_address =

[Puppet Users] Re: Puppet saying "changed 'stopped' to 'running'" while the service is running

2015-10-15 Thread jcbollinger
On Wednesday, October 14, 2015 at 11:23:10 AM UTC-5, Eddie Mashayev wrote: > > Hi, > > Thanks for the response. > I removed the `hasstatus' and 'hasrestart' from my module and still the > same result. > By the way, my agents are only CentOS 5/6/7. > > Ah. The "Mcafee" fooled me: I was not

[Puppet Users] Re: how to generate puppet modules or manifests files according to different groups of servers dynamically?

2015-10-15 Thread jcbollinger
On Wednesday, October 14, 2015 at 8:39:04 PM UTC-5, Robert Chen wrote: > > hi all, > > my company has a huge number of servers which are doing different > functionalities and these are changing everyday. I want to make the > customers to customized their requirements in a YAML file and then

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-14 Thread jcbollinger
On Wednesday, October 14, 2015 at 2:39:02 AM UTC-5, Wei Chen wrote: > > Hi, > > If I not using any option, but simply as follow, it works, i.g. the agent > will kept running: > > puppet agent > > > But I could remember, I ran 'puppet agent -t' before and it works. I am > not sure if I

[Puppet Users] Re: Puppet saying "changed 'stopped' to 'running'" while the service is running

2015-10-14 Thread jcbollinger
On Wednesday, October 14, 2015 at 2:51:42 AM UTC-5, Eddie Mashayev wrote: > > Hi All, > > I have some wired problem with my module to manage MacAfee services. > My lab have around 150 servers and 145 of them works fine with the module > I’ve created. > There are 5 which shows these changes

[Puppet Users] Re: Creating multiple directories based on variables or array

2015-10-14 Thread jcbollinger
On Tuesday, October 13, 2015 at 12:20:05 PM UTC-5, Ugo Bellavance wrote: > > Hi, > > I'd need to create a number of directories in a fasion similar to that: > > /var/extlogs/$stage/$client-$application > > For example, if stages are integration, staging, production and clients > are client1 and

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-13 Thread jcbollinger
On Tuesday, October 13, 2015 at 4:01:02 AM UTC-5, Wei Chen wrote: > > Hi John, > > Now I moved the server-setting to the section of [agent]. And really I > don't need typing the server option as follow: > > puppet agent -t > > But the agent can't be started as a daemon now, i.g. the agent can

[Puppet Users] Re: Can Windows environment variables be referenced by 'exec'

2015-10-12 Thread jcbollinger
On Friday, October 9, 2015 at 2:53:47 PM UTC-5, Leroy Tennison wrote: > > Puppet v3.4.3 > > What I was specifically hoping to do was: > > exec { 'test' : > > command => "%comspec% /c (a Windows command-line program with parameters)", > > } > > > to avoid having to determine where Windows was

[Puppet Users] Re: Puppet Managing Virtual Resource

2015-10-12 Thread jcbollinger
On Friday, October 9, 2015 at 2:53:47 PM UTC-5, Costya Regev wrote: > > Hi , > I have a question regarding managing puppet virtual Resource i have this > code: > class Carb::chocolatey { > include chocolatey > # [Make Chocolately default package provider] > Package { provider =>

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-12 Thread jcbollinger
On Monday, October 12, 2015 at 2:40:23 AM UTC-5, Wei Chen wrote: > > Hi, > > Here is my puppet.conf on the server side: > ... > [master] > certname=s001ap38-test > ... > > The puppet.conf on the agent side is: > ... > [master] > server=s001ap38-test > ... > > The puppet agent does not use

Re: [Puppet Users] Write arrays to an erb

2015-10-09 Thread jcbollinger
On Thursday, October 8, 2015 at 9:52:29 AM UTC-5, Sergiu Cornea wrote: > So therefore, what I am trying to do, is that I've got a template which > does this for me, and I have specified A CLASS instead of define as you've > said I was getting an error saying that the couldn't associate

[Puppet Users] Re: Confused after system upgrade - F22, Puppet 4.1.0-5

2015-10-09 Thread jcbollinger
On Thursday, October 8, 2015 at 11:08:35 AM UTC-5, Bret Wortman wrote: > > So I upgraded our Puppet server to Fedora 22, which brought with it an > upgrade from Puppet 3.8-ish to 4.1.0-5. And as this wasn't expected (I > should have read and studied more -- it's definitely my fault), a few >

[Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-08 Thread jcbollinger
On Thursday, October 8, 2015 at 1:34:39 AM UTC-5, Wei Chen wrote: > > Hi, > > I change the copied file on client site on purpose to see if this will be > recovered by server. According to the document, the changed file on client > will be recovered by server every half an hour. But this

Re: [Puppet Users] Write arrays to an erb

2015-10-08 Thread jcbollinger
On Thursday, October 8, 2015 at 3:38:55 AM UTC-5, Sergiu Cornea wrote: > > Hi Martin, > > Thank you for your response. > > This is the code I have developed: > > http://pastebin.com/76SzwhZV > > Are we to assume that the commented-out File declaration in that code is the one that causes the

[Puppet Users] Re: The right way to create Hiera resources?

2015-10-08 Thread jcbollinger
On Wednesday, October 7, 2015 at 4:07:29 PM UTC-5, Marc Teale wrote: > > Is there a right/approved/standard way to create hiera resources for forge > modules that don't do it on their own? (This is a question about the right > way to structure my Puppet code. I'm not asking how to use >

[Puppet Users] Re: Using ENC and node defintion for configuration

2015-10-08 Thread jcbollinger
On Wednesday, October 7, 2015 at 9:07:53 AM UTC-5, Richard Rechenberg wrote: > > Hello Puppet Users, > > for handling my different environments I'am using directory environments. > Every environment has its own node definiton stored in the nodes.pp. For > only one of the environments I want to

[Puppet Users] Re: Error:Could not autoload puppet/type/ec2_instance: /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:31:

2015-10-08 Thread jcbollinger
On Wednesday, October 7, 2015 at 11:06:50 AM UTC-5, Ramkumar Nagaraj wrote: > > Does anyone have experience with getting the puppetlabs-aws module to > work? > > I am running: > > Puppet 3.8.3 > > Centos 6.7 > > Ruby 1.8.7 > > > Following the readme on the forge: > > http://ift.tt/1Q4LHkQ > >

[Puppet Users] Re: err: Failed to apply catalog: Parameter source failed on File[...]: Cannot use URLs of type 's001ap38-test' as source for fileserving at /etc/puppet/modules/httpd/manifests/init.pp:

2015-10-07 Thread jcbollinger
On Tuesday, October 6, 2015 at 8:02:23 AM UTC-5, Wei Chen wrote: > > Hi all, > > As I run following command: > > puppet agent --server s001ap38-test --no-daemonize --verbose --onetime > > I got error as follow: > ... > err: Failed to apply catalog: Parameter source failed on >

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

2015-10-06 Thread jcbollinger
On Monday, October 5, 2015 at 9:45:34 AM UTC-5, Dale Bradman wrote: > > Hi Szerémi, > > I am new to Puppet. Could you explain this a little more please? > > I have my Puppet master and the node I am trying to run 'puppet agent > --test' on however I am seeing the same error as Shawn. > > To

[Puppet Users] Re: Custom Provider - Set all attributes on resource creation

2015-10-05 Thread jcbollinger
On Sunday, October 4, 2015 at 5:03:17 PM UTC-5, Danny Roberts wrote: > > I am writing my first custom type/provider for a Puppet module. I can > correctly check for, create & destroy an instance of a resource as well as > update attributes. The existing implementation of the provider is here:

[Puppet Users] Re: should create_resources honor schedule metaparameter?

2015-09-29 Thread jcbollinger
On Monday, September 28, 2015 at 10:17:31 PM UTC-5, Tom Downes wrote: > > I have a defined resource that I instantiate through create_resources and > a set of defaults that trace back to hiera: > > create_resources("apache::vhost", $full_apache_hash, $http_defaults) > > > http_defaults: > >

[Puppet Users] Re: dump complete enc to file on client

2015-09-28 Thread jcbollinger
On Monday, September 28, 2015 at 6:10:35 AM UTC-5, Michael Wörz wrote: > > Hello, > > we want to dump ENC Data to a file on the puppet clients so that it can be > used outside puppet scripts. > > file{'/etc/config-enc': > content => "$yaml" > } > > does the Job but the output data is not

[Puppet Users] Re: multi-line content= construct for puppet resource file command

2015-09-23 Thread jcbollinger
On Wednesday, March 6, 2013 at 12:49:44 AM UTC-6, Robert Citek wrote: > > Hello all, > > How does one enter multi-line content using 'puppet resource file ...' > at the command line? > > For example, I am trying to create a file called /tmp/hw.txt with two > lines of content: > > $ cat

Re: [Puppet Users] puppet local environment doesn't match server specified node environment switching agent to

2015-09-22 Thread jcbollinger
On Tuesday, September 22, 2015 at 3:51:17 AM UTC-5, Andreas Dvorak wrote: > > Hi, >> > > I am using Puppet 3.6.2 free version. The node classification is done by > the node.pp file. > I do not understand the group. Where does the Puppet Master do the > overwritting of the environment? > > A

[Puppet Users] Re: Hiera lookup function doesnt fail if attr isnt found

2015-09-21 Thread jcbollinger
On Friday, September 18, 2015 at 4:36:32 PM UTC-5, Joao Morais wrote: > > > Hello list. I am using the hiera() lookup function in order to query > some few attributes from a http backend. Something like this: > > common.yaml > --- > ... > class::attr:

[Puppet Users] Re: puppet cert clean unrevokes old revoked certs?

2015-09-18 Thread jcbollinger
On Thursday, September 17, 2015 at 7:27:59 AM UTC-5, Kostis Fardelas wrote: > > Hi, > I revoke a host cert: > puppet cert --revoke host1.example.com > > I verify that the host1 cert was added to the crl, restarted puppetmaster > and the client is indeed banned. > > I clean another's host cert:

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

2015-09-17 Thread jcbollinger
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) based on a Hiera variable that set either true or false.

[Puppet Users] Re: invoke modules from puppetforge from hiera yamls?

2015-09-16 Thread jcbollinger
On Tuesday, September 15, 2015 at 8:14:05 PM UTC-5, Chris Jefferies wrote: > > > > At my office we use puppet hiera. The general approach has been to use key > value pairs in the yaml files as the source for variables in the modules > which are defined with snippets that look like this: > >

Re: [Puppet Users] Duplicate declaration - class is already declared

2015-09-16 Thread jcbollinger
On Tuesday, September 15, 2015 at 2:33:16 PM UTC-5, Julian Meier wrote: > > Thanks you! The explanation about private and public classes is just great! > > So, there seems to be no way to define IN the module how public classes > get evaluated (order), right? > Evaluation order is

[Puppet Users] Re: Puppet ERB

2015-09-15 Thread jcbollinger
On Tuesday, September 15, 2015 at 3:48:02 AM UTC-5, Sergiu Cornea wrote: > > Good morning guys, > > I am trying to template the OMD rules file and for this I am using 2 > arrays one which holds the IPs and the other one the Services. > > In my ERB template I have this: > > This bit is surely

[Puppet Users] Re: Duplicate declaration - class is already declared

2015-09-14 Thread jcbollinger
On Friday, September 11, 2015 at 4:31:40 PM UTC-5, Julian Meier wrote: > > Hi all > > I’ve got three classes (example): > > ``` > class mymodule ( > $user = 'foobar', > ) {} > > class mymodule::classone ( > $foo = 'bar', > ) inherits ::mymodule::classone::params { > require

[Puppet Users] Re: hiera and standard enc

2015-09-11 Thread jcbollinger
On Thursday, September 10, 2015 at 12:14:49 PM UTC-5, Andrew Hibbert wrote: > > Hi, > > I have an ENC script and also want to use hiera > > There is no inherent problem with this. > My ENC script returns > > parameters: >location: loc1 >purpose: hieratest >fqdn: hostname >

[Puppet Users] Re: Problem using variable as key to access data in hash

2015-09-11 Thread jcbollinger
On Friday, September 11, 2015 at 2:00:17 AM UTC-5, Malintha Adikari wrote: > > Hi, > > I have a hash inside a template and I want to access values in that hash > providing keys. I am getting key from a variable. > > > <%- my_key = @ipaddress -%> > hostip= <%= my_hash[my_key] -%> > > But I am

[Puppet Users] Re: Automatic parameter binding value is NOT available elsewhere in hiera

2015-09-09 Thread jcbollinger
On Wednesday, September 9, 2015 at 5:44:57 AM UTC-5, Fraser Goffin wrote: > > Puppet: v4.2.1 > Hiera: v3.0.1 > Facter: v3.0.2 > Ruby: 2.1.6p336 > > Platform: Windows. > > Came across an interesting behaviour when using hiera that was unexpected > (to me anyway). I don't necessarily think its a

[Puppet Users] Re: Using hiera to configure the jgazeley/ossec module

2015-09-09 Thread jcbollinger
On Tuesday, September 8, 2015 at 4:49:22 PM UTC-5, Todd C wrote: > > I'm in the process of refactoring our puppet to make use of r10k, hiera > and roles/profiles, as seems to be the suggested methodology these days. > > I've successfully got the ericsson/motd and puppetlabs/apt modules up and

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-08 Thread jcbollinger
On Friday, September 4, 2015 at 6:54:52 AM UTC-5, David Levray wrote: > > Thanks for your return. > > It is noted that hiera your search directly in the common.yaml, it is not > your path hierarchy. > Oh, come on. It is not erroneous to have an Hiera hierarchy consisting of only one level.

[Puppet Users] Re: Is there a method for puppet to find all suid files?

2015-09-08 Thread jcbollinger
On Friday, September 4, 2015 at 2:01:28 PM UTC-5, Sean wrote: > > Hi, > > I'm using a module from the Forge to manage auditd rules, the module works > quite well and managing rules is very easy. The hard part is that there's > a requirement to audit use SUID files on each system. With out

[Puppet Users] Re: merge 2 of more files

2015-09-08 Thread jcbollinger
On Monday, September 7, 2015 at 7:08:13 AM UTC-5, Patrick G. wrote: > > Hi, > > In /etc/puppet/hieradata/users/ I have 2 yaml files. > For a node I want to merge these files and on the other node only one file. > > In the /etc/puppet/enc/nodes/server1.yaml I have: > --- > classes: > - ssh >

[Puppet Users] Re: Display the contents of a yaml file

2015-09-04 Thread jcbollinger
On Friday, September 4, 2015 at 3:35:04 AM UTC-5, Sergiu Cornea wrote: > > Thank you John, > > Thank you for your answer and sorry for the ambiguity. > > The YAML file I am referring to is the node's YAML file such as in the > Puppet's NTP complete example: > > What you are looking at is

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-03 Thread jcbollinger
On Thursday, September 3, 2015 at 6:20:42 AM UTC-5, Alfredo De Luca wrote: > > Hi all. > sorry for late reply. SoIt's not completely wrong what I am trying > to do but still not working. > As far as I can tell, in fact, what you're trying to do is mostly *right*. You seem to be in

[Puppet Users] Re: Display the contents of a yaml file

2015-09-03 Thread jcbollinger
On Thursday, September 3, 2015 at 3:10:42 AM UTC-5, Sergiu Cornea wrote: > > Good morning guys, > > I am not sure if I am asking the right question, however, I am looking for > a Puppet / Foreman Web API that when called with a node name it will > display the contents of that YAML file? > By

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-01 Thread jcbollinger
On Monday, August 31, 2015 at 12:43:14 AM UTC-5, Alfredo De Luca wrote: > > Hi Rich.Thanks for that but when I try to do so I got that error > > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not find class postgresql for puppet-sql.alflab.net on > node

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-01 Thread jcbollinger
On Tuesday, September 1, 2015 at 1:59:10 AM UTC-5, Rich Burroughs wrote: > > Yeah that is not going to work. > > Your Hiera file is a list of classes you're including on the host, What makes you say that? The Hiera fragment presented does not appear to satisfy that description, and the

[Puppet Users] Re: Can I store my hiera data file inside puppet agent side

2015-08-31 Thread jcbollinger
On Sunday, August 30, 2015 at 11:44:45 PM UTC-5, Malintha Adikari wrote: > > Hi, > > Can I store and use my hiera data file in my puppet agent machine rather > than storing in in puppet master ? Then how can I do it ? > > The Puppet master always uses local hiera data when it compiles

[Puppet Users] Re: Speed issue when copying 'n' files

2015-08-31 Thread jcbollinger
On Friday, August 28, 2015 at 7:51:42 AM UTC-5, Sergiu Cornea wrote: > > Hi John, > > Thank you for your reply. So I have decided to go for RPM, however, I am > wondering now as I have finished my first package if I need to create an > RPM for each website (as the location is different such

Re: [Puppet Users] How can I send parameters to a required class?

2015-08-28 Thread jcbollinger
On Thursday, August 27, 2015 at 7:59:28 AM UTC-5, Peter Huene wrote: On Wed, Aug 26, 2015 at 11:50 PM, Francis Chan poi...@gmail.com javascript: wrote: I'm using the something like this since I want all of class bar to be applied before any class foo: # init.pp for module bar class

[Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-28 Thread jcbollinger
On Thursday, August 27, 2015 at 3:47:44 PM UTC-5, Chuck Amadi wrote: Hi Folks, OK, so I digested node classification documentation to ensure my nodes attempts can be classified using the correct node definitions as below: puppet.master # vi /etc/puppet/manifests/site.pp # site.pp file.

[Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-27 Thread jcbollinger
On Wednesday, August 26, 2015 at 9:22:05 PM UTC-5, Chuck Amadi wrote: Hi I Setup a Open Source Puppet Master and a Puppet Agent client on Linux CentOS release 6.6, Puppet 3.8.1 on two separate servers. Have successfully setup communications between both servers (cert

[Puppet Users] Re: Anonymous block scope?

2015-08-27 Thread jcbollinger
On Thursday, August 27, 2015 at 6:03:11 AM UTC-5, Christian Flamm wrote: Hi, is there a way to have anonymous block scope in puppet? In a couple of languages you can simply create limited scope by opening and closing curly braces {...} No, not the way you are thinking. The scope rules

Re: [Puppet Users] Anonymous block scope?

2015-08-27 Thread jcbollinger
On Thursday, August 27, 2015 at 6:35:41 AM UTC-5, Christian Flamm wrote: Not proud of this idea, but... if true { ... } ? The body of an if statement does not establish a separate scope. John -- You received this message because you are subscribed to the Google Groups Puppet

[Puppet Users] Re: Puppet Server dying with high number of JRuby instances

2015-08-26 Thread jcbollinger
On Tuesday, August 25, 2015 at 6:59:42 AM UTC-5, Chris Price wrote: Stefan, That is a very weird error. The way it reads it sounds like something that should happen on every JRuby instance or on none of them (NoClassDefFoundError usually means it's trying to load some code that

Re: [Puppet Users] puppet template syntax problem: undefined method `each' for nil:NilClass

2015-08-19 Thread jcbollinger
On Tuesday, August 18, 2015 at 11:02:27 AM UTC-5, Christopher Wood wrote: Never used that, but it sounds like your instructions are using the Puppet 4 (future) parser but your Learning VM or locally installed puppet is using the version 3 parser. I'm not following why you say that. If

[Puppet Users] Re: Speed issue when copying 'n' files

2015-08-18 Thread jcbollinger
On Monday, August 17, 2015 at 9:23:30 AM UTC-5, Sergiu Cornea wrote: Hello guys, So the scenario is as follows: On a virtual host I've got 10 linux containers and each container has a website associated with. Therefore, for that website to work I have to copy around 100 + files using

Re: [Puppet Users] Why variables standing by themselves should be quoted in resource titles and only there?

2015-08-17 Thread jcbollinger
On Saturday, August 15, 2015 at 9:12:53 PM UTC-5, Rich Burroughs wrote: Hi David, My guess is that this is because of the guideline in section 9.1 that all resource titles be quoted. So that is the area where it should be done for consistency. Otherwise if you have a standalone variable

[Puppet Users] Re: Generate subclasses from hiera

2015-08-17 Thread jcbollinger
On Sunday, August 16, 2015 at 5:59:39 PM UTC-5, puppeteer123 wrote: Is it posible to generate a subclass from a value in hiera? i.e. class yum ( $subclass_name = undef, ) { class yum::repo::$subclass_name I want to be able to create yumrepos individually without having to

[Puppet Users] Re: Help on puppet ERB template

2015-08-13 Thread jcbollinger
On Wednesday, August 12, 2015 at 8:52:50 AM UTC-5, b.gold...@gmail.com wrote: Hi Guys I am new to puppet and ruby. I am working on some erb template for ldap. Following is sample code % if TCPSocket.new(host1, 636) and TCPSocket.new(host2, 636) % host port 636 tls_checkpeer

Re: [Puppet Users] Re: Array of tags not applying to resource

2015-08-10 Thread jcbollinger
On Friday, August 7, 2015 at 5:04:42 PM UTC-5, robert.davidson wrote: So there's no way to apply more than one tag to something at a time and have it actually act as if they are single tags? Therefore, this exported resource: @@module::hostentry{ $::fqdn: tag = [$::fqdn, $::site],

[Puppet Users] Re: Array of tags not applying to resource

2015-08-07 Thread jcbollinger
On Thursday, August 6, 2015 at 5:39:40 PM UTC-5, robert.davidson wrote: First of all: I'm running puppet 3.6.2, as we are not in a position to move to Puppet 4 yet/ When I try to apply an array of tags to an exported resource, as I should be able to according to docs (

Re: [Puppet Users] Virtual resources not refreshing, how to clean out and re-do?

2015-08-06 Thread jcbollinger
On Wednesday, August 5, 2015 at 3:24:33 PM UTC-5, Steve Wray wrote: Oh thanks, that worked. I guess I was confused with the semantics of 'clean' and 'deactivate' and thought 'deactivate' would... deactivate the node not just 'clean' out its virtual resources :) It would be nice if

[Puppet Users] Re: Mixing hiera and site.pp

2015-08-06 Thread jcbollinger
On Wednesday, August 5, 2015 at 7:25:09 AM UTC-5, Alexander Dacre wrote: Hi, I'm going through an initial deployment of Puppet and was looking to use hiera as much as possible, but it seems that many existing modules do not have hiera support. The question I have is, is it 'OK' to have

[Puppet Users] Re: Is there a way to deploy our configuration to agent.

2015-07-31 Thread jcbollinger
On Wednesday, July 29, 2015 at 8:52:14 AM UTC-5, Ayyanar wrote: On Wednesday, 29 July 2015 17:59:02 UTC+5:30, Brendan Murtagh wrote: Please go into more detail. Are you referring to changing the Puppet agent config on your nodes or something else? 1. I have two agent

[Puppet Users] Re: rpm installation ordering question and yum repos

2015-07-31 Thread jcbollinger
On Friday, July 24, 2015 at 11:30:34 AM UTC-5, Vince Skahan wrote: Like many sites, we have internal yum repos that contain our internally-created rpms, as well as some other repos that are internal mirrors of upstream sites (centos updates, etc.). We're running into an ordering issue

[Puppet Users] Re: Puppet4, Hiera3, and environments

2015-07-24 Thread jcbollinger
On Thursday, July 23, 2015 at 9:01:42 PM UTC-5, Stack Kororā wrote: On Thursday, July 23, 2015 at 6:05:27 PM UTC-5, Ellison Marks wrote: No, the environment variable is set in the puppet.conf of every host. I'm not even sure what the effect would be of trying to define environment in

[Puppet Users] Re: How to search and replace a word in file

2015-07-23 Thread jcbollinger
On Thursday, July 23, 2015 at 2:27:03 AM UTC-5, Ayyanar wrote: 1. sed -i 's/\$\$HISTORY\$\$/puppet/' /etc/ system.com I want to replace a word $$HISTORY$$ with puppet text into /etc/system.com file. You have to take care to perform proper

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