[Puppet Users] Error during pluginsync for Puppet 5/6 when using json

2019-02-11 Thread Andreas Zuber
Hello We are in progress of moving from Puppet 4 to 5/6 and we currently have a lab installation of both versions to toy around with. Our agents are still on version 4 and for them everything works as expected without any issues no matter if they connect to the version 4, 5 or 6 puppetserver. Ho

Re: [Puppet Users] Re: How to Orchestrate State, such as use IPs of new systems for config other systems

2018-04-30 Thread Andreas Zuber
On 04/30/2018 06:29 PM, Joaquin Menchaca wrote: > > Bolt has me curious.  I have dabbled around with it, running commands or > a script to a remote node.  Are there other ways I could use this?  > Could I use it to introduce custom facts, or inject values into > puppetdb? hiera?  The docs are not

Re: [Puppet Users] run puppet-agent once per day specific range time.

2018-03-21 Thread Andreas Zuber
Hi We use something like this to distribute cron jobs over a specified time interval: define cron::interval( $ensure= present, $start_hour= undef, $length= '60', # interval length in minutes $comment = undef, $command = undef, $user = 'root',

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

2018-03-09 Thread Andreas Zuber
Is this user on the Puppet server/master? Because Puppet functions are evaluated there and never on the agent. Regards Andreas On 03/09/2018 01:04 PM, Dirk Heinrichs wrote: > Hi, > >   > > I’m trying to write a custom function to get the primary group of a > given user. The following works in p

Re: [Puppet Users] Work-flow for Control-repo in Git

2017-12-26 Thread Andreas Zuber
On 12/24/2017 12:05 AM, Lupin Deterd wrote: > This works initially when it was only one team doing the work/changes > but after opening the work to other teams (apps) it becomes unwieldy. > The pain point happens in #2, #3 where some changes have to wait for a > schedule before it's get promoted

Re: [Puppet Users] Draft for new type and provider API

2017-02-02 Thread Andreas Zuber
Serious question: > Puppet::SimpleResource.implement('apt_key') What is the benefit of a construct like this compared to a regular ruby class where it will be completely obvious to every ruby programmer how inheritance works and what actually happens if I use a mixin? -- You received this messa

Re: [Puppet Users] Terraform provisioner?

2016-10-12 Thread Andreas Zuber
Unfortunately I don't have a Terraform provider for Puppet, but we recently started to use Terraform in combination with Puppet (~3 weeks ago). This is how we do it currently and there is probably a lot of ways how to improve it (ENC and Hiera retrieve node specific data from a mysql based CMDB, d

Re: [Puppet Users] encrypting hiera data?

2016-07-09 Thread Andreas Zuber
Hi While eyaml is great for storing existing passwords or certificates in your hieradata, there are usually also password no one actually has to know (db passwords, etc.). To automate this we use trocla ( https://github.com/duritong/trocla ) and it's hiera backend ( https://github.com/ZeroPointEn

Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-22 Thread Andreas Zuber
On 06/22/2016 11:54 PM, Eric Sorenson wrote: > > Sure, there are definitely people who run the whole stack from gems. > (There are other people who call those people crazy, but that's a > different conversation) > > This becomes weirder with Facter 3 due to the C++ components; right > now the puppe

Re: [Puppet Users] manip of a hash

2016-05-23 Thread Andreas Zuber
Hi You can just use variable interpolation: https://docs.puppet.com/hiera/1/variables.html .This will basically makes another hiera lookup to retrieve the value of ssl_pub_key and ssl_priv_key. hieradata/myhost.yaml my_apache::vhosts: 'my_new_vhost': name: port:

[Puppet Users] Array overwrite or append pattern

2016-02-23 Thread Andreas Zuber
Hello I recently came across a module where I had the following problem: I have some arrays with OS specific defaults which get written into a config file via template. The user of the module may want to do one of the following things: 1. Use the default settings provided by the module 2. Co

Re: [Puppet Users] Type inheritance

2014-09-10 Thread Andreas Zuber
ters, e.g. target only mount resources with an fstype of nfs. > > It should be much simpler to build your own specialized mount purger as > a clone of the resources type, rather than cloning the mount type for > better purging through the resources type proper. > > I hope this makes

[Puppet Users] Type inheritance

2014-09-09 Thread Andreas Zuber
y to inherit a type and to inherit providers from such inherited types? Greetings Andreas - -- Andreas Zuber Linux System-Ingenieur Puzzle ITC GmbH www.puzzle.ch Telefon +41 31 370 22 00 Direkt +41 31 370 22 49 Mobile +41 79 766 25 51 Fax +41 31 370 22 01 Werfen Sie einen Blick in unseren

Re: [Puppet Users] Puppet Dashboard behind HTTPS

2014-06-20 Thread Andreas Zuber
roups.google.com/d/msgid/puppet-users/25e293bd-41b0-4eda-b65b-bb0d82caeff3%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. - -- Andreas Zuber Linux System-Ingenieur Puzzle ITC GmbH www.puzzle.ch Telefon +41 31 370 22 00 Direkt +41 31 370 22 49 Mobile +41

Re: [Puppet Users] Re: Overwrite anchors in hiera

2013-05-16 Thread Andreas Zuber
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi John Thank you for your thoughts on this. On 05/15/2013 07:52 PM, jcbollinger wrote: > I'm not sure what you mean by "overwrite the anchor". In defaults.yaml I set bar: &bar 1 foo1::bar: &bar foo2::bar: &bar And for examlpe in hosts/mymachine.y

[Puppet Users] Overwrite anchors in hiera

2013-05-15 Thread Andreas Zuber
ee in the hiera code this is not possible at the moment. Or is this a bad idea in general? would appreciate your thoughts. Greetings Andreas - -- Andreas Zuber Linux System-Ingenieur Puzzle ITC GmbH www.puzzle.ch Telefon +41 31 370 22 00 Direkt +41 31 370 22 49 Mobile +41 79 766 25

Re: [Puppet Users] Ruby script to download files without 'puppet agent'

2011-06-29 Thread Andreas Zuber
> > # make ssl request > > connection = Net::HTTP.new(url.host, url.port) > > connection.use_ssl = true > > connection.cert = OpenSSL::X509::Certificate.new(File.read(certpath)) > > connection.key = OpenSSL::PKey::RSA.new(File.read(pkey_path)) > > you are missing the CA file... something lik

[Puppet Users] Re: Change Management Practices.

2009-07-22 Thread Andreas Zuber
I try to explain how we implemented our workflow. We developed some strategies to make puppet module development easy to test and we have a way to rollout our configuration to different environments by simply taging the versions we think they are stable enough. Basically we use the power of th