Re: [Puppet Users] How would you represent this in hiera?

2017-06-01 Thread Angel L. Mateo
El 01/06/17 a las 23:19, Peter K escribió: Hi all, I'm using the zleslie-ssh module and trying to configure it with hiera. I have all the lines working but this one (this is the output I"m seeking): | Subsystem sftp/usr/libexec/sftp-server | Here is

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-01 Thread Matthew Kennedy
Because puppet is declarative you can only have one instance of a resource with a particular title in the catalog. This means you cannot have two instances of a class in the catalog (though you can include a class multiple times but it only exists in the catalog once) Luckily you do not have two

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-01 Thread Pete Brown
The require meta parameter will do that. On Thu, 1 Jun 2017 at 14:08, Ugo Bellavance wrote: > Hi, > > I would need to execute a command after the execution of another and I > didn't find anything on the web regarding this. Here's the code: > > if $vhost_name_fact != undef { > >

Re: [Puppet Users] How would you represent this in hiera?

2017-06-01 Thread Peter Kristolaitis
If you're trying to use data binding, then it would be: ssh::server::subsystem::system: '/usr/libexec/sftp-server' That does, however, have problems if you have multiple instantiations of ssh::server::subsystem on a single node with different values, and you'd need to define your own

[Puppet Users] How would you represent this in hiera?

2017-06-01 Thread Peter K
Hi all, I'm using the zleslie-ssh module and trying to configure it with hiera. I have all the lines working but this one (this is the output I"m seeking): Subsystem sftp/usr/libexec/sftp-server Here is successfully working code that is non-hiera:

[Puppet Users] Order two calls of parameterized classes

2017-06-01 Thread Ugo Bellavance
Hi, I would need to execute a command after the execution of another and I didn't find anything on the web regarding this. Here's the code: if $vhost_name_fact != undef { } else { zendserver::sdk::command { "vhost_add_${vhostname}_${port}": target => $target,

[Puppet Users] Re: Patch Automation By Puppet

2017-06-01 Thread James Perry
It really depends on the OS and how you want to handle it. Puppet already has the package ( https://docs.puppet.com/puppet/latest/type.html#package) with the option *ensure => latest,* that will keep the package at the most recent patches available in repos defined on the hosts. If you

Re: [Puppet Users] Struggling with hiera 5 and puppet 4.10

2017-06-01 Thread Sean
Ok, I think I discovered the issues. 1. for the r10k control repo, I cloned puppetlabs example, which has a directory called hieradata, but not hiera.yaml starter file. So I think when I copied from the example of a hiera 5 config file, it uses the default data dir as "data", I needed this

Re: [Puppet Users] Struggling with hiera 5 and puppet 4.10

2017-06-01 Thread Sean
Thanks for that, I have read that blog plus the more recent followup. I also have tried using the --explain flag for the lookup function. Again if I run puppet lookup --node test.demo.local --explain demo::webhost on the puppet master, it produces a value for demo::webhost. If I run on the