Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Browsing all 6104 articles
Browse latest View live
↧

deploy Windows Server on AWS Configure using puppetlabs AWS

Hi All, So I am good with deploying EC2 instances using puppetlabs-aws module. Now I am trying to make it do some initial configuration -- rename computer and add to domain -- using the user-data...

View Article


Where to download open source?

We are investigating Puppet at work and I am trying to download for my home lab. I can find a download for the enterprise addition but I want to try the open source in my home lab. The only way I see...

View Article


how to restrict a machine to be part of only one group

Usually, Puppet allows us to have a machine in more than one Puppet node group. Is it a way to restrict it to allow Puppet to assign a machine only in one node group?

View Article

Require on File not working

So i want to add custom facts to facter Below code sample doesnt print on first run, but does print on the second run correctly , despite the "require" clause What am i missing? class glb2{ file {...

View Article

prevent interpolation with file_line and hiera

I am using file_line to add a line to my sudoers file. The line I need to add includes a "%{user}" which I need to be quoted literally. If I use file_line from my site.pp it works great...the line is...

View Article


FILE_LINE does not work when i want to add multiple line in a file

file_line{'sysctl': path => '/etc/mcp/templates/sysctl.conf_try', line => "\n# Settings done for Hardening\n# Disable kernel core dump\nkern.coredump=0", match =>...

View Article

duplicate cron

How do I change the existing cron job timings installed as part of the puppet enterprise software installation? i.e pe-mcollective-metadata. When I tried using create_resource and passing a defined...

View Article

Error while evaluating a Function Call, $concat_basedir ...

I use concat 1.2.4 module to merge a few file fragments into 1 file. I've tested this code locally and it works. When I submit it to a different machine, that machine runs 1 test which fails with this...

View Article


puppet testing with serverspec

Hi, I am currently working on serverspec with puppet. But I have few challenges writing serverspec according to puppet manifests, example the attributes require,source not supporting by serverspec...

View Article


rspec-puppet - $facts hash is not set

I'm running some rspec-puppet tests against a Puppet class that uses the `$facts` hash to retrieve a fact and set it to a local variable. The line in question looks like: $noop_config =...

View Article

How to shutdown a puppet master safely ?

Hi, I'm using Puppet OpenSource version 3.7+. There seems not to be a safe command to shutdown/restart Puppet Master process, as currently I can use "kill" to shut it down. This worries me and my team...

View Article

execute command in ERB

Is there a way to execute an external command ("shell command") from a puppet ERB? I have tried the following with no success: text=<%= %x(/path/command) %> text=<%= `/path/command` %>...

View Article

How to check cron in puppet Agent

How to check cron that is running in puppet agent? Also how to start and stop cron based on our priority and requirement.

View Article


Transform Puppet F5 Big IP Resource Manifest to Hieradata

Hi all, Would like to ask if any build-in method(s) transforming from F5 Big IP Resource Manifest to hieradata (YAML)? We starts including F5 Big IP to be under Puppet management and governance. We can...

View Article

How to bootstrap aws ec2 instances setting hostname?

Trying to solve the chicken-egg problem using puppet-aws module. Simply, how can deploy agents of different node types, having them provisioned by the puppet master correctly? I would like to set a...

View Article


YAML Bug in 2015.3 ?

Hi, since i write my own yaml files using standard implementations i stumbled upon a severe problem. Boolean Boolean (note: includes on and off, yes and no in addition to true and false) Good, but why...

View Article

How can I run Puppet Master in debug mode in PE 4.2.3

I would like to change the log mode into DEBUG for Puppet Master alone. Any help is much appreciated. Thanks & Regards, ArunRaj. R

View Article


Need help with file_line match regex statement

I have the following line in a file... # /var/log/tomcat6/catalina.out ... which I wish to change to ... /var/log/tomcat6/catalina.out ... and my match statement isn't working. Here is my file_line...

View Article

serverspec file_line and hiera value array

Hi, I have below two manifests in puppet, I have few challenges when I use serverspec tests. 1) file_line { 'functions': ensure => present, path => '/etc/functions', line => 'umask 009',...

View Article

profile: uninclude a class?

Greetings. I'm running a very old version of puppet 2.7.26 (I am not allowed to update). I have a profile that includes a bunch of modules. class profiles::generic { include a include b include c class...

View Article
Browsing all 6104 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>