how to use newline character('\n') in puppet template
#site.pp $values = [val1, val2, otherval] file { "demo.txt": ensure => present, path => "C:\\Software\demo.txt", content => template('temp/temp.rb'), } } #temp.erb <% @values.each do |val|...
View Articlewhat reference should I read?
please mention some reference for programming in puppet , because the documents are not clear enough. and I have so much question when I read them. thank you
View ArticleHow can I access the params.pp variables in Serverspec tests?
We want to include suites of Serverspec tests into our modules, but I can't figure out how to use the variables set in params.pp in the spec tests. I can see how to get facter data, and think I can...
View ArticleApache can't start after installing passenger
I followed the installation steps on puppet documentation page but apache (httpd) can't start I'm using puppet 3.8.7 for some reason apache can't parse puppet.conf file root@ip-172-31-44-179 conf.d]#...
View ArticleHow retrieve a fact and store this value in a variable with Puppet?
I have a script where I retrieve the IP from a machine and then perform some logical operations to decide what value give to a variable. Then I use this value to make some decisions about the...
View ArticleHiera automatic parameter lookup
Followed example here: https://docs.puppet.com/hiera/3.2/puppet.html#automatic-parameter-lookup my "fqdn.yaml" --- users_allowed::adm_group: - GROUP1 - My-Custom-Group my "init.pp" class...
View ArticleUsing openstack-keystone cannot get example to work
I am trying to deploy a Kilo OpenStack cloud using puppet so I have installed the latest version of openstack-keystone on my PE3.7 puppet master like so: # puppet module install openstack-keystone...
View ArticlePuppet master trying to resolve unrelated IP address
On my Puppet master I see entries like this on syslog: puppet-server-1 puppet-master[1307]: Could not resolve x.y.z.w: no name for x.y.z.w This gets logged about once per minute. `x.y.z.w` is ip...
View Articlepuppetlabs-rabbitmq: multiple routing keys for same binding
How can I create 2 bindings between the same exchange / queue, but with multiple routing keys? This is legal and works when setup manually. I am using create_resources after pulling the bindings from...
View ArticlePuppet with DSC, adding registry Key
Hi All. We are attempting to add registry keys to our windows estate using puppet. We have tow that need adding one works the other doesn't the one that fails is dsc_registry {'Schannel_cyphers_56':...
View Articlepuppet run as non root user service account
confdir location for the puppet is for root user Unix/Linux: /etc/puppetlabs/puppet – Non-root user: ~/.puppetlabs/etc/puppet I have service account which is single login across multiple machines, in...
View ArticleDisable --detailed-exitcodes
When i run $puppet agetnt -t the exit code is 2 0: The run succeeded with no changes or failures; the system was already in the desired state. 1: The run failed, or wasn't attempted due to another run...
View Articlepass parameters to powershell scripts
Hello, I am trying to Pass multiple parameters to Powershell script. I am seeing Powershell is executed successfully but looks like it is not taking passed parameters. Here is my code : $evnName =...
View ArticleWriting kv to consul with puppet
Here is my requirement: I need to write a value to consul through puppet - say $::hostname as the value to a key called vm_name in consul. How do i write to consul with puppet, do we have a puppet...
View ArticleNotice:...
Hi, I noticed that a puppet agent installs a cron job that uses the script /opt/puppetlabs/puppet/bin/refresh-mcollective-metadata. I want this to be permission 0755 but whenever I do that I see the...
View ArticlevRealize Orchestrator + Puppet Security
Hello, We use vRO + Puppet to build and configure our servers. However since puppet is owned by our Unix team and vRO is owned by the VMware team, the Unix team does not want to keep a copy of the root...
View ArticlevRO + Puppet + API Security
Hello we have puppet managed by our Unix team and vRO managed by our VMware team. We would like to have puppet install the agent on new server builds and then sign the certificates on both after the...
View ArticleIs it possible execute a command on the master node, everytime an agent node...
I have a Cluster in which I require that every "x" seconds after a node is powered up, the Master executes a specific command. Until now I have this: exec { 'My command': path => ['/usr/bin',...
View ArticleHow to check if the war file deployed by puppetlabs-tomcat module is new
I need to send an email only when the tomcat deployment of war file is complete and the war file is newer than what was before. How do i do that? I have the mail command working but the mail part sends...
View Articleeither a directory or a link
Short question -- can I define a puppet rule that says "If this directory exists, then leave it alone. If this directory does not exist, create a symlink" ? Long unimportant backstory: Most of my...
View Article