[Puppet Users] Re: I'm struggling with some node specific heria

2020-08-01 Thread Dan Crisp
Address string in the pasted Hiera file above. That would cause your >>>>> Yaml >>>>> to be incorrect, and probably ignored. >>>>> - In site.pp, you use the resource-like syntax for including the >>>>> class. I'm not sure what th

Re: [Puppet Users] Re: I'm struggling with some node specific heria

2020-08-01 Thread Dan Crisp
Hello Henrik, Do you have a hunch to why this is not working? Thanks, Dan. On Friday, July 31, 2020 at 7:40:22 PM UTC+1, Henrik Lindberg wrote: > > On 2020-07-31 19:41, A Manzer wrote: > > Did you update site.pp to use the include syntax? > > That is not needed to make automatic parameter

[Puppet Users] Re: I'm struggling with some node specific heria

2020-07-31 Thread Dan Crisp
>>> node lhcsrvprdcms01.domain.com { >>> include permitroot >>> } >>> >>> BTW, out of curiosity, are you using the Puppet PDK >>> <https://puppet.com/docs/pdk/1.x/pdk.html> to develop this module? It >>> brings *a lot* of

[Puppet Users] Re: I'm struggling with some node specific heria

2020-07-31 Thread Dan Crisp
are you using the Puppet PDK > <https://puppet.com/docs/pdk/1.x/pdk.html> to develop this module? It > brings *a lot* of boilerplate, but it also brings things like Yaml syntax > validating and syntax validating that might help you out while you're > learning. > > O

[Puppet Users] Re: I'm struggling with some node specific heria

2020-07-31 Thread Dan Crisp
oes under a data folder.) > > Also, ensure that your yaml file is named lhcsrvprdcms01.domain.com.yaml. > You need the *full* node name, *and* the .yaml at the end for hiera to > find it. That's tripped me up a few times... > > On Thursday, July 30, 2020 at 10:43:13 AM UTC-4, D

[Puppet Users] I'm struggling with some node specific heria

2020-07-30 Thread Dan Crisp
Hello experts, I'm struggling with some node specific heria. I basically want to add the following lines to a number of nodes: Match Address xx.xx.xx.xx PermitRootLogin without-password I have the following in place in an attempt to acheive this: # pwd

Re: [Puppet Users] Hiera Array Only Returns Last Line

2020-03-01 Thread Dan Crisp
Perfect!!! Thank you Martin. On Saturday, February 29, 2020 at 3:49:04 PM UTC, Martin Alfke wrote: > > Sorry. wrong function: > > content => $set.join("\n") > > hth, > martin > > > > On 29. Feb 2020, at 15:56, Dan Crisp > > wrote: &g

Re: [Puppet Users] Hiera Array Only Returns Last Line

2020-02-29 Thread Dan Crisp
> > hth, > martin > > > > On 29. Feb 2020, at 14:42, Dan Crisp > > wrote: > > > > Hi, > > > > Attempting to popualte a file with a hiera array. > > > > I have the following hiera defined: > > > > # more commo

[Puppet Users] Hiera Array Only Returns Last Line

2020-02-29 Thread Dan Crisp
Hi, Attempting to popualte a file with a hiera array. I have the following hiera defined: # more common.yaml vimrc: - 'syntax on' - 'colo delek' - 'set nu' - 'set cursorline' - 'set history=1000' - 'set showmode' - 'set showcmd' Puppet lookup seems to return what I expect to

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-29 Thread Dan Crisp
ml from the node name. > > -- > *Becca Robinson* > Senior Professional Services Engineer > be...@puppet.com | @_itgrl_ > cell: (913) 752-7084 > Puppet <https://www.puppet.com> *The shortest path to better software.* > > > > On Feb 24, 2020, at 8:06 AM,

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-26 Thread Dan Crisp
in: without-password > > > Where you can lookup sshdconfig::match_address > > > As you've already noted, this naming convention is most appropriate for a > module sshdconfig. If there is such a module, its parameters match_address > and permit_root_login would be automat

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-26 Thread Dan Crisp
wever, have sufficient permissions to be at least read. On Wednesday, February 26, 2020 at 1:27:22 PM UTC, Henrik Lindberg wrote: > > On 2020-02-25 16:51, Dan Crisp wrote: > > This is what I have: > > > > --- > > sshdconfig: > >match_address: "xx.xx

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Dan Crisp
to be be a module. Not the case in this instance. In fact, the hiera in question is not refferenced in any module or class etc. Is that the issue? On Tuesday, February 25, 2020 at 3:34:49 PM UTC, Bart-Jan Vrielink wrote: > > Hello, > > > I see you are looking for 'match_address'

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Dan Crisp
eing read. How can I confirm that the file is actualy being read rather than simply sucessfully displayed in the lookup output. On Tuesday, February 25, 2020 at 12:58:02 PM UTC, Henrik Lindberg wrote: > > On 2020-02-25 13:42, Dan Crisp wrote: > > I included the --compile option.

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Dan Crisp
environments/production/data/common.yaml" Original path: "common.yaml" Path not found Function lookup() did not find a value for the name 'match_address' Still no luck finding the requested value though. Thanks, Dan. On Monday, February 24, 2020 at 7:13:25 PM UTC,

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-24 Thread Dan Crisp
Hello Henrik, thanks for your reply. This file: environment/production/data/nodes/nodename.domain.com.yaml On Monday, February 24, 2020 at 4:26:37 PM UTC, Henrik Lindberg wrote: > > On 2020-02-24 17:06, Dan Crisp wrote: > > Hello all, > > > > Strugling to get sta

[Puppet Users] Hiera Setup Lookup Complaining

2020-02-24 Thread Dan Crisp
Hello all, Strugling to get started with Hiera (all new to me): # more /etc/puppetlabs/puppet/hiera.yaml --- *# Hiera 5 Global configuration file* version: 5 # defaults: # data_hash: yaml_data # hierarchy: # - name: Common #data_hash: yaml_data hierarchy: [] # more

[Puppet Users] Augtool Failed To Execute Command

2020-02-24 Thread Dan Crisp
Hello all, Can someone help me out please with this. I can't see what the issue is or what it is I'm doing wrong: augtool> set /files/etc/logrotate.d/syslog/rule/file[last()+1] "/var/log/puppet" augtool> ls /files/etc/logrotate.d/syslog/rule/ file[1] = /var/log/cron file[2] =

[Puppet Users] Update SSH Config File With Different Values

2020-01-08 Thread Dan Crisp
Hi, I'm looking for some advice on a best approach on a topic that I'm know where near an expert in. Should the following be dealt with via a template, hera or something else? Our goal is to deploy a standard SSH configuration across all servers albeit some minor alternations to a handful.

Re: [Puppet Users] Could not find resource 'File[/etc/logrotate.d/syslog]

2019-10-23 Thread Dan Crisp
the > Puppet code point to resource declarations in Puppet code, not to the > artifacts on the system that are managed by those resource declarations. > > [image: reference_manifest.png] > > This means that unless you're actually managing that file with Puppet > code, the relationship wo

[Puppet Users] Could not find resource 'File[/etc/logrotate.d/syslog]

2019-10-22 Thread Dan Crisp
Hi, I'm seeing the following error when running the agent on a server: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find resource 'File[/etc/logrotate.d/syslog]' in parameter 'subscribe' (file:

Re: [Puppet Users] Puppetforge Selinux Module Not Working

2019-10-10 Thread Dan Crisp
Much appreciated Becca for pointing my mistake out. On Tuesday, October 8, 2019 at 12:48:00 AM UTC+1, Rebecca Robinson wrote: > > Yeah you are referring to the instructions of one module while trying to > use another. > > puppetlabs/selinux_core != puppet/selinux > > > >> >> -- You received

Re: [Puppet Users] Puppetforge Selinux Module Not Working

2019-10-07 Thread Dan Crisp
> > On Oct 7, 2019, at 6:58 AM, Dan Crisp > > wrote: > > Hello all, > > I've download the selinux module from Puppet forge: > > puppet module list > /etc/puppetlabs/code/environments/production/modules > └── fixnetix-base (v0.1.0) > /etc/puppetlabs/code/mo

[Puppet Users] Puppetforge Selinux Module Not Working

2019-10-07 Thread Dan Crisp
Hello all, I've download the selinux module from Puppet forge: puppet module list /etc/puppetlabs/code/environments/production/modules └── fixnetix-base (v0.1.0) /etc/puppetlabs/code/modules ├── *puppetlabs-selinux_core (v1.0.2)* └── puppetlabs-stdlib (v6.1.0) /opt/puppetlabs/puppet/modules (no

[Puppet Users] Puppet Template for Multiple OS

2019-10-02 Thread Dan Crisp
Hello all, I’m not sure what I’m attempting can be best accomplished via a template so please do correct me if there is better/simpler method. On our servers within the SSH configuration, we have/need the following line: ListenAddress x.x.x.x This is standard for all our

Re: [EXTERNAL] - [Puppet Users] Puppet agent is not applying changes

2019-10-01 Thread Dan Crisp
Thanks to all that contributed. I managed to solve the issue. Transpires that the permissions on the files and directories (0640 for the most part) was not sufficient. I had to ensure that all files in question had 0644 and directories at 0755 permissions set to get this to work. A simple

Re: [EXTERNAL] - [Puppet Users] Puppet agent is not applying changes

2019-10-01 Thread Dan Crisp
Thanks to all that contributed. I managed to solve the issue. Transpires that the permissions on the files and directories (0644 for the most part) was not sufficient. I had to ensure that all files in question had 0644 and directories at 0755 permissions set to get this to work. A simple

Re: [EXTERNAL] - [Puppet Users] Puppet agent is not applying changes

2019-09-27 Thread Dan Crisp
at contributes to resolving the issue. Thanks, Dan. On Friday, September 27, 2019 at 2:21:32 PM UTC+1, jcbollinger wrote: > > > > On Friday, September 27, 2019 at 7:20:51 AM UTC-5, Dan Crisp wrote: >> >> Please see below. Apologies, there is a lot of detail here: >&

Re: [Puppet Users] Puppet agent is not applying changes

2019-09-27 Thread Dan Crisp
No. I only have /etc/puppetlabs/code/environments/production/manifests/site.pp On Friday, September 27, 2019 at 1:03:20 PM UTC+1, Dirk Heinrichs wrote: > > Am Freitag, den 27.09.2019, 11:50 + schrieb Dirk Heinrichs: > > Am Freitag, den 27.09.2019, 03:43 -0700 schri

Re: [EXTERNAL] - [Puppet Users] Puppet agent is not applying changes

2019-09-27 Thread Dan Crisp
opt/puppetlabs/puppet/cache/state/graphs]{:path=>"/opt/puppetlabs/puppet/cache/state/graphs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'pluginfactdest': 'File[/opt/puppetlabs/puppet/cache/facts.d]{:p

Re: [EXTERNAL] - [Puppet Users] Puppet agent is not applying changes

2019-09-27 Thread Dan Crisp
g, den 26.09.2019, 06:20 -0700 schrieb Dan Crisp: > > /etc/puppetlabs/code/environments/production: > total 20 > -rw-r--r--. 1 root root 808 Sep 25 20:47 environment.conf > > > What does this one contain? I don't have these in my environments. > > Bye... > > Dirk > &

Re: [Puppet Users] Puppet agent is not applying changes

2019-09-27 Thread Dan Crisp
On Friday, September 27, 2019 at 10:22:56 AM UTC+1, Dirk Heinrichs wrote: > > Am Donnerstag, den 26.09.2019, 06:20 -0700 schrieb Dan Crisp: > > node 'default' { > > > Should be "node default {" > > HTH... > > Dirk > > -- > > *Dirk

Re: [Puppet Users] Puppet agent is not applying changes

2019-09-27 Thread Dan Crisp
en puppet will only apply the class if the > node's fqdn is "default". > > Josh > > On Thu, Sep 26, 2019 at 9:55 AM Dan Crisp > > wrote: > >> Hello all, >> >> Been at this problem I have for nearly a week now and it's driving >> crazy!!

[Puppet Users] Puppet agent is not applying changes

2019-09-26 Thread Dan Crisp
Hello all, Been at this problem I have for nearly a week now and it's driving crazy!!! I hope it's simply a case of someone with some fresh eyes taking a look and showing me the error of my ways. Before I continue with the Puppet deployment, for testing purposes, I just want to create a

[Puppet Users] Puppet client is not applying changes

2019-09-26 Thread Dan Crisp
Hello all, Been at this problem I have for nearly a week now and it's driving crazy!!! I hope it's simply a case of someone with some fresh eyes taking a look and showing me the error of my ways. Before I continue with the Puppet deployment, for testing purposes, I just want to create a

[Puppet Users] Puppet client is not applying changes

2019-09-26 Thread Dan Crisp
Hello all, Been at this problem I have for nearly a week now and it's driving crazy!!! I hope it's simply a case of someone with some fresh eyes taking a look and showing me the error of my ways. Before I continue with the Puppet deployment, for testing purposes, I just want to create a