[Puppet Users] Exit status of "puppet agent --test"

2023-04-03 Thread Chris Ritson
Does a manual puppet agent run (puppet agent --test) have a defined exit status 
to indicate if errors were detected? This is not described by the built-in 
help. In two test cases, I have only seen a return code of 2. Both runs made 
some changes. One had warnings, the other didn't.

--
Chris Ritson (School of Computing and NUIT Cybersecurity team)
Newcastle University, NE1 7RU
Tel: +44(0)1912080073

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/LO2P302MB004479A539180A1C626DE416C6929%40LO2P302MB0044.GBRP302.PROD.OUTLOOK.COM.


RE: [Puppet Users] Mount NFS share defined in hiera

2023-02-24 Thread Chris Ritson
The code I have been given for an NFS mount is like this. Note the module in 
use on the first line….

types::files:
  # derdanne/nfs takes care of mountpoint creation.
  '’:
ensure: directory
mode: '0775'

debconfs:
  'apparmor/homedirs':
ensure: present
type: string
value: 
seen: 'true'
notify: Exec[dr_apparmor]

nfs::client_enabled:  true
nfs::manage_packages: true
nfs::nfs_v4_client:   false

nfs_client_mounts:
  :
server: 
share:  

--
Chris Ritson (School of Computing)
Newcastle University, NE1 7RU
Tel: +44(0)1912080073

From: puppet-users@googlegroups.com 
Sent: 24 February 2023 11:13
To: Digest recipients 
Subject: [Puppet Users] Digest for puppet-users@googlegroups.com - 1 update in 
1 topic


⚠ External sender. Take care when opening links or attachments. Do not provide 
your login details.
puppet-users@googlegroups.com<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fforum%2F%3Futm_source%3Ddigest%26utm_medium%3Demail%23!forum%2Fpuppet-users%2Ftopics=05%7C01%7Cchris.ritson%40newcastle.ac.uk%7C792abff5d80b4ab0e2d008db165806cb%7C9c5012c9b61644c2a91766814fbe3e87%7C1%7C0%7C638128341016272032%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=9R0rbbYlDg0EbAkCr%2BJ7u8KNHzaNjhBYm%2FEt1TxjqSU%3D=0>
Google 
Groups<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fforum%2F%3Futm_source%3Ddigest%26utm_medium%3Demail%2F%23!overview=05%7C01%7Cchris.ritson%40newcastle.ac.uk%7C792abff5d80b4ab0e2d008db165806cb%7C9c5012c9b61644c2a91766814fbe3e87%7C1%7C0%7C638128341016428305%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=jQo6gLwy104tZ4ZQ5f3RbnLu%2FBKlh4gRKPLBn2WXPoU%3D=0>
[Image removed by 
sender.]<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fforum%2F%3Futm_source%3Ddigest%26utm_medium%3Demail%2F%23!overview=05%7C01%7Cchris.ritson%40newcastle.ac.uk%7C792abff5d80b4ab0e2d008db165806cb%7C9c5012c9b61644c2a91766814fbe3e87%7C1%7C0%7C638128341016428305%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=jQo6gLwy104tZ4ZQ5f3RbnLu%2FBKlh4gRKPLBn2WXPoU%3D=0>
Topic digest
View all 
topics<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fforum%2F%3Futm_source%3Ddigest%26utm_medium%3Demail%23!forum%2Fpuppet-users%2Ftopics=05%7C01%7Cchris.ritson%40newcastle.ac.uk%7C792abff5d80b4ab0e2d008db165806cb%7C9c5012c9b61644c2a91766814fbe3e87%7C1%7C0%7C638128341016428305%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=KdyPZjMdxpttqHKI6o9qT74ZprPdYse%2Bdkn%2FX93RDbw%3D=0>
·  Mount NFS share defined in hiera - 1 Update
Mount NFS share defined in hiera 
<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fpuppet-users%2Ft%2F6110781cf613c832%3Futm_source%3Ddigest%26utm_medium%3Demail=05%7C01%7Cchris.ritson%40newcastle.ac.uk%7C792abff5d80b4ab0e2d008db165806cb%7C9c5012c9b61644c2a91766814fbe3e87%7C1%7C0%7C638128341016428305%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=MdzQD9u1eWR5DCyufdo%2BcUwJ17xQomJSxzqjc9OLqgM%3D=0>
Laci D : Feb 23 11:45AM -0800

I'm looking for manifest, hiera example which can mount an NFS defined in
a hiera_hash.

Someone must have one, thank you!
Back to top
You received this digest because you're subscribed to updates for this group. 
You can change your settings on the group membership 
page<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fforum%2F%3Futm_source%3Ddigest%26utm_medium%3Demail%23!forum%2Fpuppet-users%2Fjoin=05%7C01%7Cchris.ritson%40newcastle.ac.uk%7C792abff5d80b4ab0e2d008db165806cb%7C9c5012c9b61644c2a91766814fbe3e87%7C1%7C0%7C638128341016428305%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=IjoeHMyAQwsqwtLRgNol%2Frn3iW5aj16AdEy4Y8OzbXY%3D=0>.
To unsubscribe from this group and stop receiving emails from it send an email 
to 
puppet-users+unsubscr...@googlegroups.com<mailto:puppet-users+unsubscr...@googlegroups.com>.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/LO2P302MB0044E5FB514B13870B81DD0BC6A89%40LO2P302MB0044.GBRP302.PROD.OUTLOOK.COM.


[Puppet Users] Puppet agent memory usage on the master

2014-08-07 Thread Chris Ritson
I've been trying for a while to work out why my puppet agent run on the puppet 
master was consuming so much time and memory. With a single webrick master 
running puppet puppet-3.6.2-1.el6 and serving about 100 clients, I was seeing 
agent runs on  the master of the order of 4000 seconds. I was keeping, but not 
making use of the agent reports, so the puppet master was tidying these away 
after they reached the an age of 36 hours to avoid wasting disk space. Agent 
runs were quite often getting OOM errors and being killed as this was on a 
virtual machine with 2G of memory. Increasing this limit and watching the agent 
run grow it became clear that stored state was part of the problem. Memory 
consumption was sometimes reaching 3G.

In the end, even after abandoning report generation and allowing the remaining 
report files to be tidied out of existence, I was still seeing a large memory 
footprint and long delays when the puppet run appeared to be doing nothing or 
saving its previous state. Looking in the saved state.yaml file, I saw that 
there were still many hundreds of references to report files and directories 
that used to exist. Only when I finally removed this file altogether, taking 
the risk that a few services would be restarted when they shouldn't be, did my 
puppet run get back to a reasonable time and memory footprint.

It seems from this that the puppet agent is reading and preserving a lot of 
historic state information, even when this is no longer of any use. Is this a 
bug/feature? Is this something I could/should have been able to avoid with 
better knowledge of puppet's configuration options?

Chris Ritson
Newcastle University IT,
c/o School of Computing Science,
Floor 8,
Claremont Tower,
Newcastle University,
NE1 7RU, UK.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/D00BBDAB7ECC63469B186F002CC7DBC80AC53EB6%40EXMBCT01.campus.ncl.ac.uk.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Memory sizing (or leak) in master. [Tkt: 115440]

2014-03-14 Thread Chris Ritson
Am I being too optimistic? Running a centos 6.5 virtual machine as puppet 
master, on version 3.4.3, I am frequently running out of memory. The virtual 
machine only has 0.75Gig of allocated memory. It holds 225 certificates, but 
only about 130 of these agent machines are regularly active. Mostly they run 
the puppet agent from cron once an hour at a random time or with a random splay 
from within puppet if the start time is not already randomised.

How much memory would be normal for a setup of this size, and how is it likely 
to scale as we add more client agents?

Chris Ritson (Computing Officer and School Safety Officer)

Room 707, Claremont Tower,EMAIL: chris.rit...@ncl.ac.uk
School of Computing Science,  PHONE: +44 191 20 88 175
Newcastle University, FAX  : +44 191 20 88 232
Newcastle upon Tyne, UK NE1 7RU.  WEB  : http://www.cs.ncl.ac.uk/


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/D00BBDAB7ECC63469B186F002CC7DBC80ABD5483%40EXMBCT01.campus.ncl.ac.uk.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] /tmp and 1777 mode

2011-10-24 Thread Chris Ritson
I'm new to anything more than very basic puppet. I need to create a
(differently named) working directory which like /tmp has 1777 mode
and is also a mounted file system. I need to avoid the underlying
mount point picking up these permissions (it needs to be 755). How can
I arrange this with puppet. As I understand it both my

file ... { ensure directory }

recipies need to refer to the same directory name.

Chris Ritson.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.