[Puppet Users] Custom ensure instead of ensurable in type provider

2013-03-13 Thread dirk . heinrichs
Hi, I'm currently writing a custom type for managing Windows environment variables. A variable should be (re-)created if it doesn't exist or the value doesn't match the desired value. So exists? checks exactly this. It returns true only if the variable exists and the value matches. This, howe

[Puppet Users] Re: Custom ensure instead of ensurable in type provider

2013-03-14 Thread dirk . heinrichs
Am Mittwoch, 13. März 2013 17:00:18 UTC+1 schrieb jcbollinger: > > > My problem now is that I don't know how to implement "ensure" for this >> case, as I cannot use "ensurable" in the type. >> > > Your problem is that you are conflating distinct (for your purposes) > aspects of your resource's s

[Puppet Users] exec resource not refreshed when subscribed resource changes

2013-03-14 Thread dirk . heinrichs
Hello, I've created a little class which should unpack a 7z archive on Windows. The class has a parameter for passing in the archive version, so that I can trigger an update when a new version of the archive is available. A simplyfied version looks like this (requires 7z): class my_archive ($v

[Puppet Users] Re: exec resource not refreshed when subscribed resource changes

2013-03-14 Thread dirk . heinrichs
Am Donnerstag, 14. März 2013 08:56:31 UTC+1 schrieb dirk.he...@altum.de: > > Hello, > > I've created a little class which should unpack a 7z archive on Windows. > The class has a parameter for passing in the archive version, so that I can > trigger an update when a new version of the archive is

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-19 Thread Dirk Heinrichs
7;t apply to my setup. There are no custom facts added, and the few modules installed from PuppetForge work fine on all the other machines. Anything else I could do to resolve this issue? Thanks... Dirk -- Dirk Heinrichs Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913 GPG Public Key C2E467BB | Jabber: dirk.heinri...@altum.de signature.asc Description: Digital signature

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-21 Thread Dirk Heinrichs
System32\Wbem;%SystemRoot%\system32;D:\Recommind\program\bin64;D:\Recommind\program\bin32\minicygwin;D:\Recommind\program\bin32;D:\Recommind\program\bat\system;D:\Recommind\program\bat;D:\Recommind\jdk\bin;D:\Recommind\jdk32\bin;D:\Recommind\JRuby\bin;D:\Recommind\Downloads\bat;%PATH% Bye...

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-22 Thread Dirk Heinrichs
On Mon, Apr 22, 2013 at 08:58:31AM +0200, Dirk Heinrichs wrote: > C:\Program Files (x86)\Puppet Labs\Puppet\bin>facter path > C:\Program Files (x86)\Puppet Labs\Puppet\puppet\bin;C:\Program Files > (x86)\Puppet Labs\Puppet\facter\bin;C:\Program Files (x86)\Puppet > Labs\Pup

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-22 Thread Dirk Heinrichs
86)\Puppet Labs\Puppet\bin>echo %SYSTEMROOT% C:\Windows C:\Program Files (x86)\Puppet Labs\Puppet\bin>echo %SYSTEMRoot% C:\Windows But, as seen, expanding %SYSTEMROOT% in %PATH% only seems to work when it's all uppercase... And I still hear people whining how complicated this Linux thing

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Dirk Heinrichs
: an example. In the real world, you'd rather setup a DNS server instead of messing with /etc/hosts. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Dirk Heinrichs
, such that the DHCP server updates DNS when a new client comes up. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Dirk Heinrichs
e same address and name everytime, based on the MAC address. It's like a static IP, with the benefit of automatic DNS updates. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (

Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-27 Thread Dirk Heinrichs
gt; 'puppet:///modules/puppetconf/puppet.conf', } } You would then put the puppet.conf file that should be copied to your agents into /etc/puppet/modules/puppetconf/files. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind Gmb

[Puppet Users] hiera-eyaml-gpg gives strange error

2014-01-29 Thread Dirk Heinrichs
Error from DataBinding 'hiera' while looking up 'the_secret_field': can't convert nil into String on node the_machine.example.com Any ideas what could be wrong or how to debug this? Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Reco

[Puppet Users] Re: hiera-eyaml-gpg gives strange error

2014-01-29 Thread Dirk Heinrichs
Am 29.01.2014 17:27, schrieb Simon Hildrew: > On Wednesday, 29 January 2014 14:43:22 UTC, Dirk Heinrichs wrote: > > Hi, > > I'm trying to store some encrypted values in hiera, using either > hiera-eyaml or hiera-eyaml-gpg. While hiera-eyaml (PKCS7 > e

Re: [Puppet Users] Re: hiera-eyaml-gpg gives strange error

2014-01-30 Thread Dirk Heinrichs
Am 30.01.2014 08:05, schrieb Dirk Heinrichs: > Am 29.01.2014 17:27, schrieb Simon Hildrew: > >> Can you raise an issue on the github project >> at https://github.com/sihil/hiera-eyaml-gpg with details on how you >> produced the error? > > Sure. https://github.com/s

Re: [Puppet Users] Rebooting all agents simultaneously

2014-02-06 Thread Dirk Heinrichs
7;reboot_trigger'], refreshonly => true, } } Your agents will now reboot whenever you change $reason. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159

Re: [Puppet Users] Best practices: client/server VS Git

2014-02-21 Thread Dirk Heinrichs
. But we have certain software on certain nodes which should only be updated on demand, so we use the "puppet apply" approach for this in addition to the standard configuration. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-L

[Puppet Users] Windows: Can't create/update file in user's home directory using template

2014-03-03 Thread Dirk Heinrichs
-1756-qjll80): The system cannot find the file specified. Any idea what's going wrong here? Both master and agent are running Puppet 3.4.2. Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*:

Re: [Puppet Users] Windows: Can't create/update file in user's home directory using template

2014-03-05 Thread Dirk Heinrichs
found that none of the fixed issues seemed to apply to my problem. Thanks for pointing me into the right direction. BTW: I had this problem on Windows Server 2008R2. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 533

[Puppet Users] Problem with custom facts and hiera

2014-03-11 Thread Dirk Heinrichs
gent. What am I doing wrong here? Master is 3.4.3, agents are 3.4.2. Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@

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

2014-03-11 Thread Dirk Heinrichs
%{::fqdn}" in hiera.yaml and I can overwrite values from common.yaml with values taken from node/myhost.recommind.com.yaml without problem. To me it looks like facter is reading the file containing the custom fact, while the agent does not. Bye... Dirk -- *Dirk Heinrichs*, Senior Sys

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

2014-03-11 Thread Dirk Heinrichs
Am 11.03.2014 10:17, schrieb Dirk Heinrichs: > To do this, I've placed a simple text file "custom_facts.txt" into > C:\ProgramData\PuppetLabs\facter\facts.d with content > > [facts] > role = PuppetDev Got it to work by removing the blanks: role=PuppetDev Bye...

Re: [Puppet Users] Re: mount point directory permissions

2014-03-23 Thread Dirk Heinrichs
ent run. If the permissions of the mount point and the mounted directory are different, that would lead to a permission change ping-pong, unless one leaves the permission and ownership attributes of the mount point file resource untouched and uses an exec with appropriate conditions and "

Re: [Puppet Users] Re: mount point directory permissions

2014-03-24 Thread Dirk Heinrichs
> running every time, but it will run any time the mount resource changes. Shouldn't you add "subscribe=>Mount['/app_dir']", then? Otherwise, there's nothing that triggers the refresh. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Enginee

Re: [Puppet Users] Re: mount point directory permissions

2014-03-24 Thread Dirk Heinrichs
Am 24.03.2014 12:10, schrieb Peter Bukowinski: > That's what the notify parameter in the mount resource does. Yes, you're right. I always use subscribe instead of notify and didn't even recognize you use the latter ;) Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Eng

Re: [Puppet Users] How to remove a directory?

2014-04-06 Thread Dirk Heinrichs
g directory trees and make it available on Github ;) HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*:

Re: [Puppet Users] Re: Getting latest agent on debian for ARM?

2014-04-08 Thread Dirk Heinrichs
: % uname -a Linux rohan 3.13-1-kirkwood #1 Debian 3.13.7-1 (2014-03-25) armv5tel GNU/Linux HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *

[Puppet Users] Hiera lookups in Ruby code

2014-04-14 Thread Dirk Heinrichs
Hi, is it possible to do Hiera lookups inside Ruby code, for example in a provider for a new resource type? If so, how? Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage

Re: [Puppet Users] How to make sure a config file haven't changed in an OS upgrade?

2014-04-23 Thread Dirk Heinrichs
ves, OTOH, support in-place upgrades. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*: dirk.hein

Re: [Puppet Users] "locking" puppet runs

2014-05-08 Thread Dirk Heinrichs
fig file on all MariaDB servers, but only one at a time." See http://www.slideshare.net/PuppetLabs/presentation-16281121 for some more information. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *

Re: [Puppet Users] btsync (was: Module for lsyncd - multiple syncs to be configured, but only one config file)

2014-05-16 Thread Dirk Heinrichs
'btsync::password'),# Password ensure => absent,# Removes the sync folder from btsync AND on disc. require => Exec['run_btsync'], # Make sure btsync is installed and running. } Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Enginee

Re: [Puppet Users] puppet kick as sudo fails

2014-05-16 Thread Dirk Heinrichs
Am 16.05.2014 12:26, schrieb Andy Adman: > Shit now it fails. I checked my sudoers rules and ok there is written: Your $HOME is different than foreman's. Puppet looks into $HOME/.puppet for it's certs. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineer

Re: [Puppet Users] puppet kick as sudo fails

2014-05-16 Thread Dirk Heinrichs
Am 16.05.2014 12:26, schrieb Andy Adman: > /Warning: Puppet kick is deprecated./ Maybe mcollective is what you want. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ans

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
Am 26.05.2014 15:09, schrieb cheniour ghassen: > but puppet seems to not understand $2. Because it's an awk variable. You need to escape it somehow (\$2, maybe). HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
Am 26.05.2014 15:18, schrieb cheniour ghassen: > i tried to escape but this doesn't work . Hmm, try awk \'...\', like shown here <https://ask.puppetlabs.com/question/3020/execs-onlyif-not-playing-nicely-with-test/>. Bye... Dirk -- *Dirk Heinrichs*, Senior Syste

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
Am 26.05.2014 15:24, schrieb Dirk Heinrichs: > Am 26.05.2014 15:18, schrieb cheniour ghassen: > >> i tried to escape but this doesn't work . > > Hmm, try awk \'...\', like shown here > <https://ask.puppetlabs.com/question/3020/execs-onlyif-not-playing-nicely

[Puppet Users] Hiera lookup bug?

2014-05-26 Thread Dirk Heinrichs
assing the value to the class as a default parameter instead of through hiera. Any ideas how to fix this? Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@rec

Re: [Puppet Users] Hiera lookup bug?

2014-05-27 Thread Dirk Heinrichs
Am 27.05.2014 10:15, schrieb R.I.Pienaar: > Quote the number, 1.10 is a string Ah, OK. Thought that everything is a string in hiera. Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2

Re: [Puppet Users] PostgreSQL INSERT

2014-05-27 Thread Dirk Heinrichs
;PGPASSWORD=${password}"], } This executes the command for creating a schema, if it doesn't exist already. Of course, you could try to write your own resource type and provider for db queries, but I doubt it won't buy you anything except for a cleaner syntax and maybe platfor

Re: [Puppet Users] PostgreSQL INSERT

2014-05-28 Thread Dirk Heinrichs
here, the problem from my PoV is that such a type provider would be pretty complex. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com

Re: [Puppet Users] Ability to "wait" for dotnet to complete installation

2014-06-03 Thread Dirk Heinrichs
esource available on Github <https://github.com/basti1302/puppet-wait-for>. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommin

Re: [Puppet Users] puppetlabs-java: installing oracle-jdk on ubuntu trusty 14.04

2014-06-09 Thread Dirk Heinrichs
Am 10.06.2014 07:35, schrieb Milan Simonović: > I'm still trying to figure out how to install java *just using* > puppetlabs-java module. You can't. There is no package "oracle-jdk" on Ubuntu. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering

Re: [Puppet Users] how to change root password for all nodes

2014-07-10 Thread Dirk Heinrichs
te new /etc/sudoers file to your VMs. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com[1] <_mailto:dhs@recommind.com

Re: [Puppet Users] how to change root password for all nodes

2014-07-10 Thread Dirk Heinrichs
te new /etc/sudoers file to your VMs. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.co

Re: [Puppet Users] puppet agent upgrade on windows

2014-12-08 Thread Dirk Heinrichs
Downgrade is a different story, depending on the versions involved. I've alread done upgrades from 3.2.1 to 3.4.3 and I'm currently in the process of upgrading ~150 Windows agents from 3.4.3 (32bit) to 3.7.3 (64bit) and I don't see any problems related to file locks. Bye... Dirk

Re: [Puppet Users] puppet agent upgrade on windows

2014-12-08 Thread Dirk Heinrichs
d my module. You may need to remove/replace the "puppetstore" parts. > More over how do you, if you have to, deal with the .net4 issue that I > posted? No, I don't have that issue. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recomm

Re: [Puppet Users] puppet agent restarting everyday?

2014-12-12 Thread Dirk Heinrichs
ter. Logrotate cronjob (/etc/cron.daily)? HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skyp

[Puppet Users] Bug: Exec resource executes although dependencies have failed

2014-12-16 Thread Dirk Heinrichs
): Executing 'cmd /C somecommand.exe' Debug: Executing 'cmd /C somecommand.exe' So it says "Skipping because of failed dependencies", but then executes it anyway. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Li

Re: [Puppet Users] puppet agent restarting everyday?

2014-12-16 Thread Dirk Heinrichs
e puppet agent, which restarts it. However, according to puppet-agent(8), this action should better be sending a SIGUSR2 ("Close file descriptors for log files and reopen them. Used with logrotate."), which wouldn't trigger an agent restart. Should this be considered a bug in /etc/in

[Puppet Users] Installing multiple versions of a ZIP archive

2015-01-02 Thread Dirk Heinrichs
as no loops. Do I really need to write a custom type and provider for this? Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:

Re: [Puppet Users] Installing multiple versions of a ZIP archive

2015-01-02 Thread Dirk Heinrichs
Am 02.01.2015 um 09:26 schrieb Dirk Heinrichs: > There must be a better way to do this. I thought about passing in the > versions as an array, but Puppet has no loops. Found it. Defined types is the way to go. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engin

[Puppet Users] MCollective: Problem on CentOS6

2015-01-14 Thread Dirk Heinrichs
entos hosts? Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*: dirk.heinrichs.recommi

Re: [Puppet Users] Upgrade

2015-01-20 Thread Dirk Heinrichs
for my module ;). HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*: dirk.heinrichs.recommind www

Re: [Puppet Users] Upgrade

2015-01-20 Thread Dirk Heinrichs
.el6.noarch.rpm > > and yum upgrade puppetdb-2.0.0-1.el6.noarch.rpm > > and the obvious yum upgrade puppet-3.6.2-1.el6.noarch.rpm Yes (could also be one command). "yum upgrade", as I suggested, would update ALL packages to their LATEST versions. Bye... Dirk -- *Dir

Re: [Puppet Users] puppet agent is not reflecting my changes

2015-02-18 Thread Dirk Heinrichs
, not "sites.pp". HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*: dirk.heinrichs.recommind www.r

Re: [Puppet Users] My puppet code is not idempotent (Windows package provider)

2015-02-19 Thread Dirk Heinrichs
16:59 +0100 2015 /Stage[main]/[ .. module > ]/Package[signotec WinUSB]/ensure (notice): created > / > /./ > > Any ideas? Is 'signotec WinUSB' exactly the name of the package as reported by Windows in Control Panel\All Control Panel Items\Programs and Features? dito for the ver

Re: [Puppet Users] Strategies for "boring" packages

2016-04-20 Thread Dirk Heinrichs
ot; instead of "latest". Of course, input array for both classes must be mutually exclusive, if both are used at the same time. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 15966

Re: [Puppet Users] Migration to PuppetDB and Apache/Passenger setup

2016-05-20 Thread Dirk Heinrichs
ymore. There's only PuppetServer, which is standalone. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...

Re: [Puppet Users] How does Puppet Push Model works

2016-08-16 Thread Dirk Heinrichs
itiate an agent run remotely, from the master. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*:

Re: [Puppet Users] Influence hiera file selection from within hiera

2016-09-07 Thread Dirk Heinrichs
ays the same, we checkout different branches of a hiera repository in each environment to get different file content. HTH... Dirk -- *Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline http://mimage.opentext.com/alt_content/binary/images/email-signature/recommind-ot.png <http://www

Re: [Puppet Users] Hiera changes on specific node

2016-11-18 Thread Dirk Heinrichs
ommon.yaml: foo::bar: node_specific_value HTH... Dirk -- *Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline http://mimage.opentext.com/alt_content/binary/images/email-signature/recommind-ot.png <http://www.opentext.com> *Tel*: +49 2226 159666 (Ansage) 1149 *Email*: dirk.heinri...@recomm

Re: [Puppet Users] Problem with Puppet reinstalling Windows APPs

2016-12-08 Thread Dirk Heinrichs
at Reader DC': ... } HTH... Dirk -- *Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline http://mimage.opentext.com/alt_content/binary/images/email-signature/recommind-ot.png <http://www.opentext.com> *Tel*: +49 2226 159666 (Ansage) 1149 *Email*: dirk.heinri...@recommind.

Re: [Puppet Users] Problem with Puppet reinstalling Windows APPs

2016-12-09 Thread Dirk Heinrichs
package is not installed and try to install it again." HTH... Dirk -- *Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline http://mimage.opentext.com/alt_content/binary/images/email-signature/recommind-ot.png <http://www.opentext.com> *Tel*: +49 2226 159666 (Ansage)

Re: [Puppet Users] Problem with Puppet reinstalling Windows APPs

2016-12-09 Thread Dirk Heinrichs
gt; 'chocolatey', ensure => latest, ... } } Note that in the 2nd example, one could also add the $version paramater and use that instead of latest. Depends on your needs. Bye... Dirk -- *Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline http://mimage.open

Re: [Puppet Users] Problem with Puppet reinstalling Windows APPs

2016-12-09 Thread Dirk Heinrichs
Am 09.12.2016 um 16:20 schrieb Rob Nelson: > This is not fun when there isn't a chocolate package to use instead. https://chocolatey.org/packages/adobereader https://chocolatey.org/packages/adobereader-update Bye... Dirk -- *Dirk Heinrichs* | Senior Systems Engineer, Delivery

Re: [Puppet Users] Urgent Help Required | Puppet run is dead slow

2016-12-12 Thread Dirk Heinrichs
f 2: Try adding some splay to the agent configuration: splay = true splaylimit = 2m HTH... Dirk -- *Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline http://mimage.opentext.com/alt_content/binary/images/email-signature/recommind-ot.png <http://www.opentext.com> *

Re: [Puppet Users] Over-engineering rant

2017-01-08 Thread Dirk Heinrichs
e exotic plate from that I > never heard of or are not good for stratum 1 servers. They are > tailored for my need, that's enough for me. They never brake, never > warn, works almost unchanged from puppet 2.7 time and it take me the > same amount of time that it would have taken to d

Re: [Puppet Users] writing custom fact -> return value not as expected

2017-01-10 Thread Dirk Heinrichs
the awk part for clarity): % LC_ALL=en_US.UTF-8 who -b system boot 2017-01-02 11:10 % LC_ALL=de_DE.UTF-8 who -b system boot 2017-01-02 11:10 > % LC_ALL=C /usr/bin/who -b |awk '{print $3}' > Jan Only here: % LC_ALL=C who -b system boot Jan 2 11:10 Bye...

Re: [Puppet Users] syntax issue over puppet_4

2017-02-22 Thread Dirk Heinrichs
e... Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com <mailto:dirk.heinri...@recommind.com> *Website*: www.recommind.de <http://www.recommind.de> Recommind GmbH, Von-Liebig

Re: [Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread Dirk Heinrichs
Am 10.03.2017 um 14:02 schrieb R.I.Pienaar: > the first is just wrong OTOH, I mostly use $::facts['fact_name']. Bye... Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com <ma

Re: [Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread Dirk Heinrichs
arifying. Bye... Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com <mailto:dirk.heinri...@recommind.com> *Website*: www.recommind.de <http://www.recommind.de> Recommind GmbH, Von-Liebig

[Puppet Users] The repository 'http://apt.puppetlabs.com xenial Release' is not signed.

2017-04-27 Thread Dirk Heinrichs
Hi, I'm currently facing this error when I try to apt-get update after installing puppetlabs-release-pc1-xenial.deb (also tried the latest one from the pool: puppetlabs-release-pc1_1.1.0-4xenial_all.deb). Please fix. Thanks a lot, Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Del

Re: [Puppet Users] The repository 'http://apt.puppetlabs.com xenial Release' is not signed.

2017-04-27 Thread Dirk Heinrichs
t.com/v2/url?u=https-3A__tickets.puppetlabs.com_browse_CPR-2D419&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=fVbRecTIOve70lQBAD1KhDc7eBikXQ3uXNM4Gizr0Mg&s=R4WHWNsDmvZ6MHIHz6f_ACwAMYeGs40bhz641ca6ozI&e=> Yep, works again. Thanks a lot... Dirk -- *Di

Re: [EXTERNAL] - [Puppet Users] Need to put iterative value in a file

2017-05-05 Thread Dirk Heinrichs
ot/.ssh/test"), which is not allowed. The resource names inside the loop must be unique (for each resource type). They're best coupled with the loop counter variable ($value in this case). HTH... Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discover

Re: [EXTERNAL] - [Puppet Users] Missing puppet-agent package on Debian Jessie

2017-06-13 Thread Dirk Heinrichs
get the source package and build one for amr yourself. HTH... Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com <mailto:dirk.heinri...@recommind.com> *Website*: www.recommind.de <http://www.reco

Re: [Puppet Users] Missing puppet-agent package on Debian Jessie

2017-06-13 Thread Dirk Heinrichs
PuppetLabs doesn't provide source packages for puppet-agent (only for puppetserver). So it seems you're out of luck here. You could try to write a bug report and ask them to provide the needed packages. Bye... Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenT

Re: [EXTERNAL] - [Puppet Users] Every run puppet notices package install created

2017-09-21 Thread Dirk Heinrichs
Am 21.09.2017 um 11:33 schrieb Lars Van Steenbergen: > So every run i get this notice: > /Stage[main]/Icinga::Install/Package[icinga*]/ensure created  > Please, don't provide any more details, someone could be able to help, then. *SCNR* Bye...     Dirk -- *Dirk Heinrichs*

Re: [EXTERNAL] - [Puppet Users] Notice: package install ensured on every run

2017-09-21 Thread Dirk Heinrichs
ed "icinga*" in your distribution. You need to provide the exact package name(s), either as array or as several package resources. Array example: package { ['some', 'packages', 'to', 'install']:     ... } HTH...     Dirk -- *Dirk Heinrichs* Senio

Re: [Puppet Users] Set environment variable for Service resource

2017-11-07 Thread Dirk Heinrichs
bute but still can't figure out how) so is > there a workaround for this such as exporting an environment variable > globally? What I want to avoid doing is writing a bash script to > export them and run it prior to the Service's actual start script. Which OS (flavour, version)

Re: [Puppet Users] Set environment variable for Service resource

2017-11-07 Thread Dirk Heinrichs
ry (to be created), to avoid messing with distribution provided files. Bye...     Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com <mailto:dirk.heinri...@recommind.com> *Website*: www.recommind.de <

Re: [Puppet Users] Duplicate declaration error - what's the correct approach to avoid this?

2017-11-23 Thread Dirk Heinrichs
you need to use ${x} in the resource declaration to actually have the variable interpolated. HTH...     Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com <mailto:dirk.heinri...@recommind.com> *Website*

Re: [Puppet Users] Re: Duplicate declaration error - what's the correct approach to avoid this?

2017-11-24 Thread Dirk Heinrichs
Your code produces 2 resources with the name "adding ns $resolver" instead of one resource named "adding ns 4.4.4.4" and one named "adding ns 8.8.8.8". HTH...     Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind

Re: [Puppet Users] Duplicate declaration error - what's the correct approach to avoid this?

2017-11-24 Thread Dirk Heinrichs
you need to use ${x} in the resource declaration to actually have the variable interpolated. HTH...     Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com <mailto:dirk.heinri...@recommind.com> *Website*

[Puppet Users] Re: Custom fact for linux service

2018-02-21 Thread Dirk Heinrichs
From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Bill Sirinek > I'm not sure you need a custom fact for this. Can you just check to see if, > for example, Service['autofs']  or Service['autofs.service'] are defined? Don't think so. Service is for *controll

[Puppet Users] Custom function that requires a Ruby library module

2018-03-09 Thread Dirk Heinrichs
...Error while evaluating a Function Call, undefined method `gid' for nil:NilClass..." Any hints as to what could be wrong here? Seems it doesn't do the "require", but I'm not sure. Documentation doesn't say anything about using Ruby library modules. Thanks...

Re: [Puppet Users] Custom function that requires a Ruby library module

2018-03-09 Thread Dirk Heinrichs
Von: zu...@puzzle.ch [mailto:zu...@puzzle.ch] > Is this user on the Puppet server/master? Because Puppet functions are > evaluated there > and never on the agent. OK, that's my mistake, then. So I'd better use a fact... Thanks for the hint. Bye... Dirk -- You received this message

RE: [Puppet Users] Module needed to update kernel

2018-04-17 Thread Dirk Heinrichs
From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of samarth saxena > Need some pointers to write a puppet  module to update kernel to latest > update. > "yum update kernel" package {'kernel': ensure => latest, # or some specific version } > if one error co

Re: [Puppet Users] Re: Advice on Puppet update to 4

2015-07-24 Thread Dirk Heinrichs
ket, though... Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*: dirk.heinrichs.recommind www.re

[Puppet Users] Custom Type: Error 400 on SERVER: Invalid parameter

2015-08-05 Thread Dirk Heinrichs
then doesn't use it. Applying the test class with "puppet apply" also works fine. This is on Puppet 3.8.1 (Master and Agent) using puppetserver 1.1.1. Doesn't matter whether the agent runs on Linux or Windows. Any further hints? Thanks... Dirk -- *Dirk Heinrichs*, Senior

Re: [Puppet Users] Custom Type: Error 400 on SERVER: Invalid parameter

2015-08-05 Thread Dirk Heinrichs
Am 05.08.2015 um 13:33 schrieb Dirk Heinrichs: > I've already restarted the puppetserver process on the master as well > as the agent. Nevermind, another server restart seems to have fixed the problem. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineerin

Re: [Puppet Users] Re: Debian Testing and Debian Stable leaving apt.puppetlabs.com

2015-08-14 Thread Dirk Heinrichs
eliver systemd service descriptions with the packages (Debian has decided to switch from sysvinit to systemd). Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Ema

Re: [Puppet Users] Puppet dashboard Debian Jessie

2015-08-27 Thread Dirk Heinrichs
wever: > Package libdbd-mysql-ruby is not installed. Don't give too much details, people may be able to help you. So, how do you try to install it (please provide exact command plus its complete output)? Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solut

Re: [Puppet Users] Puppet dashboard Debian Jessie

2015-08-28 Thread Dirk Heinrichs
Am 28.08.2015 um 13:58 schrieb marcos.ata1...@gmail.com: > apt-get install puppet-dashboard > > Lendo listas de pacotes... Pronto Try again please with LC_ALL=C apt-get install puppet-dashboard so that I can actually understand the language ;) Bye... Dirk -- *Dirk Heinrichs

Re: [Puppet Users] Puppet dashboard Debian Jessie

2015-08-28 Thread Dirk Heinrichs
l-ruby; however: Package > libdbd-mysql-ruby is not installed. Guess you tried to use the Wheezy repository on Jessie. Jessie doesn't have ruby1.8 anymore. Bye... dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 R

Re: [Puppet Users] Puppet dashboard Debian Jessie

2015-08-28 Thread Dirk Heinrichs
Am 28.08.2015 um 02:42 schrieb Marcos Renato: > I try to install puppet-dashboard Puppet Dashboard is also deprecated, I'd recommend you use The Foreman <http://theforeman.org/> instead. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recomm

Re: [Puppet Users] Puppet dashboard Debian Jessie

2015-08-28 Thread Dirk Heinrichs
petlabs.com wheezy dependencies > > jessie does not have puppet-dashboard. Yep, because it's deprecated. And Jessie doesn't have ruby1.8 anymore. Try The Foreman <http://theforeman.org/> instead of Dashboard. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineerin

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
ervice could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance." The agent service is running under the local system account on both Windows versions. Any idea what could be wrong here? Thanks... Dirk --

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
seems to be special to Win 2012. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*: dirk.

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
Am 17.09.2015 um 16:03 schrieb Rob Reynolds: > It /can/ work, it's just not deterministic. As you are seeing. That's not what I'm seeing. I'm seeing that it HAS worked fine on Windows 2008 for the past 2 years or so (and still does), but doesn't on Windows 2012.

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
Am 18.09.2015 um 07:56 schrieb Dirk Heinrichs: > Am 17.09.2015 um 16:03 schrieb Rob Reynolds: > >> It /can/ work, it's just not deterministic. As you are seeing. > > That's not what I'm seeing. I'm seeing that it HAS worked fine on > Windows 2008 for the

  1   2   3   >