How to copy a file form repository to server in puppet script ?
How to copy a file form repository to server in puppet script ?
View Articledelete service name using exec
HI, I am trying to delete a windows service using the following: exec { 'service': command => 'sc delete servicename'; } it gives me error 'sc delete servicename' is not qualified and no path was...
View Articlehow do i use archive module from forge within my class to unzip file
I have been trying for a while but am not able to figure out. how to use [archive module](https://forge.puppet.com/puppet/archive) within my class to extract my zip file.
View Articlepuppetlabs/apache on Solaris 11
Hi all. New to Puppet. Has anyone had any experience of using this puppetlabs/apache module (https://forge.puppet.com/puppetlabs/apache) with Solaris? It's not listed as a compatible OS, however no...
View ArticleReloading puppet master with kill -HUP causes agent connection problems
We're currently trying to figure out what the best way is to restart the puppet master when some configuration files change. Currently we're sending a "kill -HUP" as described in the documentation:...
View ArticleHiera with masterless Puppet - how to extract data from available facts?
I'd need to infer some information from available facts, e.g. given a hostname like `dev-london1-server0`, available as fact to hiera, I would like to extract the environment (`dev`), the datacenter...
View ArticleWarning when I run puppet agent -t --server server1
Hi, When I run puppet agent -t --server server1, I'm getting below warning: Warning: Unable to fetch my node definition, but the agent run will continue: Warning: undefined method `include?' for...
View ArticleWhy is selinux fact different for puppet then for facter?
I want to set a selinux boolean, but want to make it conditional on selinux being enabled, to avoid errors on hosts were it isn't. There is a fact that is true of false depending on the selinux state:...
View Articlemanage file permission of multiple files
I'm trying to make sure users' ssh keys are never accessible to others so I thought this would work: file { "/home/*/.ssh/*": path => "/home/*/.ssh/*", mode => "600", } Apparently, no. Without...
View ArticleCan't give PE-master custom name during initial installation
So with PE 2016.2 I can't give my puppet master custom name during installation. setting it in AWS, CentOS 7 node so it's better to have something beautiful, human readable in certaname then ugly aws'...
View Articlefactor resource for F5: undefined method `[]' for nil:NilClass
Hi all, I am querying F5 Big IP node/pool/irule/virtualserver/monitor/etc with below command: e.g. "FACTER_url=https://username:Password@big-ip-hostname/ puppet resource --to_yaml f5_node" for node...
View Articlemcollective extensive documentation
Hello, simple question ;-) It seems that mcollective and its plugins are not well documented so i'm searching for the "**REAL**" docmentation of mco and its features. Apart from [link...
View ArticleFailed to parse inline template: undefined local variable or method
Hi, I have below manifests for disk iteration class my_module::filesystem { include 'my_module::params' my_module::recursion { 'start': fssize => '0', disk => $my_module::params::count, } }...
View ArticlePuppet Agent - gsettings command @ Ubuntu
Hi, I've downloaded the following module: https://github.com/camptocamp/puppet-gnome I am trying to change few gsettings setting at my OS. When I run from the console the following command: gsettings...
View Articlerefreshonly on exec resource not working on file change
I have two config files and based on that I want to refresh a script(stop and start) whenever there is a change in either of the files. Also, the script should not get refreshed if there is no change...
View ArticleWhen trying to check in a node httpd error_log Error details saved to:...
Brand new install versions below. ****ruby 2.0.0p598 (2014-11-13) [x86_64-linux] puppet 4.5.2 Phusion Passenger 5.0.29 CentOS Linux release 7.2.1511 (Core)**** Followed the latest documentation here....
View ArticleIs there a supported method for managing POSIX ACLs on file resources on Linux?
We have had some challenges with individuals/processes moving files from one directory to another, modifying the ACLs of an existing directory in the process. Even if we switch to copying files...
View Articlegetting a 502 bad gateway error when running the learning VM
I am trying to run the learning VM (at the start of my journey to becoming a puppeteer!) and can not connect to the PE Console (power_of_puppet quest, final task). I don't yet know enough about what...
View Articlelearning VM image - 502 bad gateway error when launching PE Console
I'm just starting out with puppet, so tried the puppet learning VM image. I can't get the PE Console to open (task 4, power_of_puppet quest), instead I'm getting a 502 bad gateway, nginx/1.8.1...
View ArticleCleardown puppetdb and postgresql
Hi, My disk is filled:- /var/lib/pgsql/data/base # du -sh * 5.4M 1 5.4M 11563 5.4M 11564 8.7G 18401 136K pgsql_tmp I'd just like to start a fresh with this. What is the best way to do this? Andy
View Article