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

How to set a default value for a defined type where the variable is an array...

I have about 50 apache::vhost defines that need some 'refactoring'. I'm trying to set the resource to some default values but I'm having trouble because 'directories' is an array of hashes. For...

View Article


How do you use the Cloudera Puppet Module?

I have two RedHat 6.7 servers. One is a Puppet Master, and one is a Puppet Agent. On the Puppet Master I installed two dependencies of the Cloudera module and the Cloudera Module itself. I used this...

View Article


How can I deploy stringify_facts with arrays in my modules?

I have some modules that want to use facts like `$facts['os']['family']`, but my clients are Puppet 3 and don't have `stringify_facts` turned off. I created an inifile setting to do the job, but it...

View Article

Managing partitions

I am creating a module to create and manage filesystems. I have everything working from physical volumes to mounting the filesystem. I am utilizing a puppetforge module called [LVM][1]. This module...

View Article

can I interpolate puppet variables on rspec?

Hello all, I am trying to test the file content from a template using rspec: require 'spec_helper' describe 'my_class' do context 'validate template' do let :params do { :my_puppet_variable =>...

View Article


Deactivating a node

**Running Puppet Server open source with Puppet DB 4.8** I recently changed the name of one of my servers and now have two instances of the same machine on puppetdb. I am trying to remove the NODE by...

View Article

up2date puppetlabs concat uses deprecated puppetlabs stdlib functions !

Hi, **i really got angry to use the up2date puppetlabs certified concat module with an up2date puppetlabs certified stdlib module !** Do you test your modules ? We use PE 2016.4.2 Concat Module...

View Article

how I can configure the mysql module to allow me to run multiple instances of...

Hi I am required to stand up two instances of MySQL server on the same node (different ports, sockets, data directory etc). As the path to my.cnf is hard-coded in params.pp, and I need to be able to...

View Article


Resource type doesn't exist

Hello dear puppeteers, I am getting an error message from a puppetserver which I'm trying to understand; Error while evaluating a Virtual Query, Resource type nfs_mount doesn't exist Here's the code...

View Article


Hiera doesn't pick a key

Hi my dear puppeteers, I am currently migrating code which used to work in a Puppet 3.8 / Hiera 1.3 setup. After scratching my head a little regarding some Hiera lookup errors, I realized that those...

View Article

Mount Point Permissions

I am having a very frustrating problem with mounting. Mounting requires a directory to exist. So I create a directory file { "/app": ensure => "directory", mode => "755", } Now I mount the...

View Article

how to stop websphere service from puppet ,i want to verify the status before...

I an trying to stop a websphere jvm using exec resource ,but before that i want to verify the status using serversetatus.sh and run only if am getting grep value as stopped. i am able to achive first...

View Article

How can I use a profile to include a class defined in hiera without getting...

I want to use a profile to call a class that is already defined in a higher level in hiera and provide different data to that class. When I call the class in my profile puppet complains that the class...

View Article


unInstall puppet agent

I spinned up an instance in AWS using an AMI of an instance which already had puppet agent installed in it. the new instance has the same certificate name and configuration as the old instance. I am...

View Article

puppet noop -- persistance

Hello, What is the recommended method in putting nodes in noop mode? My goal is to ensure certain groups of nodes are in noop mode so changes don't mistakenly get applied but I want to know if changes...

View Article


Is i valid to use $:: in manifest to get config value of agent node? (eg....

`$::ssldir` seem to contain the Puppet Agent ssldir value from puppet.conf but I cant find anywhere in the documentation that describes this behavior. Quite the opposite in fact since this line makes...

View Article

Is it possible to use Hiera Knockout Rules for Hashes?

common.yaml: lookup_options: firewall::rules: { merge: {strategy: deep, merge_hash_arrays: true, knockout_prefix: "--", sort_merge_arrays: true}} firewall::rules http_allow: { action: 'ACCEPT', proto:...

View Article


Document modules with YARD or as README.MD

AFAIK, forge.puppetlabs.com only renders the `readme.md` along the module description. However, I've noticed there's something in the works: There was a `puppetlabs/strings` module, which now is a...

View Article

Error: Could not retrieve catalog from remote server: Error 500 on SERVER:...

Hi, i'm new to puppet and just testing; I have a simple module I created that creates a motd file. When I use puppet apply -e 'include ::motd' the class is applied. But when the PE server tries to run...

View Article

monitor attributes of defined type

A program running on the node has an internal counter. define mytype ( String foo = undef, Integer maxcount = undef, ) { file { $title: […] content => "${foo}\n${maxcount}\n", } exec { $title:...

View Article
Browsing all 6104 articles
Browse latest View live


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