Re: [Puppet Users] Include class with parameters

2016-06-08 Thread Martin Alfke
Hi Harish, On 09 Jun 2016, at 06:49, Harish Kothuri wrote: > Hi, > > I have classA with parameter and i want to include this in another classB . I > expected to consider the default value defined in foreman for classA but it's > not happening. > > > class classA

Re: [Puppet Users] environmentpath in manifest

2016-05-13 Thread Martin Alfke
Hi Daniele, On 13 May 2016, at 02:13, Daniele Palumbo <dani...@retaggio.net> wrote: > Il giorno 12/mag/2016, alle ore 10:19, Martin Alfke <tux...@gmail.com> ha > scritto: >> You might want to access the Puppet settings: >> >> Puppet.initia

Re: [Puppet Users] environmentpath in manifest

2016-05-12 Thread Martin Alfke
Hi Daniele, On 08 May 2016, at 23:36, Daniele Palumbo wrote: > Hi, > > i need to check if a file exists on the puppet master. > > No big deal: > http://stackoverflow.com/questions/18784329/how-to-test-for-existence-of-a-file-on-the-puppet-master > > So i made: > -- >

Re: [Puppet Users] Module design

2016-05-06 Thread Martin Alfke
Hi , On 06 May 2016, at 17:29, Jeff wrote: > I'm working on a puppet module that automatically places the entire catalog > into zenoss (this is based on an outdated module that I found on github) > > By default, I want to place every server in zenoss. > > I have a base

Re: [Puppet Users] Upgrading Puppet from 2.7 to 4

2016-05-06 Thread Martin Alfke
Hi Chris, On 06 May 2016, at 15:46, christg76 wrote: > Hi, I'm fairly new to Puppet and have been given the project of upgrading an > existing Puppet 2.7 site (Puppetmaster with Apache/Passenger, and MySQL for > exported resources, with hundreds of clients), possibly to

[Puppet Users] Feedback for lint check extension on non local references

2016-05-01 Thread Martin Alfke
Hi, in the trainings I recommend to participants to never have references to declarations outside of the class to prevent hidden class or even module dependencies. Therefor I decided to do a lint plugin: https://github.com/voxpupuli/puppet-lint-reference_on_declaration_outside_of_class-check

Re: [Puppet Users] Does the puppet agent start puppetmaster?

2016-04-18 Thread Martin Alfke
Hi Cesar, On 18 Apr 2016, at 12:05, César wrote: > Hi all, > > I have been looking for some docs to get more information on the subject, but > I have not been able to find them. Apologies if this has been asked before! > > I'm curious about what happens when a puppet agent

Re: [Puppet Users] Virtual resources ?

2016-03-31 Thread Martin Alfke
On 31 Mar 2016, at 17:28, Jakov Sosic <jso...@gmail.com> wrote: > On 03/31/2016 05:10 PM, Martin Alfke wrote: > >> You are passing a Hash as an parameter to a define. >> Inside the define you expect the parameter to be of type String - according >> to what you do

Re: [Puppet Users] Virtual resources ?

2016-03-31 Thread Martin Alfke
Hi, On 31 Mar 2016, at 16:38, Jakov Sosic wrote: > Hi guys, > > I have a `test.pp` manifest that looks like: > > > ``` > define basket($arg) { > file { "/tmp/$name": >ensure => present, >content => $arg, > } > } > > foobar = { > 'fruit' => { arg => 'apple' }, >

Re: [Puppet Users] Resources sharing across different classes.

2016-03-31 Thread Martin Alfke
Hi Arfoz, this is the best example on how to _not_ do classes. Every class should be self contained - as long as possible. In your case you have a hard reference from one resource inside a class to another resource inside another class. I always tell my training course attendees that they should

Re: [Puppet Users] Defined resource type, lambda block

2016-03-30 Thread Martin Alfke
Hi Manuela, On 30 Mar 2016, at 12:51, 'Manuela Mueller' via Puppet Users wrote: > Dear All, > > I'm trying to set up a small module in order to test defined resource types. > Module should create 2 users, data are in host specific yaml file pieps.yaml. > When I

Re: [Puppet Users] Configure puppet-master on 443 rather then 8140

2016-03-29 Thread Martin Alfke
On 29 Mar 2016, at 13:47, Rohit Sharma wrote: > Hi Team, > > By default when we install foreman puppet-master running/listen agent request > on 8140, but I need to it on 443 only AFAIK foreman listens on 443. Why do you want to move away from 8140? puppet

Re: [Puppet Users] Please Confirm: Puppet Directory Environments can not be named "master" ?

2016-03-23 Thread Martin Alfke
On 23 Mar 2016, at 12:23, Henrik Lindberg <henrik.lindb...@puppetlabs.com> wrote: > On 23/03/16 11:24, Martin Alfke wrote: >> >> On 22 Mar 2016, at 22:53, Carthik Sharma <cart...@puppetlabs.com> wrote: >> >>> To answer the question in the s

Re: [Puppet Users] Please Confirm: Puppet Directory Environments can not be named "master" ?

2016-03-23 Thread Martin Alfke
On 22 Mar 2016, at 22:53, Carthik Sharma wrote: > To answer the question in the subject, you're correct, as documented here for > Puppet 3.8 > > https://docs.puppetlabs.com/puppet/3.8/reference/environments_classic.html#allowed-names Is this only for Puppet 3.8 or is

Re: [Puppet Users] Help to find Automation tool

2016-03-06 Thread Martin Alfke
Hi Mamadou, Puppet OpenSource also supports windows: https://docs.puppetlabs.com/windows/ Best, Martin On 06 Mar 2016, at 10:13, Mamadou CHERIF wrote: > Hello Team, > > I am a noob on automation. > I should choose one tool between Puppet, CHEF and Spacewalk. > I

Re: [Puppet Users] puppet cannot find class.

2016-03-05 Thread Martin Alfke
Hi On 05 Mar 2016, at 11:18, dE wrote: > Hi. > > I've made a class in the $basemodulepath location -- > > puppet config print | grep basemodulepath > basemodulepath = /etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules > > ls -R

Re: [Puppet Users] puppet log files

2016-02-29 Thread Martin Alfke
anks, > > > On Monday, February 29, 2016 at 11:09:49 AM UTC-5, Martin Alfke wrote: > > On 29 Feb 2016, at 16:17, moons...@gmail.com wrote: > > > I have installed puppet 4.3 in Centos 7. > > > > I have checked /var/log/puppetlbas. Not sure whic

Re: [Puppet Users] puppet log files

2016-02-29 Thread Martin Alfke
> mcollective-metadata-cron.log > postgresql PuppetDB is a REST to PGSQL interface and has its logs here > mcollective.log > puppetdb This is where puppetdb stores its logs. > > > Thanks, > Chaitanya > > On Monday, February 29, 2016 at 10:12:01 AM UTC-5, Martin

Re: [Puppet Users] puppet log files

2016-02-29 Thread Martin Alfke
Hi, On 29 Feb 2016, at 15:59, moonsun1...@gmail.com wrote: > Hi All, > > I have install puppet enterprise 4.3 version. May I know where can i see log > files. PE 2015.3.x or FOSS Puppet 4.3? > > i have checked /var/log/messages it is not updating. Logs should be in /var/log/puppetlabs/

Re: [Puppet Users] Puppetdb and multiple puppetmasters

2016-02-28 Thread Martin Alfke
Hi, On 28 Feb 2016, at 00:39, Robert Davidson wrote: > I'm quite certain that there's something in the documentation that I'm > missing here. (It has all the hallmarks of an Own Damn Fault situation.) > Nonetheless, as I'm getting nowhere, I figure I'll fling out a

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

2016-02-04 Thread Martin Alfke
Hi Sam On 03 Feb 2016, at 16:28, Sam wrote: > My hiera entries - > > mysqlconfig::custom_mysql_options: > mysqld: > replicate-ignore-db: 'test' > server-id: 12 > datadir: '/data/mysql_data' > > > I want to get the value of datadir in my puppet module.

Re: [Puppet Users] Using Future Parser on Puppet v3.8.2

2016-01-30 Thread Martin Alfke
On 29 Jan 2016, at 21:44, Sans wrote: > > Hi there, > Need to iterate over an arry, so was trying the Future Parser. Using a very > simple example: > > > > $alpha = ['a','b','c'] > each($alpha) |String $value| { notice( "Hi there, ${value}" ) } > > but getting

Re: [Puppet Users] Warning: Local environment: "production" doesn't match server specified node environment

2016-01-30 Thread Martin Alfke
Hi Matt, an ENC can set an environment for a node. In case that a node does not specify an environment it will make use of environment production. You can specify node environment on the node in puppet.conf in agent section: [agent] environment = apt Best, Martin On 28 Jan 2016, at 18:13,

Re: [Puppet Users] Overriding file resource with class inheritance

2016-01-30 Thread Martin Alfke
Hi Kyle, On 30 Jan 2016, at 01:27, Kyle Flavin wrote: > On Friday, January 29, 2016 at 3:44:24 PM UTC-8, Garrett Honeycutt wrote: > Hi Kyle, > > I think you have a scoping issue, try using the double colons for the > puppet class, such as 'class foreman-proxy::puppet

Re: [Puppet Users] testing approaches for puppet upgrades

2016-01-30 Thread Martin Alfke
On 30 Jan 2016, at 13:48, Tim Coote wrote: > What's the best way to test upgrades of puppetmaster? I'm trying to migrate > from 3.x to 4.x on a small network. An obvious step for me was to create the > new manifests on a new VM and then to confirm that the existing

Re: [Puppet Users] override values in puppet account creation

2016-01-23 Thread Martin Alfke
You need to specify all attributes of the resource type usage as parameters at the define: accounts::virtual { ‘mysql’: uid=> ‘…’, shell => ‘…' home => ‘…’, realname => ‘…’, pass => ‘…’, } define accounts::virtual ( $uid, $shell => ‘…’, $home => ‘…’, $realname =>

Re: [Puppet Users] server not listed in manifests, but gets catalog

2016-01-11 Thread Martin Alfke
Hi Andreas, > On 11.01.2016, at 13:47, Andreas Dvorak wrote: > > Hi, > > after the update of the puppet master from 3.3.1 to 3.6.2 a host gets a > catalog even if it is not defined in manifests. Is this a new funcationality? > I did not see anything in the release

Re: [Puppet Users] What I think that is needed for a practical Puppet class

2016-01-02 Thread Martin Alfke
Hi Rudy, Great idea and work! I really appreciate supporting less advanced countries. Maybe you want to also look at our new Puppet documentation/slide/example project: http://www.example42.com/guide/ I encourage people to start using self developed modules (but with a prefix for the module

Re: [Puppet Users] Puppet Enterprise Installation errors

2015-12-22 Thread Martin Alfke
Hi Nathan, On 22 Dec 2015, at 18:54, Lindsey Smith wrote: > > > On Tue, Dec 22, 2015 at 9:36 AM, nathan joiner > wrote: > Good Morning, > > I'm trying to setup PE puppet master server and a windows agent node but I'm > getting "no

Re: [Puppet Users] osfamily in class namespace error

2015-12-20 Thread Martin Alfke
Hi Fraser, On 20 Dec 2015, at 10:00, Fraser Goffin wrote: > Forgot to mention, if I run puppet lint over the RedHat::install.pp manifest > this error occurs (I don't know whether this is because I am running that on > Windows - with osfamily set to 'RedHat' or not) :- > >

Re: [Puppet Users] foreman exec node.rb turn out: No such file or directory

2015-12-15 Thread Martin Alfke
On 15 Dec 2015, at 07:33, 辛建国 wrote: > hi,when I exec "sudo -u puppet /etc/puppet/node.rb puppet.server.com" > command on puppet server ~ it turned out that ": No such file or directory", > but when I run "sudo -u puppet ruby /etc/puppet/node.rb puppet.server.com" >

Re: [Puppet Users] Puppet 4 Patterns and Best Practices

2015-12-09 Thread Martin Alfke
Hi Lee, On 08 Dec 2015, at 20:12, Lee Lowder wrote: > All, > > I recently upgraded my Puppet (open source) install to Puppet 4.3.0. > > I'm currently in the process of updating internal documentation and training > the rest of my teams, but I was wondering if anyone had

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

2015-12-09 Thread Martin Alfke
Hi, On 09 Dec 2015, at 14:08, ddns...@gmail.com wrote: > Hello Group, > > > I am working on a module to handle mounting of NFS mounts. > Puppet: 3.7.1 > Hiera: 1.3.4 > > I have already tested it in my lab machine and it works as expected: > > mytestserver.example.com.yaml > nfsmounts: >

Re: [Puppet Users] Puppet 4 Patterns and Best Practices

2015-12-09 Thread Martin Alfke
(inline) On 09 Dec 2015, at 14:30, Christopher Wood <christopher_w...@pobox.com> wrote: > (inline) > > On Wed, Dec 09, 2015 at 09:19:13AM +0000, Martin Alfke wrote: >> Hi Lee, >> On 08 Dec 2015, at 20:12, Lee Lowder <thefried...@gmail.com> wrote: >> &

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

2015-12-09 Thread Martin Alfke
er 9, 2015 at 11:12:31 PM UTC+8, Martin Alfke wrote: > Hi, > On 09 Dec 2015, at 14:08, ddn...@gmail.com wrote: > > > Hello Group, > > > > > > I am working on a module to handle mounting of NFS mounts. > > Puppet: 3.7.1 > > Hiera: 1.3.4 > >

Re: [Puppet Users] Puppet Enterprise Installation Error on CentOS7

2015-12-07 Thread Martin Alfke
Hi Nikhil, please paste the log file (/var/opt/puppetlabs/puppetserver/puppetserver.log) into gist (not a screenshot). http://gist.github.com/ I assume that the error is at the end of the file. Did you run the journalctl -xn command (like mentioned in the output)? The error log snippet you

Re: [Puppet Users] Puppet Enterprise Installation Error on CentOS7

2015-12-05 Thread Martin Alfke
Hi, On 05 Dec 2015, at 04:16, Nikhil Rao wrote: > I tried to install puppet enterprise from puppet master and while selecting > monolithic installation and setting upto 500 nodes and setting up the DNS > name and the alias name and encountered an error WARNING 1: set 2

Re: [Puppet Users] puppet open-source and Mac client

2015-12-02 Thread Martin Alfke
Hi, On 02 Dec 2015, at 17:12, John Oliver wrote: > I have puppet-server 3.8.3 and am working on making that go with a Mac > running 10.10.5 "Mavericks". I installed puppet-agent-1.2.6-1.osx10.10.dmg > When I run 'puppet agent --test' on the Mac, I get: Puppet-agent is

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

2015-11-30 Thread Martin Alfke
Hi Francois, On 30 Nov 2015, at 05:09, Francois 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. The

Re: [Puppet Users] Still mud-wrestling with spec testing

2015-11-28 Thread Martin Alfke
I assume you have Rakefile, spec/spec_helper.rb and .fixtures.yml in place as well? On 27 Nov 2015, at 21:23, Peter Berghold wrote: > So, > > Now that my schedule has some slack in it I've turned my attention back to > doing spec testing of my Puppet modules.

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

2015-11-15 Thread Martin Alfke
Hi Haani, On 15 Nov 2015, at 06:58, Haani Niyaz wrote: > Our SOE document states that all repositories should be disabled by default > and enabled on installing a package. So when we write modules our package > resource more or less looks like this: > > package {

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

2015-11-11 Thread Martin Alfke
On 10 Nov 2015, at 20:33, Arnau wrote: > Hi, > > > > > I see two possible entry points for your problem: > > > > 1. environment specific hiera data > > according to your hiera.yaml file you have hieradata per environment. > > can you please cross check that the

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

2015-11-10 Thread Martin Alfke
Hi Arnau, On 10 Nov 2015, at 14:23, Arnau <listsar...@gmail.com> wrote: > > > 2015-11-10 14:39 GMT+01:00 Martin Alfke <tux...@gmail.com>: > Hi Arnau > Hi Martin, > > Are your hiera data generic or specific to environments? > > specific to hiera. >

Re: [Puppet Users] Testing yaml files being passed as parameters using rspec-puppet

2015-11-10 Thread Martin Alfke
Hi, On 06 Nov 2015, at 14:38, choffee wrote: > I have a define which takes a yaml file as a parameter and want to check that > my template creates valid yaml. > > I am currently using regexp to test bits of it like so > > should

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

2015-11-10 Thread Martin Alfke
Hi Arnau On 10 Nov 2015, at 13:19, Arnau wrote: > … > in hiera defaults.yaml I've also defined a couple of nagios::client[1] > variables (for not including selinux): > > $cat hieradb/defaults.yaml > [...] > > nagios > ::client::selinux: 'false' > > nagios >

Re: [Puppet Users] puppet-4-able agent for RHEL7 on ppc64?

2015-10-13 Thread Martin Alfke
Hi Marc, > On 24.09.2015, at 14:54, Marc Haber wrote: > > Hi, > > I am looking for a puppet agent rpm that can run against a puppet 4 > server (and can use its features) for RHEL 7 on ppc 64. On > yum.puppetlabs.com, I can only find binaries for agent 1.2.4

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

2015-10-08 Thread Martin Alfke
Hi Bret, On 08 Oct 2015, at 09:08, 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

Re: [Puppet Users] Write arrays to an erb

2015-10-07 Thread Martin Alfke
Hi Sergiu, On 07 Oct 2015, at 09:12, Sergiu Cornea wrote: > Hello guys, > > I am passing 4 arrays in the Hiera file a: {a,b,c} b: {d,e,f} c: {g,h,i} d: > {j,k,l} which I am using them in an .erb template. However, when I am trying > to run Puppet it is

Re: [Puppet Users] Ordering agent runs

2015-10-06 Thread Martin Alfke
On 06 Oct 2015, at 11:39, rjl wrote: > Hi All, > I have an odd requirement to contend with. We have puppet clients that have > peers. While a catalog is being executed on one client, its peer must not > execute its catalog until the other is complete. Each client has only

Re: [Puppet Users] puppetserver error: no such file to load -- pg on node puppetmaster1

2015-09-21 Thread Martin Alfke
On 20 Sep 2015, at 18:00, Martin Alfke <tux...@gmail.com> wrote: > > On 19 Sep 2015, at 21:14, rhpuppetu...@gmail.com wrote: > >> Thanks Martin for replying. By the way, i'm following your seminars on >> youtube and they are very helpful. The error still

Re: [Puppet Users] puppetserver error: no such file to load -- pg on node puppetmaster1

2015-09-20 Thread Martin Alfke
eproduce this error on Debian 7 with puppetserver 2.1.1 I have opened a ticket at PuppetLabs: https://tickets.puppetlabs.com/browse/SERVER-905 > > ===== > > > On Friday, September 18, 2015 at 1:51:44 AM UTC-5, Martin Alfke wrote: > > On 18 Sep 2015, at

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Martin Alfke
one you want to disable. service apache|nginx|httpd will start the passenger rack application. The web server name depends on - which web server - which distribution > > On Friday, September 18, 2015 at 1:40:22 PM UTC+5:30, Martin Alfke wrote: > > On 18 Sep 2015, at 09:49, Vishal Goel

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Martin Alfke
On 18 Sep 2015, at 09:24, Vishal Goel wrote: > I am experiencing a very strange error in puppet. I have around 4-5 > environments in my puppet codebase and whenever i add a new environment, it > doesn't work. Even thought the code of new environment added is almost >

Re: [Puppet Users] puppetserver error: no such file to load -- pg on node puppetmaster1

2015-09-18 Thread Martin Alfke
On 18 Sep 2015, at 04:08, rhpuppetu...@gmail.com wrote: > Our puppet master used to run using apache passenger stack. We've recently > migrated from passenger to puppetserver. When i run puppet agent -vt on my > client, its showing the following error. > > Error 400 on server : could not

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Martin Alfke
2:29 ?00:00:05 /usr/bin/ruby1.8 > /usr/bin/puppet master This is the ruby webrick process. Kill this one! > > > > Maybe the problem is with them? > > > On Friday, September 18, 2015 at 1:02:48 PM UTC+5:30, Martin Alfke wrote: > > On 18 Sep 2015, at 09:24, V

Re: [Puppet Users] params.pp vs Hiera

2015-09-09 Thread Martin Alfke
As a module developer I want to provide a module which will do sane defaults without forcing users to hiera. Module developer (at the moment) put OS and application defaults into params.pp. As a user you might want to override these defaults and specify them either as a parameter or via hiera.

Re: [Puppet Users] Inside a custom function, how can you know if noop is enabled ?

2015-09-06 Thread Martin Alfke
Hi Fred, On 05 Sep 2015, at 19:36, Frédéric Lespez wrote: > Hi, > > Inside a manifest, you can know if noop is enabled thanks to the $clientnoop > variable[1]. > But inside a custom function, how can you know it ? $clientnnop is a fact [1] You can access facts from

Re: [Puppet Users] How to set puppet runintervel to neverrun?

2015-08-17 Thread Martin Alfke
On 17 Aug 2015, at 11:38, Ayyanar ayyanar@gmail.com wrote: I don't want to fetch the configuration for particular interval. example default runintervel = 30min. I want to never fetch the configuration. How to set this value. The “default_runinterval” only has a meaning when you have

Re: [Puppet Users] PuppetDB and Debian Jessie

2015-08-14 Thread Martin Alfke
Hi Oli, there are a couple of tickets at PL regarding jessie support as puppet server: https://tickets.puppetlabs.com/browse/CPR-111?jql=text%20~%20%22jessie%22 https://tickets.puppetlabs.com/browse/CPR-111?jql=text%20~%20%22jessie%22 Unluckily no delivery date has been given so far. Best,

Re: [Puppet Users] Help with NTP module provided by puppetlabs

2015-08-10 Thread Martin Alfke
, not with normal variables inside a manifest. With foreman you should also be able to create a group setting based on timezone fact (I don’t have access to foreman right now, so I can not verify). Best, Martin Thanks, EddieM On Sunday, August 9, 2015 at 5:35:07 PM UTC+3, Martin Alfke wrote

Re: [Puppet Users] Help with NTP module provided by puppetlabs

2015-08-09 Thread Martin Alfke
Hi Eddie, On 09 Aug 2015, at 16:25, Eddie Mashayev eddie...@gmail.com wrote: Hi All, I have many servers spread in 3 different time zones USA (NY and San Francisco) and also in ISR. Have 3 NTP servers, one NTP server in each location. https://forge.puppetlabs.com/puppetlabs/ntp module

[Puppet Users] How to define own data types in Puppet 4?

2015-08-06 Thread Martin Alfke
Hi, is there the possibility in Puppet 4 to provide own data types. e.g. Fullpath $path instead of Regexp[/\/.*/] $path or Pattern[/\/.*/] $path thanks, Martin -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

Re: [Puppet Users] Puppet Module spec testing

2015-08-05 Thread Martin Alfke
Hi Peter, On 04 Aug 2015, at 21:37, Peter Berghold salty.cowd...@gmail.com wrote: Is there a newer set of documents on doing Spec testing of Puppet modules than this link? https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing I am running into a brick wall getting this

Re: [Puppet Users] How to make file_line autocreate files?

2015-08-04 Thread Martin Alfke
Hi, On 04 Aug 2015, at 12:24, Arnaud Gomes-do-Vale arn...@glou.org wrote: Hello, I am trying to manage my dsh groups with Puppet. The way I'm trying to do this: - each node has a block like this in its manifest: @@file_line { ${::fqdn} in dsh group ${group}: line = $::fqdn,

Re: [Puppet Users] String/Float comparison - Puppet and Facter

2015-08-04 Thread Martin Alfke
On 04 Aug 2015, at 00:39, Mike Reed mjohn.r...@gmail.com wrote: Hello all, I've been trying to solve what seems to be a simple problem but have yet to find the answer. I'm trying to do a comparison between the value of a fact and some arbitrary value: if ($::class ==

Re: [Puppet Users] How to make file_line autocreate files?

2015-08-04 Thread Martin Alfke
On 04 Aug 2015, at 13:30, Arnaud Gomes-do-Vale arn...@glou.org wrote: Martin Alfke tux...@gmail.com writes: @@file { “/etc/dsh/group/${group}”: ensure = file, tag = ‘dsh’, } File || tag == ‘ssh’ | - File_line | tag == 'dsh' | This creates files when required and takes care

Re: [Puppet Users] Puppet noop and Rsync

2015-08-04 Thread Martin Alfke
Hi, On 04 Aug 2015, at 10:26, Sergiu Cornea s.cor...@my.westminster.ac.uk wrote: Good morning guys, When I am running Puppet in noop shouldn't Rsync do a dry-run in order to show me what files have changed or if they are the same? —noop refers to the agent only. Everything else takes place

Re: [Puppet Users] Method to automatically/remotly clear out sign certificates

2015-07-15 Thread Martin Alfke
Hi Grant, On 14 Jul 2015, at 20:03, Grant Schoep matobin...@gmail.com wrote: Using Puppet 3.6 now, but will be upgrading to 3.8 shortly. All running on CentOS 7 So I am setting up a small network to be used in testing application deploys/OS. The idea is basically this. 1. Build out a

Re: [Puppet Users] where is PC1 for Debian Jessie?

2015-07-06 Thread Martin Alfke
Hi Felix, seems as if Jessie is missing the apt-sources. Remove the sources line from /etc/apt/sources.list.d/filename and rerun apt-get update best, Martin On 06 Jul 2015, at 01:37, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Hi, has anyone tried the PC1 on jessie yet? I just did

Re: [Puppet Users] How to execute multiple script in puppet using bashrc file sourced.

2015-07-02 Thread Martin Alfke
Hi, On 02 Jul 2015, at 10:29, Ayyanar ayyanar@gmail.com wrote: 1. I am executing two shell script in puppet agent. 2. In first shell script setting env variable in bashrc file. example export JAVA_HOME=/opt/jdk1.8.0_45 bashrc file and i sourced bashrc file. Do not do this via an

Re: [Puppet Users] permission denied on files

2015-06-17 Thread Martin Alfke
Hi Tim, the agent wants to fetch the file puppet:///modules/bacula/monitor1/monitor1.mydomain.com.crt But on the Master you are shooing us a file with the name: environments/production/modules/bacula/files/monitor1: total 8.0K -rw-r--r--. 1 puppet puppet 2.0K Jun 16 21:53

Re: [Puppet Users] Facter throwing MySQL errors

2015-05-29 Thread Martin Alfke
Have you tried running facter -p This will also pull the pluginsynced facts. (I am unsure which version has puppet facter) On 29 May 2015, at 11:21, Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: Hi folks, Since upgrading to Puppet 3.8.1 my Facter (2.4.4) has been throwing this

Re: [Puppet Users] Facter throwing MySQL errors

2015-05-29 Thread Martin Alfke
crops up when puppet or mcollective execute facter too. Thanks, Jonathan On 29/05/15 12:25, Martin Alfke wrote: Have you tried running facter -p This will also pull the pluginsynced facts. (I am unsure which version has puppet facter) On 29 May 2015, at 11:21, Jonathan Gazeley

Re: [Puppet Users] Fresh Puppet PE 3.8 install error

2015-05-26 Thread Martin Alfke
to proceed I have tried 3 times and I thing this is a bug with the product. Please advice of any solution. Thanks On Saturday, May 2, 2015 at 3:58:39 AM UTC+10, Martin Alfke wrote: Confirmed. This package list also solves installation issue on Ubuntu 14.10 Many thanks, Martin

Re: [Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-11 Thread Martin Alfke
, 2015 at 8:03:25 AM UTC-5, Martin Alfke wrote: Hi, I am working on some types and providers for opennebula network management. I have one type already finished, which creates the network itself. Each network can have multiple address ranges. My idea so far: onevnet { ’testnet

[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Martin Alfke
Hi, I am working on some types and providers for opennebula network management. I have one type already finished, which creates the network itself. Each network can have multiple address ranges. My idea so far: onevnet { ’testnet’: ensure = present, … } onevnet_addressrange { ‘name’:

Re: [Puppet Users] parameters from agent to master

2015-04-29 Thread Martin Alfke
the agent sends facts to master. you want to look for facter extensions to geht data from agent to master. On Apr 29, 2015 3:27 PM, saji...@wso2.com wrote: Is there a way to pass parameters from agent to master? -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Juniper SRX 5400

2015-04-28 Thread Martin Alfke
On 28.04.2015, at 11:17, rto...@gmail.com wrote: Does puppet support provisioning the juniper SRX-5400. I could not find yet. If yes then could you please direct me in right direction with some available documents.

Re: [Puppet Users] Managing multiple files in a directory - permissions issue

2015-04-07 Thread Martin Alfke
On 07 Apr 2015, at 04:55, Dave Hunsinger dhuns...@calliduscloud.com wrote: Can somebody help me with what I'm doing wrong here? I want to copy all sshkeys in the file resource of this puppet module to the machine: class sshkeys { file { '/etc/ssh/ssh.keys': ensure = directory,

Re: [Puppet Users] developing module for k5login

2015-04-07 Thread Martin Alfke
On 06 Apr 2015, at 17:35, Dhaval d.josh...@gmail.com wrote: hello, I am trying to develop puppet module for k5login entries .. now my question is, how do i manage entries for multiple hierarchies ? currently when i try it, it picks up from where it finds entry first and completes it,

Re: [Puppet Users] Re: [Announce] Micro-puppet v0.0.2 now available with new code extinguisher feature

2015-04-01 Thread Martin Alfke
I really like the approach of m::in { auto: } and m::cf { auto: } to have my systems up and running in seconds. I just think of my new configuration to change and everything works. ;-) no more manual work. more beertime. And: the future fix script works as documented. ;-) happy hacking!! On 01

Re: [Puppet Users] Upgrading from 0.25.1 to 3.7.4

2015-04-01 Thread Martin Alfke
Hi James, a horrible task (I am still busy at a customer upgrading the puppet DSL code from 2.7.23). You want to get rid of: - non-scoped variables (in manifests, modules and templates) - import in class files You might need to: - clean up node classification - rewrite classes to have

Re: [Puppet Users] new to puppet.

2015-03-21 Thread Martin Alfke
Hi, the best way is to start with learning puppet vm and the according website: https://docs.puppetlabs.com/learning/index.html https://docs.puppetlabs.com/learning/index.html At https://puppetlabs.com/learn https://puppetlabs.com/learn you have the possibility to get a guide through Puppet

Re: [Puppet Users] Selectively Install Packages

2015-03-04 Thread Martin Alfke
on the puppet agent command line or not. What am I missing? I need the class to deploy if and only if specified. Thanks... On Wednesday, March 4, 2015 at 10:05:34 AM UTC-5, Martin Alfke wrote: Hi, On 04 Mar 2015, at 15:57, Steve Harp steve...@rdasys.com wrote: Hi Guys, I'm using Puppet

Re: [Puppet Users] Selectively Install Packages

2015-03-04 Thread Martin Alfke
Hi, On 04 Mar 2015, at 15:57, Steve Harp steve.h...@rdasys.com wrote: Hi Guys, I'm using Puppet for many configuration items and package deployments. I need to be able to only deploy certain packages/classes when the Agent sends a definable command line option. Example: puppet agent

Re: [Puppet Users] delete line in file with substring xyz

2015-02-25 Thread Martin Alfke
The single quotes take the argument as it is. In this case you are looking for a line with *xyz* Maybe you want to try double quotes. hth, Martin On 25 Feb 2015, at 13:58, Andreas Dvorak andreas.dvo...@gmail.com wrote: Dear all I would like to use the stdlib Modul with file_line to delete

Re: [Puppet Users] Dependencies issue for puppet agent installation

2015-02-17 Thread Martin Alfke
Hi Subodh, you might want a repository mirror inside your network. Or: add a local repo only having the required packages. Or: install required packages during provisioning. Best, Martin On 18 Feb 2015, at 07:26, Subodh Kant sk14...@gmail.com wrote: Hi Martin, Thanks. Is there any way

Re: [Puppet Users] Dependencies issue for puppet agent installation

2015-02-17 Thread Martin Alfke
Hi Subodh, when using the simple curl puppet agent installer method you will get a repo file created on the node and the puppet master acts as pe-package repository server. All non PE packages have to be installed using the normal cents/rhel repositories. hth, Martin On 17 Feb 2015, at

Re: [Puppet Users] Dependencies issue for puppet agent installation

2015-02-17 Thread Martin Alfke
Hi Subodh, does the agent have the CentOS/RHEL repositories enabled? Look into /etc/yum.repos.d and check for *.repo files. hth, Martin On 17 Feb 2015, at 07:52, Subodh Kant sk14...@gmail.com wrote: Hi Puppet Team, I am facing Dependencies issue for puppet agent installation. Please help

Re: [Puppet Users] Dependencies issue for puppet agent installation

2015-02-17 Thread Martin Alfke
Hi Subodh, the Puppet master generates a catalog for the agent. Within the catalog the agent receives information regarding its configuration. The agent will then issue proper commands based on the declared Puppet resource types. For packages the agent (RHEL, CentOS) will use the yum command.

[Puppet Users] [Solved] Behavior of exported resource collectors

2015-02-05 Thread Martin Alfke
to inspect all exported resources to analyse what to collect and what not. Fix: set a sane default for all parameters in exported resources. - Martin On 20 Jan 2015, at 16:02, Martin Alfke tux...@gmail.com wrote: Hi, I have the following code: define monitor::host ( $target, $monitortag

Re: [Puppet Users] File() function weird behavior

2015-01-27 Thread Martin Alfke
Hi, On 27 Jan 2015, at 13:45, Przemysław Szypowicz p.szypow...@gmail.com wrote: Hi, When I locally apply manifest: file{'/tmp/cert.pem': ensure = present, content = file(/var/lib/puppet/ssl/private_keys/${::clientcert}.pem), } its working as expected. But when thats manifest

[Puppet Users] Behavior of exported resource collectors

2015-01-20 Thread Martin Alfke
Hi, I have the following code: define monitor::host ( $target, $monitortag = $::domain, ) { } … } The define gets exported on all nodes: @@monitor::host { $::fqdn: } And I collect on the monitor server: Monitor::Host | | { target = ‘/full path to config’, } This is working as expected

Re: [Puppet Users] Resource ordering syntax

2015-01-18 Thread Martin Alfke
When using an array on a resource title Puppet will internally create multiple resource declarations. e.g. when declaring like this: package { [‘foo’, ‘bar’, ‘bas’]: ensure = present } You can build references on each of the array elements: require = Package[‘bas’] see:

Re: [Puppet Users] exec resource long runtime

2015-01-18 Thread Martin Alfke
--norhnsd warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY real 0m15.558s user 0m9.997s sys 0m0.704s [root@labit-lg02 ~]# בתאריך יום ראשון, 18 בינואר 2015 בשעה 15:46:38 UTC+2, מאת Martin Alfke: The 48 seconds is the complete time the agent needs

Re: [Puppet Users] exec resource long runtime

2015-01-18 Thread Martin Alfke
The 48 seconds is the complete time the agent needs for the catalog. Within the catalog you are running two commands: spacewalk-channel -l and rhnreg. Please add both execution times when comparing. On 18 Jan 2015, at 08:29, Royee Tager royee...@gmail.com wrote: Hi, If I run the following

Re: [Puppet Users] update package with condition

2015-01-15 Thread Martin Alfke
Hi, with RH6 you can use yum provider and set ensure to latest. (Maybe you need to create a yum repo for your factor package). hth, Martin On 14 Jan 2015, at 18:34, puppetstan stanislas.lev...@gmail.com wrote: Hi, I would like to update the package facter on all of my servers. (I can not

Re: [Puppet Users] Error: Failed to parse template . Detail: Could not find value for 'serveraliases' at

2015-01-10 Thread Martin Alfke
Hi, class otrs::apache { include apache apache::vhost { $otrs::sitename: priority= '01', docroot = '/var/www', port= '80', serveraliases = [ $::fqdn ], content= template('otrs/vhost-otrs.conf.erb'), } Error: Invalid

Re: [Puppet Users] Error: Failed to parse template . Detail: Could not find value for 'serveraliases' at

2015-01-09 Thread Martin Alfke
Seems to be an issue with unscoped variable inside the template. https://docs.puppetlabs.com/guides/templating.html#referencing-variables Please switch to scoped variables in your template: # OTRS Config # MaxRequestsPerChild (so no apache child will be to big!) MaxRequestsPerChild 4000

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Martin Alfke
Hi, On 08.01.2015, at 09:52, Raphael raphael.k...@gmail.com wrote: Hi, I have a working puppetmaster installed from package on an ubuntu server 14.04 64bits. I've been struggeling for a while now with hiera to achieve what it is written in the doc ; My hiera version is 1.3.0

<    1   2   3   4   5   >