How to query puppet db under /facts and receive only active instances
Hello, When querying puppet db with a query like this: "curl -X GET http://puppetserver:8080/pdb/query/v4/facts/ec2_project --data-urlencode 'query=[\"extract\", \"value\",[\"and\",[\"=\",\"certname\",...
View ArticleHow can i query the puppetmaster REST api to find a list of active nodes ?
Without using puppetdb, how can i query the puppetmaster REST api to find a list of active nodes ? ie. I'd like to run a similar command to this except only show results for active nodes curl -k -H...
View Article$key from hash as file $value as content in file
Hi all, Im not quite sure if it`s possible to do but it will be good if someone can give me some way to how solve this. so i have output like: $output = {"key1"=>"first value", "key2"=>"second...
View ArticleHow to install all upgrades (not just security) with puppet's...
I 'm using puppet to configure a classroom of desktops running Ubuntu 16.04, and I'm using the puppet [unattended-upgrades](https://forge.puppet.com/puppet/unattended_upgrades) module. However, I can't...
View ArticleConfused how to implement sub role / sub class with hiera_include
I set up roles and profiles with hiera. Nodes are classifing is done in hiera with hiera_include and a custom role fact which assigns the role If i have a host with facter set to role=mysql and subrole...
View ArticleEcecute a Bash shell command if either of the conditions met
 Here since i used onlyif, the commands will be executed only when both the test conditions satisfies. But what if i want to execute both the commands...
View Articlepuppet only exec when file does NOT exist
I only want to exec following command when file (/usr/local/bin/papply) does not exist. not sure what to put there. exec { 'git add url': command =>'git remote add origin...
View ArticleHow to monitor a application services which runs on different ports and on...
 If any of the above APP services goes down, puppet should automatically start it with the command "/path/to/start/a/service/start.sh", if it unable...
View Articleconnect puppet dashboard to puppet server
Since a few days I am no longer able to receive reports from puppetserver-2.1.3-0.1SNA to puppet-dashboard-2.0.0-beta1. I used to trust the following puppet.conf on puppetserver [main]...
View Article"puppet resource package" provider ?
Hi All, When I execute "puppet resource package " , puppet assumes yum as the default provider. How do you override it with other provider , say pip or gem? at the cli Regards, Gowtham
View ArticlePuppet agent tarball download
Hi, could you tell me where I can download the tarballs for the PE - 2016.1.1 ? The links on your website all appear to show the download for the rpms only.
View ArticleNew hiera with old puppet
Hello, I'm trying to get hiera *3.x* to work with Puppet *3.7.2* (which comes with hiera *1.3.4*). The main reason being what I want to get deep_merge knockout behavior working via hiera. However,...
View ArticleGraphite issues on the Learning VM need help please
I have started going through the Learning VM and run into an issue on the "Power of Puppet" module. I have followed the guide to the letter and increased VM ram to 4GB at the start. I get through the...
View Articleis it possible to static link facter?
Is it possible to compile and static link facter on RHEL 6.2? I'd like to static link it to avoid having to separately ship or install the boatloads of shared libraries facter uses. Has anyone tried to...
View ArticlePuppet agent module old version, not using same version as master
Hey people, I am a puppet beginner. We have a puppet module written by somebody else some years ago and I am maintaining it. It also has a custom type defined. Basically the problem is : 1. Custom type...
View Articlescheduled_task created but not showing up in task scheduler
Hi, I am using scheduled_task to create some tasks to be run as Domain\user, I am having the following questions: - scheduled_task created but does not show up in Task Scheduler Library, am I missing...
View ArticleUninstalling programs in windows that are less than X version
Hi puppeters, I am working on some puppet manifests to manage windows machines, and so , for a while I was installing 7zip -for example- using this method: > package { '7-Zip 9.20 (x64 edition)': -...
View ArticleHow to Install same package with both pip and pip3 provider
Hi everyone, I have both Python 2x & 3x scripts running on my server. I have several packages where I need to install both the versions of a package. How can I install the same package name with...
View ArticlePuppet exec complains about non-absolute paths
Info: Retrieving pluginfacts Info: Retrieving plugin Info: Caching catalog for icarus.cos.lan Error: Failed to apply catalog: Parameter unless failed on Exec[systemd_localectl_set_locale]: [… the...
View ArticleHow do I enter a hash in Puppet Enterprise Console?
Hi, I've used puppet open source but we are now looking into the use of puppet enterprise. I'm battling with the console at the moment to enter some specific parameters. In particular for mysql...
View Article