creating 'location' fact
I'm relatively new to puppet and have a puppet server up and some agents deployed on some test nodes. We have servers in two different locations (at a colo facility and on campus). I'd like to be able...
View Articlecan i use puppet on local domain to command puppet on remote domain
Sorry if this a dumb question. My workplace is trying to find something that will allow to manage and run scripts against all of our machines. We have out local system, plus a remote system, with a...
View ArticleWhy is the variable value empty ?
Hi, we read hiera data in a variable. Within the loop we can see the value, when we exit the loop the variable sshvalues is empty. Why and how to fix ? $allkeys = hiera('rootkeys') $allkeys.each |...
View Articlequery remote puppet master version from agent
Is there any mechanism for asking a puppet agent the version of the remote puppet master to which it is configured (its puppet.conf's server key)? I am writing a sanity check to ensure that the agent...
View ArticlePuppet agent on Ubuntu 11.04 - no binary
I fucking hate natty release but I'll be stuck with this OS for a while. I tried apt-get and ppa from launchpad but both don't have binary in them. There is a puppetd demon under /sbin/ and I'm not...
View ArticleIs it possible to eval (compute) class parameters from ENC ?
Let's say I have a parameter with a default value, like class example ( $param = $name ? {/foo/ => "foo", default => "bar"}, ) If I don't override this parameter in my ENC (in my case, in...
View ArticleUsing hiera hash for epp
Given a hash in hiera such as: some::property: foo: 'abcd' bar: '1234' ... and manifest code such as: $val = hiera_hash('some:property') file{ '/path/to/foo.txt': ensure => present, content =>...
View ArticleModify puppet razor node name (not hostname) to a unique node name after...
I am trying to use puppet razor to deploy about 1000 servers, and i realize that puppet razor gives node names like node1,node2,node3 after a node is registered. Is there any way to set user-specific...
View Articlerequest certificate: unexpected attributes
Hello , I'm trying to add some attributes to CSR with this reference : https://docs.puppet.com/puppet/latest/reference/config_file_csr_attributes.html cat >...
View ArticleDetect name and password of regular user on agents
Hello, i'm trying to create a module, that will detect name and password of regular user on agents and redirect it to a variables. Is there are facts/classes that can help me with that? Please help....
View ArticleCould not set 'present' on ensure: Could not locate command pip3. at...
Getting below error 2016-10-25 14:56:16 -0400 Puppet (err): Could not set 'present' on ensure: Could not locate command pip3. at...
View Article(err): Could not set 'present' on ensure: Could not locate command pip3. at...
Getting below error on 2nd run.. first run is going through fine and file is being created successfully 2016-10-25 14:56:16 -0400 Puppet (err): Could not set 'present' on ensure: Could not locate...
View ArticleSecure way to autosign CSRs by PuppetMaster in AWS environment with multiple...
Hi guys ! I am trying to find a very secure way to autosign CSRs . I think of couple of ways to do it but the way that I guess will work for us is : - embed a Pre-Shared password in our AWS AMIs and...
View ArticleProblem with module
Hello, i just created a new directory in the folder of automatically generated module. But after that creation, all files in that directory structure has dissappeared except this new directory....
View ArticleIs there a remote method to list and clean a puppet cert on an opensource...
I would like to clean a puppet client's certificate on the master remotely from a script on the puppet client host.
View ArticleERB template fails after upgrade to Puppet 4
Hi, we're upgrading from Puppet 3 to Puppet 4 and hit some issues with custom facts no longer working. Custom fact name: logservers.rb, it returns a string of IPs: '1.2.3.4, 5,6,7,8'. We then turn the...
View ArticleError 400 on SERVER: Failed to find facts from PuppetDB at:
I'm new to puppet, can anyone help with this resolving the error:  == Warning: Unable to fetch my node definition, but the agent run will continue:...
View ArticleHiera is not a class (TypeError)
I'm trying to setup Beaker acceptance tests in a Docker container. Regardless of distribution all tests end up with this error: lib/hiera/scope.rb:1:in `': Hiera is not a class (TypeError) from...
View ArticlePuppetDB in production: best practise for reliability and integrity
Hi, I'm planning to use PuppetDB and the exported resources to automatically define firewall rules over the infrastructure. Firewall rules are very important ans sensitive. Everything should be...
View Articlegetting IP addresses of all servers with a particular role in a manifest -
Hi There Here's a question. We've a group of servers (5 or so) which provide a service to most of our other servers (hundreds of them!). This small group of servers will always have a the same role....
View Article