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

if directory exists create a file else check if it is a symlink

In most nodes, the /usr/share/tomcat7/lib directory exists and placing a jar inside that works fine. But on few nodes, instead of that directory, there is a symlink to /usr/share/java/tomcat7 exist. So...

View Article


How to count the number of times no-noop was ran?

Hello all, Our dev team is asking for us to keep track of the number of deployments made with puppet. This would basically be the number of times we run --no-noop, either through mcollective or with...

View Article


Not able to take backup of file in current directory

I am managing configuration files using PE 2016.0.1 and I want to take backup of all files before it gets updated/modified. As per the...

View Article

Puppet master caching?

I am setting up a new Puppet 4 server. (we are currently running 2.6 on a different server) In testing I am running puppet multiple times from a client with --noop. First run works and displays what...

View Article

puppet exec command how to set up one Interactive command

Hi , I have one requirement need to set up one openssl ocsp service, the command as below: exec {'config OCSP on 8888': timeout => '3', logoutput => 'true', cwd =>...

View Article


Is putting operating system specific data in Hiera a bad practice?

I'm working on architecting Puppet, from scratch, for our data center and trying to keep our Hiera hierarchy to a minimum. One of the things we do with our current home-grown configuration management...

View Article

foreman : Find host by report

Hello, I have a little technical question about foreman. I have an issue in some hosts managed by foreman. Several of them have a package called "nagios-nrpe-server" which is badly installed. So after...

View Article

Windows Puppet Parser Validate

I have written a bash script that will ask a handful of questions of our system administrators when they are setting up their environment. We had been using Puppet-Labs and Git to validate the puppet...

View Article


setting up consul as hiera backend in rspec tests

I'd like to know how to setup consul as hiera backend when we are testing a module using rspec. I see rnelson's blog on setting hiera with rspec but that is based on yaml. I'd like to know how to make...

View Article


Can you delete a set of lines from a text file using the line numbers

Hi. I am new to puppet. So my advance apologies if the question here doesn't make sense. What I am trying to accomplish here is that I have a text file, which has lots of entries. I would like to trim...

View Article

RazorServer iPXE vmlinuz0 gets "Exec format Error"

Hi, I have installed Razor Server and dnsmasq inside a VirtualBox environment following the wiki steps for installation and getting started. My new virtual node boots and gets the DHCP proxy response...

View Article

docker run multiple container

using docker_platform module i have this manifest: class { 'docker': version => '1.12.1' } #docker::image { 'alpine': image_tag => 3.4 } docker::image { 'uifd/ui-for-docker': image_tag =>...

View Article

Created new environment but it does not appear in PE Console drop down

Hi, I followed the instructions here: https://docs.puppet.com/puppet/4.5/reference/environments_creating.html to create a new environment called "development". [root@test227 ~]# puppet config print...

View Article


dumping puppetdb and then restoring it on a postgres server

HI, I am able to do a dump_all and then re create the databases onto a vanilla postgres server, I am however encountering some error messages during the restore, all this is documented here:...

View Article

Notice: Package/ensure: created shows every time puppet catalog run

I have installed puppet 3.8.6 version. When i try to install gem files via puppet using package provider in manifest file. The client node definition as follows: node 'puppet.devtest.com'{ $packs =...

View Article


Separating production and development environments

I have I think three different ways to accomplish this: 1)Hiera and custom fact, custom fact depends if it is PRD or DEV, hiera works using custom fact. 2)Install a new environment called DEV on...

View Article

Handling a Resource/Loading a Manifest Dynamically

Hi all, I'm developing a sample puppet module, in which there are a few defined types in the main class of the module. These defined types are typically to install, configure and start a server. Was...

View Article


Is it possible to create a vhost that listens on multiple hosts using the...

I'm trying to create a vhost using puppetlab's apache module. I want the vhost to listen on multiple ports, e.g.: ServerName some.domain.name ServerAlias some.other.domain.name .... Is it possible to...

View Article

What is the puppet way of invoking RESTful API for populating data ?

I want to populate some data . There is RESTful API provided by Application. What is the right way in puppet to invoke REST API and populate data in that application? Is there any inbuilt mechanism in...

View Article

mCollective - ssl+stomp giving Unexpected Error on connection - es1_oldrecv:...

Hi, We are building a new windows image and when we tried putting on the mCollective client on the system with a little kludging of getting Ruby 1.9.3 installed (as it is now up to 2.1.3), we have it...

View Article
Browsing all 6104 articles
Browse latest View live


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