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

Confused how to implement subrole

I set up roles and profiles with hiera. Nodes are classified by custom facts and profiles are assiged to roles in hiera. How do work the subrole fact into this design? I am soo stumped here....

View Article


Unable to start puppetserver after "yum update"

Hi Guys, I had a good running puppetserver daemon but after sudo yum update -y It is not running, complaining Specified bootstrap config file does not exist:...

View Article


Foreman : "Fog::Compute::Vsphere::NotFound" message when I try to edit a host

Hello, In the context of my work, we have recently migrated a dozen servers from a vcenter to another : pwcenter101 => pavcenter101 Naturally, I have done the changes in foreman in "Infrastructure"...

View Article

Error add user in group

Hi, i want add user in group. I add in site.pp:> user { 'admin': groups => 'wheel'} When run puppet agent --test i have it: WS0000:~ root# puppet agent --test Info: Using configured environment...

View Article

Can I use puppet as an Intermediate CA?

I have installed an Internal-Root signed certificate on my Puppet Master under `$ssldir/ca/ca_crt.pem` in hopes that my Puppet managed nodes will have a certificate chain that can be resolved by...

View Article


Error with PuppetDB 4.1 (PE 2016.2) HTTP API with RBAC token authentication

I am trying to use RBAC token to access the PuppetDB HTTP API with the following command: curl -X GET https://learning.puppetlabs.vm:8081/pdb/query/v4/nodes -H "X-Authentication: $TOKEN" --cacert...

View Article

Setting up SSH trust

Hi, I was wondering if there is a way to set up SSH trust between two systems (from nodeA to nodeB) for a user. I looked at https://forge.puppet.com/ghoneycutt/ssh I have read the docs:...

View Article

How to have 2 values for same key under same section in ini configuration file?

Hi, I want to achieve something like below in nova.conf scheduler_available_filters = nova.scheduler.filters.all_filters scheduler_available_filters = myfilter.MyFilter I have tried, `nova_config` and...

View Article


Check fact (version) after package upgrade

We have syslog-ng running on our systems. Most have 3.x, but many have 2.x and the configuration files are not compatible. We don't want to stay on 2.x (features like @include are missing). If for some...

View Article


ENV variables for .fixtures.yaml

Is it possible to use an ENV variable to define repositories in the .fixtures.yaml file for `puppetlabs_spec_helper` ? We have an environment where modules are shared/mirrored across different git...

View Article

How to check a particular keyword in a line of a file using puppet manifests?

Hi , I would like to check the file /etc/password. In that file i m going to check the home directory for root user. I want a puppet manifest to check for two conditions. 1 . The home directory should...

View Article

Unable to install puppet

``I am new to puppet,Have tried to install puppet enterprise 2016.2 in my local machine(monolithic method) *downloaded tar file and extracted it *gave the option as Guided install option *It popped out...

View Article

Should "puppet resource" commands load module/lib/facter?

I have a module that has ruby facts (.rb files) defined in /lib/facter. These facts load and are available and work great when I run puppet apply. However, when i try to run "puppet resource" none of...

View Article


How do you use a variable in a Puppet Manifest?

I am using the WSUS Module with Puppet Master on Centos 7.2. My Puppet Agent servers are running Windows Server 2012. I want to use a manifest with a variable. However, when the Puppet Agent server...

View Article

How do I use the generate function?

I am new to puppet. I have a situation where I have to put a file under particular user's home directory on all servers. I know the user's UID, the home directory varies between the server (i.e. it is...

View Article


Puppet - powershel scripts execution

Hello All With reference to: https://ask.puppet.com/question/3748/running-powershell-from-puppet-cmd-lets-not-recognised/ Is it possible that above issue also influence execution of scripts that loads...

View Article

Common code inclusion

What's the best approach to include code needed at multiple places? I hardly wanna copy 400 lines of code across a dozen files. I've got a basis defined type `my_class::a`. I've got several other...

View Article


Setting parameters in the roles & profiles pattern

TLDR: Is there a way to write reusable profiles, that roles can configure with sane defaults, only overriding using Hiera when required? I'm following the roles & profiles pattern documented at...

View Article

Puppet agent not logging

I have been running puppet master and agent in a same node. While master works correctly, it seems the agent is not logging. I checked the /var/log/puppet folder and rsyslog, but they have nothing...

View Article

Beaker not able to SSH into Docker CentOS container while I can manually

Hi everyone, Basically I'm trying to run some silly acceptance tests on Docker containers before I get my hands dirty with them (my only acceptance test as of now only contains a `notify`). Using the...

View Article
Browsing all 6104 articles
Browse latest View live


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