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

How can I do conditional logic based on a Role?

Given a Roles & Profiles pattern set up with site.pp matching nodes to roles, and roles then including profiles, is there a way to do conditional logic in my custom classes based on the assigned...

View Article


Is there a way to filter portions of a manifest to not be ran during certain...

I have multi-part (long and complex) manifests to run against Puppet agents (all Windows servers). I want portions to run against any node in the class as normal. But I want subportions of these same...

View Article


How do I check for the version of Windows?

I have a class of Windows machines that includes Windows 10 desktops, Windows Server 2008 and WIndows Server 2012 machines. I'd like my multi-part manifests to run against every Windows machines. I...

View Article

Automate email notifications

I am using puppet Enterprise and developed a puppet module to do code deployment. But some pre and post deployment steps not automated. Use case1: I have server scheduling a 1hr downtime activity...

View Article

Failed to parse inline template: undefined local variable or method

Hi, I have below manifests for disk iteration class my_module::filesystem { include 'my_module::params' my_module::recursion { 'start': fssize => '0', disk => $my_module::params::count, } }...

View Article


Mcollective configuration for desktops

Hello, i am using Puppet Enterprise, trying to configure desktop workstations with mco Here are my specficiations : * using 61617 port for activeMQ * desktops are windows hosts * environment is not...

View Article

Puppet agent exit 2 causes failure in docker build

Hello, This is probably more of a question for Docker (I asked in their forums too), but I will ask here too....

View Article

how to restart the server (like weblogic , tomacat )by puppet ?

How to restart the server (like weblogic , tomacat )by puppet script?

View Article


NIC teaming/bonding using Puppet

Hi, I am having trouble looking for a good puppet forge module that deals with NIC bonding/teaming. I found this [example42/network](https://forge.puppet.com/example42/network) but I am not sure how I...

View Article


manage file permission of multiple files

I'm trying to make sure users' ssh keys are never accessible to others so I thought this would work: file { "/home/*/.ssh/*": path => "/home/*/.ssh/*", mode => "600", } Apparently, no. Without...

View Article

Is there a way to fetch configuration of Cisco Catalyst switch through Puppet?

We are trying to manage Cisco switches through Puppet, but as a first step we are trying to fetch the running configuration of the device and check it against the base configuration. If any deviations,...

View Article

Changing max open files with Puppet in limits.conf

Hey Guys, I'm new to puppet and actually new to Linux as well. I have a have simple task of changing the max open files for a user using puppet in the limits.conf file. I am able to do it through...

View Article

pass variable in hiera value calling

$use_ip = $proxies[1]['ipaddress'] we use the above syntax to assign. how do i add a variable in the above syntax? like: $value = 1 $use_ip = $proxies[1]['ipaddress${value}'] this does not work

View Article


where can I define puppet:/// path

where can I define puppet:/// path so that I can just write puppet:///modules in the manifests.

View Article

undefined method `eContents' for...

I receive this error with puppet lint syntax checker. thats how my module looks like: # Configure upstream define blues::upstream($application, $upstream_type = '', $be_port = '', $be_hosts =...

View Article


How can i add rescue block

I want to add rescue / exception handling catch block , If something fails in my code deployment it will notify by running code inside rescue block.

View Article

How to recursively chmod just files in a directory,

. . . . . then recursively chmod just folders in that same directory. I'm new to puppet and i can't seem to find the answer to this one. thanks, Chris

View Article


Error in puppet : File[…] doesn't seem to be in the catalog

I want to add successive crons via puppet, first one to set as each 10 minutes, and the 2nd one to run in Sunday 7:00PM. The first cron in puppet is working properly, but the 2nd one shows the below...

View Article

clear environment cache for PE console

I had created 3 environments dev earlier as dev, test and prod. Now, dev is renamed to puppetdev but at PE console still dev is available. I am using code-manager and filesync as well and many times...

View Article

class assignment to nodes using command line

In my environment, we are controlling puppet runs a bit differently. we have tagged the available classes to nodes using node groups on PE console and running MCollective commands to trigger 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>