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

What would cause puppet to ignore start command in a service definition

I have recently moved my puppet code from an old (2.7) system to a 4.x system. I have some classes that use service definitions which use my own script for controlling the service. When puppet runs it...

View Article


Cannot set a flag inside a .each iteration and use it outside of it

Hi. This might be a dumb question, but i`m going to ask it anyway :) So.. i have a hashes array . I need to iterate trough all the hashes in the array, and if a certain key in any hash matches a...

View Article


Issue with handling sensitive data (passwords) using Puppet and Hiera-Eyaml.

Hi guys, I am testing Hiera-Eyaml for encrypting the passwords for the users in our Cassandra databases. Encrypting the passwords in the eyaml files and passing the Hiera data to the testing nodes...

View Article

Please advice of a good generic puppet module that most environment can use

My company asked me to search for puppet enterprise modules that can be used in any environment, of course other than the obvious one i already have: shh, ntp, snmp, sendmail,dns...etc. Any advice...

View Article

puppetdb install on centos7

Anyone attempt to install puppetdb on CentOS7? Via module or packages? I've tried the pc1 collections for el7 and el6, and even puppetlabs-release-el7 - with no success. It won't install the package. I...

View Article


Puppet agent on the same host as master gets SSL error during first runs

Hello community! I'm facing the issue with configuring puppet master with puppet. Initial data: Puppet v.4.10, PuppetDB v.4.4. Architecture: ELB -> Puppet master; ELB -> PuppetDB (Postgresql RDS...

View Article

creating public_html for every user

I want to ensure that public_html directory is present for every user. The catch is that I dont want to specify the users, for I might not know the names of them. I use the following syntax. Is there...

View Article

rpsec-puppet alternative for puppet unit testing?

Hello guys, I want to unit test my puppet code. I have checked rspec-puppet. It seems fine but it requires local admin rights to run on Windows as it create symlink between spec/fixtures/ to module...

View Article


Providers: Scope of Variable Requiring @resource[]

I am trying to set the following variable in my powershell provider for IIS. $identityType_alias = case @resource[:identitytype] when 0, :LocalSystem then 0 when 1, :LocalService then 1 when 2,...

View Article


How can I execute bash command line in Exec resource type?

Hi, I have this Exec declaration: exec { 'Normalize MP3 filename': environment => ["t=0"], command => 'for i in *mp3; do mv -v $i track_`seq -f "%03g" $t $t`.mp3 ; t=`expr $t + 1`; done', cwd...

View Article

hiera 5 hash

Hi there Is there a more deatiled example available on hashes for hiera 5 class profiles::postgresql { $config_entry = hiera_hash('postgresql::server::config_entry', {})...

View Article

Does one can impersonate any node by changing hostname and keeping the...

Hi all, I don't know if it's a bug or a feature, so I just ask. I have a puppet master run by Passenger. The configuration is populated from Hiera: /etc/puppet/hiera.yaml: --- :backends: - yaml :yaml:...

View Article

puppetlabs/lvm how to resize a logical volume and it's file system

Can anyone help on what is needed to resize an existing volume and file system using the puppetlabs/lmv module? My current manifest looks like this... logical_volume { $volname: ensure => present,...

View Article


provider from puppet 3 doesn't work with puppet 4 - gem

Hi, i try to resurrect an own module which allows me to create kvm instances via libvirt. The module used the type/provider specs. At one point of the execution the code stops with the error >...

View Article

How to deal with name conflicts on pupept labs modules?

There are often name conflicts with different puppet modules on puppetforge. For example there is a module "example42-jboss" which depends on "example42-firewall". And then there is a module...

View Article


how to get a correct detailed exit code when using --noop ?

Hi, when running a "dry run" puppet-apply, I would like to get a detailed exit code corresponding to the changes puppet would have made, if running without --noop. i.e. if some change needs to be made...

View Article

problem with loouk when default should be an array

Hi, puppet --version 4.9.4 I need to configure a resource that will take a value from an array in hiera. I would like to implement a default value with a lookup in case this value is not configured:...

View Article


Is there a way to run an exec only when a file needs to be updated in puppet 3.x

I have a file that I manage that requires the immutable bit set. Is there a way to only trigger the remove of the immutable bit if the file needs to be updated? To clarify a little, this is on a Red...

View Article

Parameter doesn’t get passed into exec.

I have a module that is running an exec on a batch script with a string parameter passed into the cmd from the puppet console. The parameter is not getting passed when the exec runs. This module have...

View Article

install software only when it's not already installed

Hey everyone, I'm installing cisco fireamp via puppet, it works but every half hour it tries to install it again which fills up my cisco amp log with lots of failed installations. How can i tel puppet...

View Article
Browsing all 6104 articles
Browse latest View live


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