search for: jcbollinger

Displaying 20 results from an estimated 201 matches for "jcbollinger".

2013 Feb 08
9
RFC: Default File Permissions
...not greater than what Puppet has granted. It also causes problems on *nix agents, when the files'' source is remote and uid/gids are not synchronized. A second, but related issue, is that Puppet applies the same copy-permissions logic to files that already exist. This goes against what jcbollinger said, "unmanaged resources and resource properties should not be modified by Puppet"[3], and what Nigel said, "A core principle of Puppet is that you can choose to only manage the attributes of a resource that you care about, and can leave the rest unmanaged."[4] However, thi...
2012 Jul 26
4
Weird "cannot reassign variable name on node" error when I try to use standalone
Hi -- I''m trying call apply in standalone mode on a configuration I''ve written. The way I call the command is like this: $ puppet apply manifests/site.pp -v --modulepath modules The directory structure is simple: . manifests/site.pp manifests/nodes.pp modules/ ... site.pp just includes nodes.pp, and nodes.pp looks like this: https://gist.github.com/3181007 When I
2011 Jan 11
3
A section with name main already exists (Bug 5231)
Hi all, I''m facing the bug 5231 when running puppet: host has some repos with many section main defined: # grep main * atrpms.repo:[main] cern-extra.repo:[main] cern-extra-srpms.repo:[main] cern-only.repo:[main] cern-only-srpms.repo:[main] cern.repo:[main] cern-srpms.repo:[main] cern-test.repo:[main] cern-test-srpms.repo:[main] cern-update.repo:[main] cern-update-srpms.repo:[main]
2012 Feb 02
5
Schedule for own resources?
Hello, I am testing some schedule configurations and was wondering if I can use the schedule type in my own defines? As far as I can claim from my own tests, this is not possible? For example, the schedule "morning" does not work with my self-written define "my_crontab": ######################################### class crontab { schedule {"morning":
2011 Nov 16
11
What is the offical variable scope best practice?
I read the guide at http://docs.puppetlabs.com/guides/scope_and_puppet.htmland others'' mail, i am a little confused now, below is my understanding: 1. top scope only refers to site.pp, not include node definitions and facts. 2. in puppet class, using variables not local, must specify the namespace, like $class::variable, if it''s a top scope variable or a fact variable or a
2013 May 09
7
Are multiple environments broken in puppet?
I started getting the following errors from my puppet master: > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter provider at /some/module/manifests/foo.pp The module would vary, but the error was always the same. I started googling, searching lists, etc. And turned up a whole bucket load of issues that all seem related and are all unresolved:
2012 Aug 29
4
troubleshooting resource collection
Hi, I''m new to Puppet. And I''m trying out an ssh module: https://github.com/saz/puppet-ssh. It collects ssh keys like this: class ssh::knownhosts { Sshkey <<| |>> { ensure => present, } notify{"knownhosts class: $fqdn $hostname $ipaddress ":} } I can see it echoes the host key of the host the puppet agent runs on. But the
2011 Jun 06
4
How do you handle deleted nodes with exported resources in this situation?
I have an issue where for a file type of an exported resource I must define as such: force => false, replace => false, Meaning the file is created, but do not replace after it''s added. I do this because of the app modifies the config file after (I know bad idea on their part). How can I ensure this file is removed when I remove the node from
2013 Jan 22
6
Security considerations for basing decisions on facts
Hello, Let''s consider the scenario when a client node in a puppet environment gets compromised. In case some of the puppet modules make decisions based on agent facts, these modules are potentially exposed to abuse from the malicious puppet agent. For example, if a class has: if $some_fact == ''some value'' { # deploy some configuration } then the compromised node
2012 Sep 20
8
puppet and std
I''m running puppet on a Centos 5.8 I''m trying to launch puppet as a daemon and it fail silently. --debug provides no help So I tried to strace it, I''m getting this : 1845 close(0) = 0 1845 open("/dev/null", O_RDONLY) = 0 1845 close(1) = 0 1845 open("/dev/null", O_WRONLY|O_CREAT|O_APPEND,
2011 Dec 12
1
Re: Re: Variables not inheriting
Now thats wierd. I did. Different title, different body...how did it flag my quetion to an old thread? jcbollinger <John.Bollinger@stJude.org> wrote: >Please do not hijack existing threads. Create a new thread for a new >question. > > >John > >-- >You received this message because you are subscribed to the Google Groups "Puppet Users" group. >To post to this group,...
2013 May 15
4
hiera - anything better than empty string?
Hi, starting to use hiera in earnest now (still on puppet 2.6 but planning an upgrade to 3.x this summer). the heirarchy looks for fqdn, then network_eth0, then ''default''. Some of our subnets don''t want to set http_proxy environment variables, the rest do. so default.json has a ''http_proxy_url'' key in it, but I want to exclude it for 10.9.8.7. Is
2011 Jun 30
7
Puppet agent creates certificates for localhost.localdomain and does not pick up the changed hostname
Hi Everyone, I am using Puppet 2.6.5 to configure fresh VMs. These VMs have their hostname set to localhost.localdomain initially at boot-time. There is this script file that runs in rc.local and this is what I do inside it 1. I change the hostname from localhost to xxx.xxxxxx using the hostname command. 2. start the puppet agent as /usr/sbin/puppetd --certname=xxx.xxxxxx
2013 Jan 25
4
Dynamic yum.conf 'exclude' line
Hi All, I have finally switched to using hiera (worthy goal!) and I am looking for a flexible way to manage the ''exclude'' line in /etc/yum.conf. I want to be able to specify from different classes RPMs to be excluded in /etc/yum.conf, then build the exclude line from all those classes that set an exclude. In my hiera hierarchy, I use %{calling_module}, but I actually modify
2012 Feb 14
4
How to escape exec command parameters?
If I have a "simple" variable value, this works fine: capmon@peter:~> puppet -e ''$v="xyz" exec { f: command => "/bin/echo v is $v", logoutput => true }'' notice: /Stage[main]//Exec[f]/returns: v is xyz notice: /Stage[main]//Exec[f]/returns: executed successfully But how do I escape "bad" values of $v? Painful examples like the
2012 May 15
4
enabling a yum repository
I have a class that pulls in some yum repositories. One of the yum repositories is disabled, but on one host I''d like to enable it. i.e. I''d like to do something like this: class { ''myyumrepos'': } yumrepo { ''EPEL'': enabled => 1, } What''s the best way to do this? I am using an ENC. -- Biltong biltong@fastmail.fm --
2011 May 20
3
PC EU feedback: ability to remove all unmanaged resources
http://projects.puppetlabs.com/issues/7600 I call this the "agent orange" option :) This works, purging all unmanaged hosts entries: resources { ''host'': purge => true, noop => true, } We should have a similar property for all (most?) types. Please comment on the ticket or reply here, whichever you prefer. Thanks! r P.S. This is in
2011 May 13
18
Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Hi, I have been trying to improve the coding of some of my puppet recipes and had some trouble so wrote this: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/ Comments on the web seem to indicate that extlookup() solves "all problems" but I don''t really see that and hence have proposed a possible way to keep the data closer together and make the extlookup()
2012 Feb 14
7
inherits from parametrized class
Hello In is possible inherits from parametrized class?? For example i have base php52 class like this: class linux::php52($pools, $extensions='''') inherits linux { ...... } and whants to inherit it like this: class linux::php52::cluster inherits linux::php52 for cluster configuration (cluster stuff -f for example prevent php from automatic startup), and class
2012 Feb 13
5
Removing the ability to serve symlinks as symlinks from the master...
G''day. We recently found some issues with the `links => follow` setting in recursive file copying; the designed behaviour is that it should allow you to determine if the master serves a symlink in a module as a symlink, or as the content of the file that the symlink points to. The full details are here: https://projects.puppetlabs.com/issues/12418 The short version is that toggling